Class: Dude::Git
- Inherits:
-
Object
- Object
- Dude::Git
- Defined in:
- lib/dude/git.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ Git
constructor
A new instance of Git.
Constructor Details
#initialize(options = {}) ⇒ Git
Returns a new instance of Git.
7 8 9 |
# File 'lib/dude/git.rb', line 7 def initialize( = {}) = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/dude/git.rb', line 5 def end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/dude/git.rb', line 11 def call ::Git.init.branch([:branch_name]).checkout if [:branch_name] end |