Sha256: 93c9adf18bee3644302ec1512ef7c35223bf32350e0933a182b6b0292c32517a

Contents?: true

Size: 374 Bytes

Versions: 25

Compression:

Stored size: 374 Bytes

Contents

module Fission
  class Fusion

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

      response = Fission::Response.new :code => 0

      output.strip.to_i > 0 ? response.data = true : response.data = false

      response
    end

  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 lib/fission.old/fusion.rb
veewee-0.5.0.alpha3 lib/fission.old/fusion.rb
veewee-0.5.0.alpha2 lib/fission.old/fusion.rb
veewee-0.5.0.alpha1 lib/fission.old/fusion.rb
veewee-0.4.5.1 lib/fission.old/fusion.rb
veewee-0.4.5 lib/fission.old/fusion.rb
veewee-0.4.5.pre1 lib/fission.old/fusion.rb
veewee-0.4.4 lib/fission.old/fusion.rb
veewee-0.4.3 lib/fission.old/fusion.rb
veewee-0.4.2 lib/fission.old/fusion.rb
veewee-0.4.1 lib/fission.old/fusion.rb
veewee-0.4.0 lib/fission.old/fusion.rb
veewee-0.3.12 lib/fission.old/fusion.rb
veewee-0.3.11 lib/fission.old/fusion.rb
veewee-0.3.10 lib/fission.old/fusion.rb
veewee-0.3.9 lib/fission.old/fusion.rb
veewee-0.3.0.alpha9 lib/fission/fusion.rb
veewee-0.3.0.alpha8 lib/fission/fusion.rb
veewee-0.3.0.alpha7 lib/fission/fusion.rb
veewee-0.3.0.alpha6 lib/fission/fusion.rb