Class: HeadChef::Env

Inherits:
Thor
  • Object
show all
Defined in:
lib/head_chef/tasks/env.rb

Instance Method Summary collapse

Instance Method Details

#diffObject



15
16
17
18
19
# File 'lib/head_chef/tasks/env.rb', line 15

def diff
  environment = options[:environment] || HeadChef.current_branch

  Diff.diff(environment).pretty_print
end

#listObject



27
28
29
30
31
# File 'lib/head_chef/tasks/env.rb', line 27

def list
  environment = options[:environment] || HeadChef.current_branch

  List.list(environment)
end

#syncObject



41
42
43
44
45
46
# 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