Class: Henv::ExportCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Henv::ExportCommand
- Includes:
- Config
- Defined in:
- lib/henv/cli.rb
Instance Method Summary collapse
Methods included from Config
#config, #config_command, #config_command_result
Instance Method Details
#execute ⇒ Object
27 28 29 30 31 |
# File 'lib/henv/cli.rb', line 27 def execute config.each do |k,v| puts "export #{k}=$'#{v.gsub("'", "\\\\'").gsub("\n", "\\n")}'" end end |