Sha256: 59250c8b23b538cce506c60893f08bd363456f6497c99a802e8278215cb30109

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

class Bueller
  module Commands
    class ReleaseToRubygems
      attr_reader :bueller

      def initialize(bueller)
        @bueller = bueller
      end

      def gemspec_helper; bueller.gemspec_helper; end
      def version; bueller.version; end

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

      def self.run_for(bueller)
        command = new bueller
        command.run
        command
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bueller-0.0.3 lib/bueller/commands/release_to_rubygems.rb
bueller-0.0.2 lib/bueller/commands/release_to_rubygems.rb
bueller-0.0.1 lib/bueller/commands/release_to_rubygems.rb