Class: Fission::Fusion
Class Method Summary collapse
-
.running? ⇒ Boolean
Public: Determines if the VMware Fusion GUI application is running.
Class Method Details
.running? ⇒ Boolean
12 13 14 15 16 17 |
# File 'lib/fission/fusion.rb', line 12 def self.running? command = "ps -ef | grep -v grep | grep -c " command << "'#{Fission.config['gui_bin']}' 2>&1" command_executor = Fission::Action::ShellExecutor.new command command_executor.execute['output'].strip.to_i > 0 end |