Class: EasyAuto::SetUpstream
- Inherits:
-
Object
- Object
- EasyAuto::SetUpstream
- Includes:
- GitWrapper
- Defined in:
- lib/easy_auto/set_upstream.rb
Instance Attribute Summary collapse
-
#upstream_branch ⇒ Object
readonly
Returns the value of attribute upstream_branch.
Instance Method Summary collapse
-
#initialize(upstream_branch) ⇒ SetUpstream
constructor
A new instance of SetUpstream.
- #set ⇒ Object
Methods included from GitWrapper
Constructor Details
#initialize(upstream_branch) ⇒ SetUpstream
Returns a new instance of SetUpstream.
8 9 10 |
# File 'lib/easy_auto/set_upstream.rb', line 8 def initialize upstream_branch @upstream_branch = upstream_branch end |
Instance Attribute Details
#upstream_branch ⇒ Object (readonly)
Returns the value of attribute upstream_branch.
6 7 8 |
# File 'lib/easy_auto/set_upstream.rb', line 6 def upstream_branch @upstream_branch end |
Instance Method Details
#set ⇒ Object
12 13 14 |
# File 'lib/easy_auto/set_upstream.rb', line 12 def set git.perform "push --set-upstream origin #{upstream_branch}" end |