Sha256: e7f17287a912450bb0f37d8ce068872113929d69d379108d6ffb54c51fbf1f60

Contents?: true

Size: 651 Bytes

Versions: 15

Compression:

Stored size: 651 Bytes

Contents

class Jeweler
  module Commands
    class ReleaseToGemcutter
      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(jeweler)
        command = new
        command.gemspec        = jeweler.gemspec
        command.gemspec_helper = jeweler.gemspec_helper
        command.version        = jeweler.version
        command.output         = jeweler.output
        command
      end
      
    end
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
technicalpickles-jeweler-1.2.1 lib/jeweler/commands/release_to_gemcutter.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/jeweler-1.4.0/lib/jeweler/commands/release_to_gemcutter.rb
jeweler-1.4.0 lib/jeweler/commands/release_to_gemcutter.rb
jeweler-1.3.0 lib/jeweler/commands/release_to_gemcutter.rb
jeweler-1.2.1 lib/jeweler/commands/release_to_gemcutter.rb