Class: HeadChef::Env
- Inherits:
-
Thor
- Object
- Thor
- HeadChef::Env
- Defined in:
- lib/head_chef/tasks/env.rb
Instance Method Summary collapse
Instance Method Details
#diff ⇒ Object
15 16 17 18 19 |
# File 'lib/head_chef/tasks/env.rb', line 15 def diff environment = [:environment] || HeadChef.current_branch Diff.diff(environment).pretty_print end |
#list ⇒ Object
27 28 29 30 31 |
# File 'lib/head_chef/tasks/env.rb', line 27 def list environment = [:environment] || HeadChef.current_branch List.list(environment) end |
#sync ⇒ Object
41 42 43 44 45 46 |
# File 'lib/head_chef/tasks/env.rb', line 41 def sync environment = [:environment] || HeadChef.current_branch force = [:force] ? true : false Sync.sync(environment, force) end |