Class: Scripto::Main

Inherits:
Object
  • Object
show all
Includes:
CsvCommands, FileCommands, LogCommands, MiscCommands, 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 MiscCommands

Scripto::MiscCommands::BASE_62

Constants included from LogCommands

LogCommands::GREEN, LogCommands::RED, LogCommands::RESET, LogCommands::YELLOW

Instance Method Summary collapse

Methods included from RunCommands

#run, #run_capture, #run_fails?, #run_quietly, #run_succeeds?, #shellescape

Methods included from MiscCommands

#md5_file, #md5_string, #prompt?, #random_string, #root?, #whoami

Methods included from LogCommands

#banner, #fatal, #log_with_color=, #log_with_color?, #logger, #logger=, #options, #options=, #quiet!, #quiet?, #verbose!, #verbose?, #warning

Methods included from FileCommands

#atomic_write, #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



11
12
13
# File 'lib/scripto/main.rb', line 11

def initialize(options = {})
  self.options = options
end