Sha256: 29cbf26b5071c4cb09e2a3419dc0a1cf5f408d2ec8a5e2c2ebd461e9827861c2

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

require 'active_support/inflector'
require_relative 'story'

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

      create_feature!
    end

    private

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

    def create_feature!
      create_story!("feature")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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