module GGem::CLI::GemspecCommand
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
GGem::CLI::ValidCommand::new
# File lib/ggem/cli/commands.rb, line 153 def initialize(*args) super require "ggem/gemspec" begin @spec = GGem::Gemspec.new(Dir.pwd) rescue GGem::Gemspec::NotFoundError => ex error = ArgumentError.new("There are no gemspecs at #{Dir.pwd}") error.set_backtrace(ex.backtrace) raise error end 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 168 def notify(*args, &block) begin super rescue GGem::Gemspec::CmdError => ex @stderr.puts ex.message raise CommandExitError end end