execute 'something' do command './configure && make && make install' not_if do current = version_for('something').to_f current < 5.0 && current != 4.1 end end COMPLICATED?
GEMS require 'nokogiri' #=> LoadError, ugly stacktrace require_chef_gem 'nokogiri' #=> ! Chef could not load the gem `nokogiri'! You may need to install the gem manually with `gem install nokogiri', or include a recipe before you can use this resource. Please consult the documentation for this cookbook for proper usage.
DEEP FETCH node['apache2']['bad_key']['root'] #=> Undefined method :[] for nil:NilClass node.deep_fetch!('apache2', 'bad_key', 'root') #=> No attribute node['apache2']['bad_key']['root'] exists on the current node. Please make sure you have spelled everything correctly.
SHELL.RB class Chef module Sugar::Shell extend self ! def which(cmd) # ... magic codez end end ! module DSL def which(cmd); Chef::Sugar::Shell.which(cmd); end end end
SHELL.RB class Chef module Sugar::Shell extend self ! def which(cmd) # ... magic codez end end ! module DSL def which(cmd); Chef::Sugar::Shell.which(cmd); end end end
SHELL.RB class Chef module Sugar::Shell extend self ! def which(cmd) # ... magic codez end end ! module DSL def which(cmd); Chef::Sugar::Shell.which(cmd); end end end
SHELL.RB class Chef module Sugar::Shell extend self ! def which(cmd) # ... magic codez end end ! module DSL def which(cmd); Chef::Sugar::Shell.which(cmd); end end end
SHELL.RB class Chef module Sugar::Shell extend self ! def which(cmd) # ... magic codez end end ! module DSL def which(cmd); Chef::Sugar::Shell.which(cmd); end end end
SHELL.RB class Chef module Sugar::Shell extend self ! def which(cmd) # ... magic codez end end ! module DSL def which(cmd); Chef::Sugar::Shell.which(cmd); end end end