diff options
author | Greg Thornton <gthornton@cjadvertising.com> | 2011-07-25 12:24:11 -0500 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2011-07-27 14:08:23 -0700 |
commit | d20b1344955932d8c5450fb79f1ea0dade8884d5 (patch) | |
tree | f47aabfde3d23af82e2ff44a6c5953d09a8da697 | |
parent | df03f95c94b501cfdfcb9336400a4373a2ade022 (diff) | |
download | chef-d20b1344955932d8c5450fb79f1ea0dade8884d5.tar.gz |
Fixing deploy resource to handle new additional_remotes git option.
-rw-r--r-- | chef/lib/chef/resource/deploy.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chef/lib/chef/resource/deploy.rb b/chef/lib/chef/resource/deploy.rb index d34542e9be..15540ca560 100644 --- a/chef/lib/chef/resource/deploy.rb +++ b/chef/lib/chef/resource/deploy.rb @@ -73,6 +73,7 @@ class Chef @svn_force_export = false @provider = Chef::Provider::Deploy::Timestamped @allowed_actions.push(:force_deploy, :deploy, :rollback) + @additional_remotes = Hash[] end # where the checked out/cloned code goes @@ -365,6 +366,14 @@ class Chef arg ||= block set_or_return(:after_restart, arg, :kind_of => [Proc, String]) end + + def additional_remotes(arg=nil) + set_or_return( + :additional_remotes, + arg, + :kind_of => Hash + ) + end end end |