class GGem::CLI::PushCommand

Public Class Methods

new(*args) click to toggle source
Calls superclass method GGem::CLI::GemspecCommand::new
# File lib/ggem/cli/commands.rb, line 234
def initialize(*args)
  super
  @build_command = BuildCommand.new(*args)
end

Public Instance Methods

help() click to toggle source
# File lib/ggem/cli/commands.rb, line 253
def help
  "Usage: ggem push [options]\n\n" \
  "Options: #{@clirb}\n" \
  "Description:\n" \
  "  #{summary}"
end
run(argv, *args) click to toggle source
Calls superclass method
# File lib/ggem/cli/commands.rb, line 239
def run(argv, *args)
  super
  @build_command.run([])

  @stdout.puts "Pushing #{@spec.gem_file_name} to #{@spec.push_host}..."
  notify("#{@spec.gem_file_name} received.") do
    @spec.run_push_cmd
  end
end
summary() click to toggle source
# File lib/ggem/cli/commands.rb, line 249
def summary
  "Push built #{@spec.gem_file_name} to #{@spec.push_host}"
end