Permalink
Browse files

prop will call save

  • Loading branch information...
1 parent 8b89a7a commit b935a1824381bc41c60dc310bb7d7690831fdaa0 Ruoran Wang committed Aug 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/chef/jenkins.rb
View
@@ -376,6 +376,7 @@ def foodcritic_test(cookbooks=[], cookbook_path=Chef::Config[:cookbook_path])
def prop(env_from=Chef::Config[:jenkins][:env_from], env_to=Chef::Config[:jenkins][:env_to])
add_upstream
+ save(env_from)
from = Chef::Environment.load(env_from)
to = Chef::Environment.load(env_to)
@@ -401,7 +402,7 @@ def save(env_name, item_name="")
env_version_tag = item[LATEST_TAG]
if env_version_tag =~ /(\d+)\_(\d+)/
major = $1
- minor = $2 + 1
+ minor = $2.to_i + 1
item_name = "#{major}_#{minor}"
Chef::Log.info("Latest tag bumped to #{item_name}")
else

0 comments on commit b935a18

Please sign in to comment.