Class: GitScf::Start
- Inherits:
-
Object
- Object
- GitScf::Start
- Defined in:
- lib/git_scf/subcommands/start.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(ticket) ⇒ Start
constructor
A new instance of Start.
Constructor Details
#initialize(ticket) ⇒ Start
Returns a new instance of Start.
3 4 5 |
# File 'lib/git_scf/subcommands/start.rb', line 3 def initialize(ticket) @ticket = ticket end |
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/git_scf/subcommands/start.rb', line 7 def execute `git checkout develop` `git pull` `git flow feature start #{@ticket.branch_name}` `git commit --allow-empty --all -m "#{@ticket.id} #in-progress (jira status update)"` `git flow feature publish #{@ticket.branch_name}` end |