Class: EtnaApp::Config::Show
- Inherits:
-
Etna::Command
- Object
- Etna::Command
- EtnaApp::Config::Show
- Defined in:
- lib/commands.rb
Instance Attribute Summary
Attributes inherited from Etna::Command
Instance Method Summary collapse
Methods inherited from Etna::Command
#completions, #fill_in_missing_params, #find_command, #initialize, parent_scope, #setup
Methods included from Etna::CommandOrExecutor
#command_name, #completions_for, #desc, #flag_argspec, #flag_as_parameter, included, #parse_flags, #program_name, #usage
Constructor Details
This class inherits a constructor from Etna::Command
Instance Method Details
#execute ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/commands.rb', line 40 def execute if EtnaApp.instance.environment == :many File.open(EtnaApp.config_file_path, 'r') { |f| puts f.read } else puts "Current environment: #{EtnaApp.instance.environment}" pp EtnaApp.instance.env_config end end |