Class: Git::Daily::Hotfix
- Defined in:
- lib/git-daily/command/hotfix.rb
Constant Summary
Constants inherited from Release
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize ⇒ Hotfix
constructor
A new instance of Hotfix.
- #merge_branches ⇒ Object
- #usage ⇒ Object
Methods inherited from Release
#close, #list, #open, #run, #sync
Methods inherited from Command
branches, clean?, current_branch, develop, has_branch?, has_remote_branch?, logurl, master, merged_branches, pull_request_url, release_branches, remote, remote_branch, remotes, #run
Constructor Details
#initialize ⇒ Hotfix
Returns a new instance of Hotfix.
9 10 11 12 13 |
# File 'lib/git-daily/command/hotfix.rb', line 9 def initialize @base_branch = "master" @merge_to = ["master", "develop", "release"] @branch_prefix = 'hotfix' end |
Instance Method Details
#help ⇒ Object
15 16 17 |
# File 'lib/git-daily/command/hotfix.rb', line 15 def help "hotfix\tOperation hotfix release" end |
#merge_branches ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/git-daily/command/hotfix.rb', line 19 def merge_branches rel_branches = Command.release_branches("release") if rel_branches.empty? return ["master", "develop"] else return ["master", "release"] end end |
#usage ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/git-daily/command/hotfix.rb', line 28 def usage <<-EOS Usage: git daily hotfix open : Open hotfix-release process or: git daily hotfix list : Show hotfix list or: git daily hotfix sync : Sync current opened hotfix process or: git daily hotfix close : Close to hotfix-release process EOS end |