Sha256: 61d93e270aa9c9300ee2bebc2f0a6f2fd0f2fce83b40602532e8faa4b9870e46

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

class BaseCommand < Pleiades::Command::BaseCommand
  def call
    success!
    show_event if disp?
  end

  private

  def disp?
    Rails.env.development? && Pleiades::Config.debug.disp_console
  end

  def show_event
    p <<~MES
      \n
      \n
      |------------------------------------|
      | There is no corresponding command. |
      |------------------------------------|
      \n
      event:#{@event.type}
    MES
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pleiades-0.1.3 lib/pleiades/generators/pleiades/setup/templates/base_command.rb
pleiades-0.1.2 lib/pleiades/generators/pleiades/setup/templates/base_command.rb