class HeadChef::Env

Public Instance Methods

diff() click to toggle source
# File lib/head_chef/tasks/env.rb, line 15
def diff
  environment = options[:environment] || HeadChef.current_branch

  Diff.diff(environment).pretty_print
end
list() click to toggle source
# File lib/head_chef/tasks/env.rb, line 27
def list
  environment = options[:environment] || HeadChef.current_branch

  List.list(environment)
end
sync() click to toggle source
# File lib/head_chef/tasks/env.rb, line 41
def sync
  environment = options[:environment] || HeadChef.current_branch
  force = options[:force] ? true : false

  Sync.sync(environment, force)
end