Sha256: 15c6236443e4461780c9939c7eaccc42051f8bfad384750d6b2f7f30c0d55ea3

Contents?: true

Size: 458 Bytes

Versions: 8

Compression:

Stored size: 458 Bytes

Contents

require 'git'

module Semmy
  module Tasks
    class Branches < Base
      def define
        namespace 'branches' do
          task 'create_stable' do
            name = config.stable_branch_name %
              VersionString.components(Project.version)

            Shell.info("Creating stable branch #{name}.")

            git.branch(name).create
          end
        end

        def git
          Git.open('.')
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
semmy-1.1.0 lib/semmy/tasks/branches.rb
semmy-1.0.2 lib/semmy/tasks/branches.rb
semmy-1.0.1 lib/semmy/tasks/branches.rb
semmy-1.0.0 lib/semmy/tasks/branches.rb
semmy-0.4.0 lib/semmy/tasks/branches.rb
semmy-0.3.0 lib/semmy/tasks/branches.rb
semmy-0.2.1 lib/semmy/tasks/branches.rb
semmy-0.2.0 lib/semmy/tasks/branches.rb