Sha256: 11a3ebc5600fc99bb2238b705999c48b207ccef6e4bcd350a890c19bad404a85

Contents?: true

Size: 397 Bytes

Versions: 7

Compression:

Stored size: 397 Bytes

Contents

module Slayer
  module Generators
    class CommandGenerator < NamedBase
      desc "This generator creates new Slayer::Commands"

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

      def create_command_files
        template "command.rb", File.join("app", "commands", class_path, "#{file_name}_command.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/command/command_generator.rb
slayer_rails-0.4.0.beta3 lib/generators/command/command_generator.rb
slayer_rails-0.3.3 lib/generators/command/command_generator.rb
slayer_rails-0.3.2 lib/generators/command/command_generator.rb
slayer_rails-0.3.1 lib/generators/command/command_generator.rb
slayer_rails-0.3.0 lib/generators/command/command_generator.rb
slayer_rails-0.1.0 lib/generators/command/command_generator.rb