Class: Yabeda::Rails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/yabeda/rails/railtie.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#puma_server?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/yabeda/rails/railtie.rb', line 14

def puma_server?
  ::Rails.const_defined?("Puma::CLI")
end

#rails_server?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/yabeda/rails/railtie.rb', line 10

def rails_server?
  ::Rails.const_defined?(:Server)
end

#unicorn_server?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/yabeda/rails/railtie.rb', line 18

def unicorn_server?
  ::Rails.const_defined?("Unicorn::Launcher")
end