Sha256: cd1870012ccb603614d56c07e2e08cddf9dbcaaf925a41d2efa662d64c5de7f9
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 Bytes
Contents
class CommandGenerator < Liza::Generator main_dsl FOLDER = "app/dev/commands" generate :controller do folder FOLDER filename "#{name}_command.rb" content render "command.rb" end generate :controller_test do folder FOLDER filename "#{name}_command_test.rb" content render "command_test.rb" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lizarb-1.0.3 | app/dev/generators/command_generator.rb |
lizarb-1.0.2 | app/dev/generators/command_generator.rb |