Class: Fission::Fusion

Inherits:
Object show all
Defined in:
lib/fission/fusion.rb

Class Method Summary collapse

Class Method Details

.is_running?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
# File 'lib/fission/fusion.rb', line 4

def self.is_running?
  command = "ps -ef | grep -v grep | grep -c "
  command << "#{Fission.config.attributes['gui_bin'].gsub(' ', '\ ')} 2>&1"
  output = `#{command}`

  output.strip.to_i > 0 ? true : false
end