class Appraisal::Gemfile

Load bundler Gemfiles and merge dependencies

Public Instance Methods

dup() click to toggle source
# File lib/appraisal/gemfile.rb, line 22
def dup
  Gemfile.new.tap do |gemfile|
    gemfile.git_sources = @git_sources
    gemfile.run(for_dup, __FILE__, __LINE__)
  end
end
load(path) click to toggle source
# File lib/appraisal/gemfile.rb, line 14
def load(path)
  run(IO.read(path), path) if File.exist?(path)
end
run(definitions, path, line = 1) click to toggle source
# File lib/appraisal/gemfile.rb, line 18
def run(definitions, path, line = 1)
  instance_eval(definitions, path, line) if definitions
end