summaryrefslogtreecommitdiff
path: root/lib/chef/resource/deploy.rb
diff options
context:
space:
mode:
authorJohn Goulah <jgoulah@gmail.com>2013-10-27 20:33:16 -0400
committerBryan McLellan <btm@opscode.com>2013-11-26 07:31:19 -0800
commit469bed03f920e415e6f7875b8efc87b0769f5c4f (patch)
tree5ab2532b63cc50086ef7e51139dca3510b280b76 /lib/chef/resource/deploy.rb
parentc7f2c834ae4f57245831bd537843646015943c03 (diff)
downloadchef-469bed03f920e415e6f7875b8efc87b0769f5c4f.tar.gz
changes to fix failing tests
Diffstat (limited to 'lib/chef/resource/deploy.rb')
-rw-r--r--lib/chef/resource/deploy.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/chef/resource/deploy.rb b/lib/chef/resource/deploy.rb
index 76478ed07c..a08e8aeeea 100644
--- a/lib/chef/resource/deploy.rb
+++ b/lib/chef/resource/deploy.rb
@@ -81,6 +81,8 @@ class Chef
@allowed_actions.push(:force_deploy, :deploy, :rollback)
@additional_remotes = Hash[]
@keep_releases = 5
+ @enable_checkout = true
+ @checkout_branch = "deploy"
end
# where the checked out/cloned code goes
@@ -398,6 +400,22 @@ class Chef
)
end
+ def enable_checkout(arg=nil)
+ set_or_return(
+ :enable_checkout,
+ arg,
+ :kind_of => [TrueClass, FalseClass]
+ )
+ end
+
+ def checkout_branch(arg=nil)
+ set_or_return(
+ :checkout_branch,
+ arg,
+ :kind_of => String
+ )
+ end
+
# FIXME The Deploy resource may be passed to an SCM provider as its
# resource. The SCM provider knows that SCM resources can specify a
# timeout for SCM operations. The deploy resource must therefore support