Sha256: efa2665b2cd1bd8058ef245feb0b2bf739e490b06b094cdf33b789425a2297c9

Contents?: true

Size: 1.11 KB

Versions: 43

Compression:

Stored size: 1.11 KB

Contents

# Copyright (c) 2012 National ICT Australia Limited (NICTA).
# This software may be used and distributed solely under the terms of the MIT license (License).
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
# By downloading or using this software you accept the terms and the liability disclaimer in the License.

class Array
  def startApplications
    if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
      self.each { |g| g.startApplications }
    end
  end

  def startApplication(app_name)
    if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
      self.each { |g| g.startApplication(app_name) }
    end
  end

  def startApplication(app_name)
    if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
      self.each { |g| g.startApplication(app_name) }
    end
  end

  def stopApplications
    if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
      self.each { |g| g.stopApplications }
    end
  end

  def exec(name)
    if !self.empty? && self.all? { |v| v.class == OmfEc::Group }
      self.each { |g| g.exec(name) }
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
omf_ec-6.2.3 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.2.2 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.2.1 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.2.0 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.2.0.pre.2 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.2.0.pre.1 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.14.pre.2 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.14.pre.1 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.12 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.11 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.10 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.9 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.9.pre.4 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.9.pre.3 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.9.pre.2 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.8 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.7 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.6 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.6.pre.2 lib/omf_ec/backward/core_ext/array.rb
omf_ec-6.1.6.pre.1 lib/omf_ec/backward/core_ext/array.rb