Class: GGem::CLI::ReleaseCommand

Inherits:
Object
  • Object
show all
Includes:
GemspecCommand
Defined in:
lib/ggem/cli/commands.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ReleaseCommand

Returns a new instance of ReleaseCommand.



326
327
328
329
330
# File 'lib/ggem/cli/commands.rb', line 326

def initialize(*args)
  super
  @tag_command  = TagCommand.new(*args)
  @push_command = PushCommand.new(*args)
end

Instance Method Details

#helpObject



343
344
345
346
347
348
349
# File 'lib/ggem/cli/commands.rb', line 343

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



332
333
334
335
336
# File 'lib/ggem/cli/commands.rb', line 332

def run(argv, *args)
  super
  @tag_command.run(argv)
  @push_command.run(argv)
end

#summaryObject



338
339
340
341
# File 'lib/ggem/cli/commands.rb', line 338

def summary
  "Tag #{@spec.version_tag} and push built #{@spec.gem_file_name} to " \
  "#{@spec.push_host}"
end