Sha256: 68a4fdce36b2e9e77019fee0161b414d46bb465a38ba404ed5280f1910f353ca

Contents?: true

Size: 483 Bytes

Versions: 25

Compression:

Stored size: 483 Bytes

Contents

require 'rails/generators'

module Service
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('templates', __dir__)

      def create_initializer_file
        template 'initializer.rb', config_file_path
      end

      def create_services_dir
        directory 'services', 'app/services'
      end

      private

      def config_file_path
        'config/initializers/command_service_object.rb'
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
command_service_object-0.5.4 lib/generators/service/install/install_generator.rb
command_service_object-0.5.3 lib/generators/service/install/install_generator.rb
command_service_object-0.5.2 lib/generators/service/install/install_generator.rb
command_service_object-0.5.1 lib/generators/service/install/install_generator.rb
command_service_object-0.5.0 lib/generators/service/install/install_generator.rb