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