Method: Gem::Commands::RebuildCommand#initialize
- Defined in:
- lib/rubygems/commands/rebuild_command.rb
#initialize ⇒ RebuildCommand
Returns a new instance of RebuildCommand.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/rubygems/commands/rebuild_command.rb', line 12 def initialize super "rebuild", "Attempt to reproduce a build of a gem." add_option "--diff", "If the files don't match, compare them using diffoscope." do |_value, | [:diff] = true end 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 "--source GEM_SOURCE", "Specify the source to download the gem from." do |value, | [:source] = value end add_option "--original GEM_FILE", "Specify a local file to compare against (instead of downloading it)." do |value, | [:original_gem_file] = value end add_option "--gemspec GEMSPEC_FILE", "Specify the name of the gemspec file." do |value, | [:gemspec_file] = value end add_option "-C PATH", "Run as if gem build was started in <PATH> instead of the current working directory." do |value, | [:build_path] = value end end |