Sha256: 72a4097ba4f92e80641f436151c4ef90ba0c06e9db153df8011bb38d9397cf5c

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

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

  private

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

  def show_event
    mes = <<~MES


      |------------------------------------|
      | There is no corresponding command. |
      |------------------------------------|

      event:#{@event.type}
    MES

    mes.split("\n").each { |m| p m }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pleiades-0.1.6 lib/pleiades/generators/pleiades/setup/templates/base_command.rb
pleiades-0.1.5 lib/pleiades/generators/pleiades/setup/templates/base_command.rb
pleiades-0.1.4 lib/pleiades/generators/pleiades/setup/templates/base_command.rb