summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Thornton <gthornton@cjadvertising.com>2011-07-25 12:24:11 -0500
committerBryan McLellan <btm@opscode.com>2011-07-27 14:08:23 -0700
commitd20b1344955932d8c5450fb79f1ea0dade8884d5 (patch)
treef47aabfde3d23af82e2ff44a6c5953d09a8da697
parentdf03f95c94b501cfdfcb9336400a4373a2ade022 (diff)
downloadchef-d20b1344955932d8c5450fb79f1ea0dade8884d5.tar.gz
Fixing deploy resource to handle new additional_remotes git option.
-rw-r--r--chef/lib/chef/resource/deploy.rb9
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