diff options
author | sawanoboly <sawanoboriyu@higanworks.com> | 2014-06-26 14:53:30 +0900 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-21 11:44:46 -0700 |
commit | eff4d2b6e712aa6cb76611d1ad8e317a1f962826 (patch) | |
tree | 24c45bfe3e533313a158425cb0d3b931f5f301e0 /lib/chef/resource | |
parent | b49767dd1ed9c778f94bef597e52a61d48491b50 (diff) | |
download | chef-eff4d2b6e712aa6cb76611d1ad8e317a1f962826.tar.gz |
add_env_to_scm_resource
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/scm.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/chef/resource/scm.rb b/lib/chef/resource/scm.rb index 91782e4114..55a6d8a7be 100644 --- a/lib/chef/resource/scm.rb +++ b/lib/chef/resource/scm.rb @@ -40,6 +40,7 @@ class Chef @allowed_actions.push(:checkout, :export, :sync, :diff, :log) @action = [:sync] @checkout_branch = "deploy" + @environment = {} end def destination(arg=nil) @@ -172,6 +173,15 @@ class Chef ) end + def environment(arg=nil) + set_or_return( + :environment, + arg, + :kind_of => [ Hash ] + ) + end + + alias :env :environment end end end |