Sha256: ae32e0fcb86a77065f1c4e626c16915d32aeeadd47b8e5770e8ae8cf59d7b7dd

Contents?: true

Size: 723 Bytes

Versions: 11

Compression:

Stored size: 723 Bytes

Contents

class Gem::Commands::GemspecCommand < Gem::Command
  include GemRelease
  include Helpers, CommandOptions

  DEFAULTS = {
    :strategy => 'git',
    :quiet    => false
  }

  attr_reader :arguments, :usage

  def initialize(options = {})
    super 'bootstrap', 'Bootstrap a new gem source repository', DEFAULTS.merge(options)

    option :strategy, '-f', 'Strategy for collecting files [glob|git] in .gemspec'
    option :quiet,    '-q', 'Do not output status messages'
  end

  def execute
    gemspec = Gemspec.new(options)
    if gemspec.exists?
      say "Skipping #{gemspec.filename}: already exists" unless quiet?
    else
      say "Creating #{gemspec.filename}" unless quiet?
      gemspec.write
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gem-release-0.1.3 lib/rubygems/commands/gemspec_command.rb
gem-release-0.1.2 lib/rubygems/commands/gemspec_command.rb
gem-release-0.1.1 lib/rubygems/commands/gemspec_command.rb
gem-release-0.1.0 lib/rubygems/commands/gemspec_command.rb
gem-release-0.0.24 lib/rubygems/commands/gemspec_command.rb
gem-release-0.0.23 lib/rubygems/commands/gemspec_command.rb
gem-release-0.0.22 lib/rubygems/commands/gemspec_command.rb
gem-release-0.0.21 lib/rubygems/commands/gemspec_command.rb
gem-release-0.0.20 lib/rubygems/commands/gemspec_command.rb
gem-release-0.0.19 lib/rubygems/commands/gemspec_command.rb
gem-release-0.0.17 lib/rubygems/commands/gemspec_command.rb