lib/pleiades/generators/pleiades/setup/templates/base_command.rb in pleiades-0.1.1 vs lib/pleiades/generators/pleiades/setup/templates/base_command.rb in pleiades-0.1.2
- old
+ new
@@ -1,28 +1,24 @@
class BaseCommand < Pleiades::Command::BaseCommand
- include CommandCommon
-
def call
success!
show_event if disp?
end
private
def disp?
- Rails.env.development? && Pleiades::Config.disp_console
+ Rails.env.development? && Pleiades::Config.debug.disp_console
end
def show_event
- mes = <<~MES
+ p <<~MES
\n
\n
|------------------------------------|
| There is no corresponding command. |
|------------------------------------|
\n
event:#{@event.type}
MES
-
- p mes
end
end