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-1.4.1 lib/generators/service/install/install_generator.rb
command_service_object-1.4.0 lib/generators/service/install/install_generator.rb
command_service_object-1.3.0 lib/generators/service/install/install_generator.rb
command_service_object-1.2.1 lib/generators/service/install/install_generator.rb
command_service_object-1.1.1 lib/generators/service/install/install_generator.rb
command_service_object-1.1.0 lib/generators/service/install/install_generator.rb
command_service_object-1.0.0 lib/generators/service/install/install_generator.rb
command_service_object-0.6.5 lib/generators/service/install/install_generator.rb
command_service_object-0.6.4 lib/generators/service/install/install_generator.rb
command_service_object-0.6.3 lib/generators/service/install/install_generator.rb
command_service_object-0.6.2 lib/generators/service/install/install_generator.rb
command_service_object-0.6.1 lib/generators/service/install/install_generator.rb
command_service_object-0.6.0 lib/generators/service/install/install_generator.rb
command_service_object-0.5.11 lib/generators/service/install/install_generator.rb
command_service_object-0.5.10 lib/generators/service/install/install_generator.rb
command_service_object-0.5.9 lib/generators/service/install/install_generator.rb
command_service_object-0.5.8 lib/generators/service/install/install_generator.rb
command_service_object-0.5.7 lib/generators/service/install/install_generator.rb
command_service_object-0.5.6 lib/generators/service/install/install_generator.rb
command_service_object-0.5.5 lib/generators/service/install/install_generator.rb