module Gouteur::Host

the gem/library/project under test

Public Instance Methods

gemspec() click to toggle source
# File lib/gouteur/host.rb, line 10
def gemspec
  @gemspec ||= begin
    gemspecs = Dir[File.join(root, '*.gemspec')]
    (count = gemspecs.count) == 1 ||
      raise(Error, "Found #{count} gemspecs, could not determine own name")
    Bundler.load_gemspec(gemspecs.first)
  end
end
name() click to toggle source
# File lib/gouteur/host.rb, line 6
def name
  gemspec.name || raise(Error, "No name set in `#{gemspec.loaded_from}`")
end
root() click to toggle source
# File lib/gouteur/host.rb, line 19
def root
  Bundler.root
end