Class: Imperator::Generators::CommandGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/imperator/command_generator.rb

Instance Method Summary collapse

Instance Method Details

#main_flowObject



8
9
10
11
12
13
# File 'lib/generators/imperator/command_generator.rb', line 8

def main_flow
  empty_directory "app/commands"
  inside "app/commands" do
    template "command.tt", "#{file_path}_command.rb"
  end
end