Class: GitScf::Start

Inherits:
Object
  • Object
show all
Defined in:
lib/git_scf/subcommands/start.rb

Instance Method Summary collapse

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

#executeObject



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