Module: GGem::CLI::GemspecCommand::InstanceMethods

Defined in:
lib/ggem/cli/commands.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/ggem/cli/commands.rb', line 167

def initialize(*args)
  super

  require 'ggem/gemspec'
  begin
    @spec = GGem::Gemspec.new(Dir.pwd)
  rescue GGem::Gemspec::NotFoundError => exception
    error = ArgumentError.new("There are no gemspecs at #{Dir.pwd}")
    error.set_backtrace(exception.backtrace)
    raise error
  end
end