Class: Slayer::Generators::CommandGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
lib/generators/command/command_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_command_filesObject



9
10
11
# File 'lib/generators/command/command_generator.rb', line 9

def create_command_files
  template "command.rb", File.join("app", "commands", class_path, "#{file_name}_command.rb")
end