class Juwelier::Commands::ReleaseToRubygems
Attributes
gemspec[RW]
gemspec_helper[RW]
output[RW]
version[RW]
Public Class Methods
build_for(juwelier)
click to toggle source
# File lib/juwelier/commands/release_to_rubygems.rb, line 18 def self.build_for(juwelier) command = new command.gemspec = juwelier.gemspec command.gemspec_helper = juwelier.gemspec_helper command.version = juwelier.version command.output = juwelier.output command end
new()
click to toggle source
# File lib/juwelier/commands/release_to_rubygems.rb, line 8 def initialize self.output = $stdout end
Public Instance Methods
run()
click to toggle source
# File lib/juwelier/commands/release_to_rubygems.rb, line 12 def run command = "gem push #{@gemspec_helper.gem_path}" output.puts "Executing #{command.inspect}:" sh command end