Class: Gem::Commands::GemspecCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::GemspecCommand
- Includes:
- CommandOptions, GemRelease, Helpers
- Defined in:
- lib/rubygems/commands/gemspec_command.rb
Constant Summary collapse
- OPTIONS =
{ :strategy => 'git' }
Constants included from GemRelease
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ GemspecCommand
constructor
A new instance of GemspecCommand.
Constructor Details
#initialize ⇒ GemspecCommand
Returns a new instance of GemspecCommand.
9 10 11 12 13 |
# File 'lib/rubygems/commands/gemspec_command.rb', line 9 def initialize super 'bootstrap', 'Bootstrap a new gem source repository', OPTIONS option :strategy, '-f', 'Strategy for collecting files [glob|git] in .gemspec' end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
7 8 9 |
# File 'lib/rubygems/commands/gemspec_command.rb', line 7 def arguments @arguments end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
7 8 9 |
# File 'lib/rubygems/commands/gemspec_command.rb', line 7 def usage @usage end |