class GGem::CLI::ReleaseCommand
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
GGem::CLI::ForceTagOptionCommand::new
# File lib/ggem/cli/commands.rb, line 334 def initialize(*args) super @tag_command = TagCommand.new(*args) @push_command = PushCommand.new(*args) end
Public Instance Methods
help()
click to toggle source
# File lib/ggem/cli/commands.rb, line 351 def help "Usage: ggem release [options]\n\n" \ "Options: #{@clirb}\n" \ "Description:\n" \ " #{summary}\n" \ " (macro for running `ggem tag && ggem push`)" end
run(argv, *args)
click to toggle source
Calls superclass method
# File lib/ggem/cli/commands.rb, line 340 def run(argv, *args) super @tag_command.run(clirb.opts["force-tag"] ? ["--force-tag"] : []) @push_command.run([]) end
summary()
click to toggle source
# File lib/ggem/cli/commands.rb, line 346 def summary "Tag #{@spec.version_tag} and push built #{@spec.gem_file_name} to " \ "#{@spec.push_host}" end