Class: MultiGit::RefSpec
- Inherits:
-
Struct
- Object
- Struct
- MultiGit::RefSpec
- Extended by:
- Utils::AbstractMethods
- Defined in:
- lib/multi_git/refspec.rb
Overview
A RefSpec describes which and how references are updated during push and pull.
It basically says: set the “to” ref to the target of “from”
Defined Under Namespace
Classes: Parser
Constant Summary collapse
Instance Attribute Summary collapse
- #forced ⇒ Boolean (also: #forced?)
- #from ⇒ String
- #to ⇒ String
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(from, to, forced = false) ⇒ RefSpec
constructor
A new instance of RefSpec.
- #inspect ⇒ Object
- #to_s ⇒ Object
Methods included from Utils::AbstractMethods
Constructor Details
#initialize(from, to, forced = false) ⇒ RefSpec
Returns a new instance of RefSpec.
29 30 31 |
# File 'lib/multi_git/refspec.rb', line 29 def initialize(from,to,forced = false) super end |
Instance Attribute Details
#forced ⇒ Boolean Also known as: forced?
11 12 13 |
# File 'lib/multi_git/refspec.rb', line 11 def forced @forced end |
#from ⇒ String
11 12 13 |
# File 'lib/multi_git/refspec.rb', line 11 def from @from end |
#to ⇒ String
11 12 13 |
# File 'lib/multi_git/refspec.rb', line 11 def to @to end |
Class Method Details
.parse(arg) ⇒ Object
122 123 124 |
# File 'lib/multi_git/refspec.rb', line 122 def parse(arg) DEFAULT_PARSER[arg].first end |