Class: Boxes::Command::Env::Show
- Inherits:
-
Boxes::Command::Env
- Object
- CLAide::Command
- Boxes::Command
- Boxes::Command::Env
- Boxes::Command::Env::Show
- Defined in:
- lib/boxes/command/env.rb
Overview
Prints out the environment and configuration.
Instance Method Summary collapse
-
#run ⇒ Object
rubocop:disable Metrics/AbcSize, Metrics/MethodLength.
Instance Method Details
#run ⇒ Object
rubocop:disable Metrics/AbcSize, Metrics/MethodLength
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/boxes/command/env.rb', line 20 def run # rubocop:disable Metrics/AbcSize, Metrics/MethodLength puts 'Configuration:'.underline puts '' puts "HOME_DIR=\"#{Boxes.config.home_dir}\"" puts "WORKING_DIR=\"#{Boxes.config.working_dir}\"" puts "TEMPLATE_PATHS=\"#{Boxes.config.template_paths.join(', ')}\"" puts "SCRIPT_PATHS=\"#{Boxes.config.script_paths.join(', ')}\"" puts '' puts 'Environment Variables:'.underline puts '' Boxes.config.environment_vars.each do |e| puts "#{e.keys.join}=\"#{e.values.join}\"" end end |