Class: PlatformosCheck::Checks
- Inherits:
-
Array
- Object
- Array
- PlatformosCheck::Checks
- Defined in:
- lib/platformos_check/checks.rb
Constant Summary collapse
- CHECK_METHOD_TIMEOUT =
sec
5
Instance Method Summary collapse
- #call(method) ⇒ Object
- #disableable ⇒ Object
- #single_file ⇒ Object
- #single_file_end_dependencies(app_file) ⇒ Object
- #whole_platformos_app ⇒ Object
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 |
#disableable ⇒ Object
16 17 18 |
# File 'lib/platformos_check/checks.rb', line 16 def disableable @disableable ||= self.class.new(select(&:can_disable?)) end |
#single_file ⇒ Object
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_app ⇒ Object
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 |