Class: Breakfast::LocalEnvironment

Inherits:
Object
  • Object
show all
Defined in:
lib/breakfast/local_environment.rb

Instance Method Summary collapse

Instance Method Details

#running_server?Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/breakfast/local_environment.rb', line 3

def running_server?
  possible_servers = %w[
    rails
    puma
    passenger
    unicorn
    mongrel
    webrick
    rainbows
  ]

  possible_servers.any? do |server|
    send "detect_#{server}"
  end
end