Class: Papa::CLI::Hotfix

Inherits:
Thor
  • Object
show all
Defined in:
lib/papa/cli/hotfix.rb

Instance Method Summary collapse

Methods inherited from Thor

exit_on_failure?

Instance Method Details

#addObject



16
17
18
19
20
21
22
# File 'lib/papa/cli/hotfix.rb', line 16

def add
  version = options[:version]
  bugfix_branches = options[:bugfix_branches] || []

  require 'papa/task/hotfix/add'
  Task::Hotfix::Add.new(version, bugfix_branches).run
end

#deployObject



26
27
28
29
30
# File 'lib/papa/cli/hotfix.rb', line 26

def deploy
  version = options[:version]
  require 'papa/task/hotfix/deploy'
  Task::Hotfix::Deploy.new(version).run
end

#finishObject



35
36
37
38
39
40
41
# File 'lib/papa/cli/hotfix.rb', line 35

def finish
  version = options[:version]
  additional_branches = options[:additional_branches]

  require 'papa/task/hotfix/finish'
  Task::Hotfix::Finish.new(version, additional_branches).run
end

#startObject



6
7
8
9
10
11
# File 'lib/papa/cli/hotfix.rb', line 6

def start
  version = options[:version]

  require 'papa/task/hotfix/start'
  Task::Hotfix::Start.new(version).run
end