diff options
author | Jack Foy <jfoy@whitepages.com> | 2013-06-06 17:02:37 -0700 |
---|---|---|
committer | Jack Foy <jfoy@whitepages.com> | 2013-07-19 14:06:22 -0700 |
commit | 78ac800a11fbbcd67125a21c19b0d62465013748 (patch) | |
tree | 6dd0c78490d27b2a33ea7cc561e8829e0c71595a /lib/chef/resource/deploy.rb | |
parent | 3bdbd6bf47d4f0c407c625a987c3b9336624f8d7 (diff) | |
download | chef-78ac800a11fbbcd67125a21c19b0d62465013748.tar.gz |
Update the deploy resource to meet extended scm interface
Diffstat (limited to 'lib/chef/resource/deploy.rb')
-rw-r--r-- | lib/chef/resource/deploy.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/chef/resource/deploy.rb b/lib/chef/resource/deploy.rb index 8b614028bf..ca809b9130 100644 --- a/lib/chef/resource/deploy.rb +++ b/lib/chef/resource/deploy.rb @@ -398,6 +398,19 @@ class Chef ) 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 + # a timeout method, but the timeout it describes is for SCM operations, + # not the overall deployment. This is ugly. + def timeout(arg=nil) + set_or_return( + :timeout, + arg, + :kind_of => Integer + ) + end + end end end |