Class: Scripto::Main
- Inherits:
-
Object
- Object
- Scripto::Main
- Includes:
- CsvCommands, FileCommands, MiscCommands, PrintCommands, RunCommands
- Defined in:
- lib/scripto/main.rb
Overview
A convenient superclass for using Scripto. Just subclass Main and you have access to all the Scripto goodies.
Constant Summary
Constants included from PrintCommands
PrintCommands::GREEN, PrintCommands::RED, PrintCommands::RESET, PrintCommands::YELLOW
Constants included from MiscCommands
Scripto::MiscCommands::BASE_62
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Attributes included from PrintCommands
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Main
constructor
A new instance of Main.
Methods included from RunCommands
#run, #run_capture, #run_fails?, #run_quietly, #run_succeeds?, #shellescape
Methods included from PrintCommands
#banner, #fatal, #vbanner, #verbose!, #verbose?, #vprintf, #vputs, #warning
Methods included from MiscCommands
#md5_file, #md5_string, #prompt?, #random_string, #root?, #whoami
Methods included from FileCommands
#chmod, #chown, #copy_metadata, #cp, #cp_if_necessary, #ln, #ln_if_necessary, #mkdir, #mkdir_if_necessary, #mv, #rm, #rm_and_mkdir, #rm_if_necessary
Methods included from CsvCommands
#csv_read, #csv_to_s, #csv_to_stdout, #csv_write
Constructor Details
#initialize(options = {}) ⇒ Main
Returns a new instance of Main.
13 14 15 16 |
# File 'lib/scripto/main.rb', line 13 def initialize( = {}) self. = self.verbose = [:verbose] end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/scripto/main.rb', line 11 def end |