Sha256: 7c4690283b6493c39bbe420658d809255795e232313303a8396fa823fed8d4af

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

require 'karo/common'
require 'thor'
# require 'rugged'

module Karo

	class Workflow < Thor

    include Karo::Common

    desc "feature", "create a feature branch for a given name"
    def feature(name)
      say "Temporary disabled till a proper version of rugged is released", :red
      # branch_name = "feature/#{name}"

      # if current_branch.eql?(branch_name)
      #   say "You are already on #{branch_name} this feature branch", :red
      # elsif branch_exists? branch_name
      #   say "Feature branch #{branch_name} already exists! so checking it out", :red
      #   checkout_branch branch_name
      # else
      #   create_and_checkout_branch branch_name
      # end
    end

    desc "bugfix", "create a bug fix branch for a given name"
    def bugfix(name)
      say "Temporary disabled till a proper version of rugged is released", :red
      # branch_name = "bugfix/#{name}"

      # if current_branch.eql?(branch_name)
      #   say "You are already on #{branch_name} this bug fix branch", :red
      # elsif branch_exists? branch_name
      #   say "Bug fix branch #{branch_name} already exists! so checking it out", :red
      #   checkout_branch branch_name
      # else
      #   create_and_checkout_branch branch_name
      # end
    end

	end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
karo-2.5.2 lib/karo/workflow.rb
karo-2.5.1 lib/karo/workflow.rb