class Git::Daily::Hotfix

Public Class Methods

new() click to toggle source
# File lib/git-daily/command/hotfix.rb, line 8
def initialize
  @base_branch = Command.master
  @branch_prefix = 'hotfix'
  @release_branch_prefix =  'release'
end

Public Instance Methods

help() click to toggle source
# File lib/git-daily/command/hotfix.rb, line 14
def help
  "hotfix\tOperation hotfix release"
end
merge_branches() click to toggle source
# File lib/git-daily/command/hotfix.rb, line 18
def merge_branches
  rel_branches = Command.release_branches(@release_branch_prefix)
  if rel_branches.empty?
    return [Command.master, Command.develop]
  else
    return [Command.master, @release_branch_prefix]
  end
end
usage() click to toggle source
# File lib/git-daily/command/hotfix.rb, line 27
      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