Sha256: 3ba8dd5b846697b47dd73a8334e685e1de662ec92424796485a6afb080d534d5
Contents?: true
Size: 747 Bytes
Versions: 9
Compression:
Stored size: 747 Bytes
Contents
require "appraisal/bundler_dsl" require 'appraisal/utils' module Appraisal class Git < BundlerDSL def initialize(source, options = {}) super() @source = source @options = options end 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 # :nodoc: def for_dup if @options.empty? "git #{@source.inspect} do\n#{indent(super)}\nend" else "git #{@source.inspect}, #{Utils.format_string(@options)} do\n" + "#{indent(super)}\nend" end end end end
Version data entries
9 entries across 9 versions & 3 rubygems