lib/cap_recipes/tasks/rubygems/manage.rb in cap-recipes-0.3.25 vs lib/cap_recipes/tasks/rubygems/manage.rb in cap-recipes-0.3.26

- old
+ new

@@ -24,19 +24,17 @@ Array(rubygem_paths).each { |path| sudo "#{path} cleanup" } end desc "Install a gem on the app servers" task :install, :roles => :app do - puts "Enter the name of the gem you'd like to install:" - gem_name = $stdin.gets.chomp + gem_name = utilities.ask "Enter the name of the gem you'd like to install:" logger.info "trying to install '#{gem_name}'" Array(rubygem_paths).each {|path| sudo "#{path} install #{gem_name} --no-ri --no-rdoc" } end desc "Uninstall a gem from app servers" task :uninstall, :roles => :app do - puts "Enter the name of the gem you'd like to remove:" - gem_name = $stdin.gets.chomp + gem_name = utilities.ask "Enter the name of the gem you'd like to remove:" logger.info "trying to remove '#{gem_name}'" Array(rubygem_paths).each { |path| sudo "#{path} uninstall #{gem_name} -x" } end end end