Sha256: 47f1241ee05e401270ad8e6f30fbba9aa750f8c49d1c1de72bd225d87355d3e8

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

require 'active_support/inflector'
require_relative 'story'

module GitFlower
  class Hotfix < Story
    def save!
      validate_environment_and_arguments!
      validate_git_repository!

      create_hotfix!
    end

    private

    def validate_git_repository!
      GitRepository.new(Dir.pwd).validate_for_hotfix!
    end

    def create_hotfix!
      create_story!("hotfix")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git_flower-0.1.3 lib/git_flower/hotfix.rb
git_flower-0.1.2 lib/git_flower/hotfix.rb
git_flower-0.1.1 lib/git_flower/hotfix.rb