Class: SimpleDeploy::CLI::Environments
- Inherits:
-
Object
- Object
- SimpleDeploy::CLI::Environments
show all
- Includes:
- Shared
- Defined in:
- lib/simple_deploy/cli/environments.rb
Instance Method Summary
collapse
Methods included from Shared
#command_name, #parse_attributes, #rescue_exceptions_and_exit, #valid_options?
Instance Method Details
#command_summary ⇒ Object
25
26
27
|
# File 'lib/simple_deploy/cli/environments.rb', line 25
def command_summary
'List environments'
end
|
#environments ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/simple_deploy/cli/environments.rb', line 9
def environments
@opts = Trollop::options do
version SimpleDeploy::VERSION
banner <<-EOS
List environments
simple_deploy environments
EOS
opt :help, "Display Help"
end
SimpleDeploy.environments.keys.each { |e| puts e }
end
|