Sha256: 40ebb3571d1f78e999520d91a00c8f5a1bb6e20c92f6d84783ab730c8e9d20d5

Contents?: true

Size: 674 Bytes

Versions: 17

Compression:

Stored size: 674 Bytes

Contents

class Juwelier
  module Commands
    class ReleaseToRubygems
      include FileUtils

      attr_accessor :gemspec, :version, :output, :gemspec_helper

      def initialize
        self.output = $stdout
      end

      def run
        command = "gem push #{@gemspec_helper.gem_path}"
        output.puts "Executing #{command.inspect}:"
        sh command
      end

      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
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
juwelier-2.4.9 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.4.7 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.4.6 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.4.5 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.4.4 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.4.1 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.4.0 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.3.6 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.3.4 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.3.2 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.3.0 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.2.3 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.2.1 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.1.3 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.1.2 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.1.1 lib/juwelier/commands/release_to_rubygems.rb
juwelier-2.1.0 lib/juwelier/commands/release_to_rubygems.rb