Method: Gem::Commands::BuildCommand#initialize
- Defined in:
- lib/rubygems/commands/build_command.rb
#initialize ⇒ BuildCommand
Returns a new instance of BuildCommand.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rubygems/commands/build_command.rb', line 12 def initialize super "build", "Build a gem from a gemspec" add_platform_option add_option "--force", "skip validation of the spec" do |_value, | [:force] = true end add_option "--strict", "consider warnings as errors when validating the spec" do |_value, | [:strict] = true end add_option "-o", "--output FILE", "output gem with the given filename" do |value, | [:output] = value end end |