Sha256: acdb2ae02c9109b1565e9b1315c78930bc2ef53898cc03fa533fa433a79689dd

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

require 'generators/upgrow'

module Upgrow
  module Generators
    class InputGenerator < Rails::Generators::NamedBase
      include Helper

      def create_input_file
        template(
          'input.rb',
          File.join('app/inputs', class_path, "#{file_name}_input.rb")
        )
      end

      hook_for :test_framework

      private

      def file_name
        super.delete_suffix('_input')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upgrow-0.0.5 lib/generators/upgrow/input/input_generator.rb