module GGem::CLI::GitRepoCommand

Public Class Methods

new(*args) click to toggle source
Calls superclass method GGem::CLI::ValidCommand::new
# File lib/ggem/cli/commands.rb, line 92
def initialize(*args)
  super

  require "ggem/git_repo"
  @repo = GGem::GitRepo.new(Dir.pwd)
end

Public Instance Methods

notify(*args, &block) click to toggle source
Calls superclass method GGem::CLI::NotifyCmdCommand#notify
# File lib/ggem/cli/commands.rb, line 101
def notify(*args, &block)
  begin
    super
  rescue GGem::GitRepo::CmdError => ex
    @stderr.puts ex.message
    raise CommandExitError
  end
end