Skip to content

Commit

Permalink
Merge branch 'smartandco-hipchat-diff-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Cowie committed Feb 26, 2015
2 parents 51417af + dba72da commit 090724b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/knife-spork/plugins/hipchat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ def after_upload
end

def after_promote_remote
environments.each do |environment|
diff = environment_diffs[environment.name]
env_gist = env_gist(environment, diff) if config.gist
hipchat "#{organization}#{current_user} promoted the following cookbooks:\n#{cookbooks.collect{ |c| " #{c.name}@#{c.version}" }.join("\n")} to #{environments.collect{ |e| "#{e.name}" }.join(", ")} #{env_gist}"
hipchat "#{organization}#{current_user} promoted the following cookbooks:\n#{cookbooks.collect{ |c| " #{c.name}@#{c.version}" }.join("\n")} to #{environment} #{env_gist}"
end
end

def after_environmentfromfile
Expand Down

0 comments on commit 090724b

Please sign in to comment.