Class: GGem::CLI::ReleaseCommand
- Inherits:
-
Object
- Object
- GGem::CLI::ReleaseCommand
- Includes:
- ForceTagOptionCommand, GemspecCommand
- Defined in:
- lib/ggem/cli/commands.rb
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize(*args) ⇒ ReleaseCommand
constructor
A new instance of ReleaseCommand.
- #run(argv, *args) ⇒ Object
- #summary ⇒ Object
Constructor Details
#initialize(*args) ⇒ ReleaseCommand
Returns a new instance of ReleaseCommand.
355 356 357 358 359 |
# File 'lib/ggem/cli/commands.rb', line 355 def initialize(*args) super @tag_command = TagCommand.new(*args) @push_command = PushCommand.new(*args) end |
Instance Method Details
#help ⇒ Object
372 373 374 375 376 377 378 |
# File 'lib/ggem/cli/commands.rb', line 372 def help "Usage: ggem release [options]\n\n" \ "Options: #{@clirb}\n" \ "Description:\n" \ " #{self.summary}\n" \ " (macro for running `ggem tag && ggem push`)" end |
#run(argv, *args) ⇒ Object
361 362 363 364 365 |
# File 'lib/ggem/cli/commands.rb', line 361 def run(argv, *args) super @tag_command.run(self.clirb.opts['force-tag'] ? ['--force-tag'] : []) @push_command.run([]) end |
#summary ⇒ Object
367 368 369 370 |
# File 'lib/ggem/cli/commands.rb', line 367 def summary "Tag #{@spec.version_tag} and push built #{@spec.gem_file_name} to " \ "#{@spec.push_host}" end |