View gist:6184116
Environment: <%= @environment %> | |
<% if @environment == "PROD" %> | |
noThen {} | |
<% end %> | |
<% if @environment == "PROD" then %> | |
withThen {} | |
<% end %> |
View gist:6112224
g = chef_gem "somegem" do | |
action :nothing | |
end | |
g.run_action(:install) | |
require 'somegem' | |
# Works | |
#### |
View gist:6104137
r = recipe "apt::default" do | |
action :nothing | |
done | |
r.run_action(:execute) |
View gist:6103434
include_recipe "apt" | |
package_list = ["ruby1.9.1-dev","make", " libxml2-dev" ] | |
package_list.each do |pkg| | |
r = package pkg do | |
action :install | |
## action :nothing | |
end | |
## r.runaction(:install) | |
end |
View gist:6087089
gem_package "gem" do | |
action :install | |
done | |
r = gempackage "gem" do | |
action :nothing | |
done | |
r.runaction(:install) |
NewerOlder