Sha256: 13cbb93ea2ee4e2a5e6f8244e4b358372c53a128e26e6fb8b03333bd901b2ed2
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true module Slayer module Generators class CommandGenerator < NamedBase desc 'This generator creates new Slayer::Commands' source_root File.expand_path('templates', __dir__) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slayer_rails-0.5.4 | lib/generators/command/command_generator.rb |
slayer_rails-0.5.0.beta | lib/generators/command/command_generator.rb |