lib/deploy-context/deploy/ruby.rb in deploy-context-2.0.8 vs lib/deploy-context/deploy/ruby.rb in deploy-context-2.0.8.1.gdd5846f

- old
+ new

@@ -1,5 +1,7 @@ +require 'rubygems' + module Context module RubyDeployerHelper def ruby_build(context) git_build(context) Dir.chdir context.context_folder @@ -34,9 +36,13 @@ def ruby_check_if_available_public(context) puts "Waiting a minute before installing" `chef gem list #{context.context_name}` # sleep(60) + end + + def gem_installed?(context) + Gem::Specification.find_by_name(context.context_name).version == context.version end def ruby_cycle(context) if context.new_update_available? context.clean