Module: EY::Serverside::CLIHelpers

Included in:
CLI
Defined in:
lib/engineyard-serverside/cli_helpers.rb

Instance Method Summary collapse

Instance Method Details

#account_app_env_optionsObject


4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/engineyard-serverside/cli_helpers.rb', line 4

def 
  method_option :app,              :type     => :string,
                                   :required => true,
                                   :desc     => "Application to deploy",
                                   :aliases  => %w[-a --app-name]
  method_option :environment_name, :type     => :string,
                                   :required => true,
                                   :desc     => "Environment name"
  method_option :account_name,     :type     => :string,
                                   :required => true,
                                   :desc     => "Account name"
end

#config_optionObject


30
31
32
33
# File 'lib/engineyard-serverside/cli_helpers.rb', line 30

def config_option
  method_option :config,           :type     => :string,
                                   :desc     => "Additional configuration"
end

#framework_env_optionObject


17
18
19
20
21
22
# File 'lib/engineyard-serverside/cli_helpers.rb', line 17

def framework_env_option
  method_option :framework_env,    :type     => :string,
                                   :required => true,
                                   :desc     => "Ruby web framework environment",
                                   :aliases  => ["-e"]
end

#instances_optionsObject


35
36
37
38
39
40
41
42
43
44
# File 'lib/engineyard-serverside/cli_helpers.rb', line 35

def instances_options
  method_option :instances,        :type     => :array,
                                   :desc     => "Hostnames of instances to deploy to, e.g. --instances localhost app1 app2"
  method_option :instance_roles,   :type     => :hash,
                                   :default  => {},
                                   :desc     => "Roles of instances, keyed on hostname, comma-separated. e.g. instance1:app_master,etc instance2:db,memcached ..."
  method_option :instance_names,   :type     => :hash,
                                   :default  => {},
                                   :desc     => "Instance names, keyed on hostname. e.g. instance1:name1 instance2:name2"
end

#stack_optionObject


24
25
26
27
# File 'lib/engineyard-serverside/cli_helpers.rb', line 24

def stack_option
  method_option :stack,            :type     => :string,
                                   :desc     => "Web stack (so we can restart it correctly)"
end

#verbose_optionObject


46
47
48
49
50
# File 'lib/engineyard-serverside/cli_helpers.rb', line 46

def verbose_option
  method_option :verbose,          :type     => :boolean,
                                   :desc     => "Verbose output",
                                   :aliases  => ["-v"]
end