Class: Appraisal::Git
- Inherits:
-
BundlerDSL
- Object
- BundlerDSL
- Appraisal::Git
- Defined in:
- lib/appraisal/git.rb
Constant Summary
Constants inherited from BundlerDSL
Instance Attribute Summary
Attributes inherited from BundlerDSL
Instance Method Summary collapse
-
#for_dup ⇒ Object
:nodoc:.
-
#initialize(source, options = {}) ⇒ Git
constructor
A new instance of Git.
- #to_s ⇒ Object
Methods inherited from BundlerDSL
#gem, #gemspec, #git, #git_source, #group, #install_if, #path, #platforms, #remove_gem, #ruby, #run, #source
Constructor Details
#initialize(source, options = {}) ⇒ Git
Returns a new instance of Git.
8 9 10 11 12 |
# File 'lib/appraisal/git.rb', line 8 def initialize(source, = {}) super() @source = source @options = end |
Instance Method Details
#for_dup ⇒ Object
:nodoc:
24 25 26 27 28 29 30 31 |
# File 'lib/appraisal/git.rb', line 24 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 |
#to_s ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/appraisal/git.rb', line 14 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 |