strongqa/howitzer

View on GitHub
generators/turnip/turnip_generator.rb

Summary

Maintainability
A
0 mins
Test Coverage
require_relative '../base_generator'

module Howitzer
  # This class responsible for turnip based files generation
  class TurnipGenerator < BaseGenerator
    def manifest
      { files:
            [
              { source: '.rspec', destination: '.rspec' },
              { source: 'spec_helper.rb', destination: 'spec/spec_helper.rb' },
              { source: 'turnip_helper.rb', destination: 'spec/turnip_helper.rb' },
              { source: 'example.feature', destination: 'spec/acceptance/example.feature' },
              { source: 'common_steps.rb', destination: 'spec/steps/common_steps.rb' },
              { source: 'turnip.rake', destination: 'tasks/turnip.rake' }
            ] }
    end

    protected

    def banner
      <<-MSG
  * Turnip integration to the framework ...
      MSG
    end
  end
end