Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/omf_ec/backward/core_ext/array.rb

Overview

Copyright © 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 opensource.org/licenses/MIT. By downloading or using this software you accept the terms and the liability disclaimer in the License.

Instance Method Summary collapse

Instance Method Details

#exec(name) ⇒ Object



31
32
33
34
35
# File 'lib/omf_ec/backward/core_ext/array.rb', line 31

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

#startApplication(app_name) ⇒ Object



13
14
15
16
17
# File 'lib/omf_ec/backward/core_ext/array.rb', line 13

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

#startApplicationsObject



7
8
9
10
11
# File 'lib/omf_ec/backward/core_ext/array.rb', line 7

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

#stopApplicationsObject



25
26
27
28
29
# File 'lib/omf_ec/backward/core_ext/array.rb', line 25

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