Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Making gem binary optional #5

Open
wants to merge 1 commit into from

1 participant

Michał Dąbrowski
Michał Dąbrowski

I see no reason why gem binary should be hardcoded. Its a good idea to make it optional, like in other
opscode cookbooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 28, 2014
  1. Michał Dąbrowski

    Making gem binary optional

    defrag authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +1 −0  attributes/default.rb
  2. +1 −1  recipes/default.rb
1  attributes/default.rb
View
@@ -1,4 +1,5 @@
default['god']['bin'] = '/usr/bin/god'
+default['god']['gem_binary'] = nil
default['god']['init_style'] = 'runit'
default['god']['email']['from'] = 'god@'+node[:domain].to_s
default['god']['email']['contacts'] = [['dev', 'developers@'+node[:domain].to_s, 'developers']]
2  recipes/default.rb
View
@@ -19,7 +19,7 @@
gem_package "god" do
action :install
- gem_binary "/usr/bin/gem"
+ gem_binary node['god']['gem_binary'] if node['god']['gem_binary']
end
directory "/etc/god/conf.d" do
Something went wrong with that request. Please try again.