Skip to content

Commit

Permalink
Merge pull request #43 from scottymarshall/rest-client
Browse files Browse the repository at this point in the history
Move chef_gem install to a recipe, so it is only called once.
  • Loading branch information
joekiller committed Mar 20, 2015
2 parents 0b81d08 + 5039f3b commit 6514584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions providers/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use_inline_resources

action :create do
rest_client_gem = Chef::Resource::ChefGem.new('rest-client', @run_context)
rest_client_gem.run_action :install
@run_context.include_recipe 's3_file::dependencies'
client = S3FileLib::client
download = true

Expand Down
3 changes: 3 additions & 0 deletions recipes/dependencies.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
chef_gem "rest-client" do
action :install
end

0 comments on commit 6514584

Please sign in to comment.