Class: PlatformosCheck::Checks

Inherits:
Array
  • Object
show all
Defined in:
lib/platformos_check/checks.rb

Constant Summary collapse

CHECK_METHOD_TIMEOUT =

sec

5

Instance Method Summary collapse

Instance Method Details

#call(method) ⇒ Object



10
11
12
13
14
# File 'lib/platformos_check/checks.rb', line 10

def call(method, *)
  each do |check|
    call_check_method(check, method, *)
  end
end

#disableableObject



16
17
18
# File 'lib/platformos_check/checks.rb', line 16

def disableable
  @disableable ||= self.class.new(select(&:can_disable?))
end

#single_fileObject



24
25
26
# File 'lib/platformos_check/checks.rb', line 24

def single_file
  @single_file ||= self.class.new(select(&:single_file?))
end

#single_file_end_dependencies(app_file) ⇒ Object



28
29
30
31
32
# File 'lib/platformos_check/checks.rb', line 28

def single_file_end_dependencies(app_file)
  map do |check|
    check.respond_to?(:single_file_end_dependencies) ? check.single_file_end_dependencies(app_file) : []
  end.flatten.compact.uniq
end

#whole_platformos_appObject



20
21
22
# File 'lib/platformos_check/checks.rb', line 20

def whole_platformos_app
  @whole_platformos_app ||= self.class.new(select(&:whole_platformos_app?))
end