Sha256: 886c868b197cb5713a2cf150bf0cb13c4b996c7dc3aa27941a2cab1997b6658f

Contents?: true

Size: 397 Bytes

Versions: 7

Compression:

Stored size: 397 Bytes

Contents

module Slayer
  module Generators
    class ServiceGenerator < NamedBase
      desc "This generator creates new Slayer::Services"

      source_root File.expand_path("../templates", __FILE__)
      check_class_collision suffix: "Service"

      def create_service_files
        template "service.rb", File.join("app", "services", class_path, "#{file_name}_service.rb")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slayer_rails-0.4.0.beta4 lib/generators/service/service_generator.rb
slayer_rails-0.4.0.beta3 lib/generators/service/service_generator.rb
slayer_rails-0.3.3 lib/generators/service/service_generator.rb
slayer_rails-0.3.2 lib/generators/service/service_generator.rb
slayer_rails-0.3.1 lib/generators/service/service_generator.rb
slayer_rails-0.3.0 lib/generators/service/service_generator.rb
slayer_rails-0.1.0 lib/generators/service/service_generator.rb