Sha256: 2f35e564020c3b3c1a724f343984a8909a523619adb259177baa5c28aecdf4af

Contents?: true

Size: 1.37 KB

Versions: 9

Compression:

Stored size: 1.37 KB

Contents

module Papa
  module CLI
    class Hotfix < Thor
      desc 'start', 'Start a new hotfix branch'
      option :version, aliases: '-v', required: true
      def start
        version = options[:version]

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

      desc 'add', 'Add bugfix branches to a hotfix branch'
      option :version, aliases: '-v', required: true
      option :bugfix_branches, aliases: '-b', type: :array
      def add
        version = options[:version]
        bugfix_branches = options[:bugfix_branches] || []

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

      desc 'deploy', 'Deploy the hotfix branch to hotfix.indinerocorp.com'
      option :version, aliases: '-v', required: true
      def deploy
        version = options[:version]
        require 'papa/task/hotfix/deploy'
        Task::Hotfix::Deploy.new(version).run
      end

      desc 'finish', 'Merge the hotfix branch to the base branches'
      option :version, aliases: '-v', required: true
      option :additional_branches, aliases: '-b', type: :array
      def finish
        version = options[:version]
        additional_branches = options[:additional_branches]

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
papa-1.2.0 lib/papa/cli/hotfix.rb
papa-1.1.0 lib/papa/cli/hotfix.rb
papa-1.0.0 lib/papa/cli/hotfix.rb
papa-0.7.2 lib/papa/cli/hotfix.rb
papa-0.7.1 lib/papa/cli/hotfix.rb
papa-0.7.0 lib/papa/cli/hotfix.rb
papa-0.6.2 lib/papa/cli/hotfix.rb
papa-0.6.1 lib/papa/cli/hotfix.rb
papa-0.6.0 lib/papa/cli/hotfix.rb