Class: Deis::Commands::CopyConfig
- Inherits:
-
Struct
- Object
- Struct
- Deis::Commands::CopyConfig
- Includes:
- Helpers
- Defined in:
- lib/deis/commands/copy_config.rb
Instance Attribute Summary collapse
-
#dest_app ⇒ Object
Returns the value of attribute dest_app.
-
#source_app ⇒ Object
Returns the value of attribute source_app.
Instance Method Summary collapse
Methods included from Helpers
#app_exists?, #capture_output, #capture_syscall, #debug?, #deis_command, #deis_local_command, #deis_login!, #deploy, #get_runner, #get_units!, #git_clone, #increment_retry!, #info, #reset_retry!, #run_util, #scale, seconds_to_human, #shell, #should_retry?, #status, #units
Instance Attribute Details
#dest_app ⇒ Object
Returns the value of attribute dest_app
3 4 5 |
# File 'lib/deis/commands/copy_config.rb', line 3 def dest_app @dest_app end |
#source_app ⇒ Object
Returns the value of attribute source_app
3 4 5 |
# File 'lib/deis/commands/copy_config.rb', line 3 def source_app @source_app end |
Instance Method Details
#run ⇒ Object
6 7 8 9 10 |
# File 'lib/deis/commands/copy_config.rb', line 6 def run system <<-sh deis config --app #{source_app} --oneline | xargs deis config:set --app #{dest_app} sh end |