Sha256: e1cd52d12b99b6afbef63067919556e5ddc6e12fe1d42b685ce54171c3203810

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 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!
      GitService.
        new(repository: GitFlower::GitRepository.new(Dir.pwd)).
        validate_for_feature!
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_flower-0.2.0 lib/git_flower/feature.rb