class Appraisal::Git

Public Class Methods

new(source, options = {}) click to toggle source
Calls superclass method Appraisal::BundlerDSL::new
# File lib/appraisal/git.rb, line 6
def initialize(source, options = {})
  super()
  @source = source
  @options = options
end

Public Instance Methods

to_s() click to toggle source
# File lib/appraisal/git.rb, line 12
def to_s
  if @options.empty?
    "git #{Utils.prefix_path(@source).inspect} do\n#{indent(super)}\nend"
  else
    "git #{Utils.prefix_path(@source).inspect}, #{Utils.format_string(@options)} do\n" +
      "#{indent(super)}\nend"
  end
end