Class: Dingus::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/dingus/cli.rb

Instance Method Summary collapse

Instance Method Details

#setup(environment_name) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/dingus/cli.rb', line 9

def setup(environment_name)
  file_path = File.join(CONFIGURATION_PATH, "#{environment_name}.yaml")
  environment = YAML.load_file(file_path)
  environment.each do |key, value|
    puts %Q{set -gx #{key} "#{value}"}
  end
end