Class: ORS::Commands::Base

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
Helpers
Defined in:
lib/ors/commands/base.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ClassMethods

run, run_without_setup

Methods included from Helpers

#build_command, #execute_command, #execute_in_parallel, #fatal, #info

Methods included from Helpers::CommandHelpers

#bundle_install, #restart_server, #run_migrations, #setup_repo, #setup_ruby, #start_server, #stop_server, #update_code

Methods included from Helpers::PrepareHelpers

#prepare_environment, #prepare_environment_with_rvm, #prepare_initial_environment

Methods included from Helpers::ParseHelpers

#parse_remote_and_or_branch

Instance Method Details

#descriptionObject



37
38
39
# File 'lib/ors/commands/base.rb', line 37

def description
  "Base Command Class"
end

#helpObject



50
51
52
53
54
55
56
57
58
59
# File 'lib/ors/commands/base.rb', line 50

def help
  puts <<-END
Usage: #{usage}

=== Description
#{description}

#{help_options}
  END
end

#help_optionsObject



41
42
43
44
45
46
47
48
# File 'lib/ors/commands/base.rb', line 41

def help_options
  <<-END
=== Options
from|to environment    Set which environment to use (default production)
--pretend    (or -p)   Don't execute anything, just show me what you're going to do
--no-gateway (or -ng)  Don't use a gateway (if you're inside the firewall)
  END
end

#setupObject



30
31
# File 'lib/ors/commands/base.rb', line 30

def setup
end

#usageObject



33
34
35
# File 'lib/ors/commands/base.rb', line 33

def usage
  "./ors base [options]"
end