class GGem::CLI::InstallCommand

Public Class Methods

new(*args) click to toggle source
Calls superclass method GGem::CLI::GemspecCommand::new
# File lib/ggem/cli/commands.rb, line 205
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 223
def help
  "Usage: ggem install [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 210
def run(argv, *args)
  super
  @build_command.run([])

  notify("#{@spec.name} #{@spec.version} installed to system gems") do
    @spec.run_install_cmd
  end
end
summary() click to toggle source
# File lib/ggem/cli/commands.rb, line 219
def summary
  "Build and install #{@spec.gem_file_name} into system gems"
end