Class: Server::Installed

Inherits:
Object
  • Object
show all
Defined in:
lib/server/installed.rb

Class Method Summary collapse

Class Method Details

.brew?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/server/installed.rb', line 9

def self.brew?
  `which brew` != ""
end

.nginx?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/server/installed.rb', line 13

def self.nginx?
  `which nginx` != ""
end

.phpfpm?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/server/installed.rb', line 17

def self.phpfpm?
  `which php-fpm` != ""
end

.yum?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/server/installed.rb', line 5

def self.yum?
  `which yum` != ""
end