Class: Devup::Compose::V2::Processes

Inherits:
Devup::Compose::V1::Processes show all
Defined in:
lib/devup/compose/v2/processes.rb

Instance Attribute Summary

Attributes inherited from Devup::Compose::V1::Processes

#output

Instance Method Summary collapse

Methods inherited from Devup::Compose::V1::Processes

#initialize, #port_mapping

Constructor Details

This class inherits a constructor from Devup::Compose::V1::Processes

Instance Method Details

#up?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/devup/compose/v2/processes.rb', line 7

def up?
  service_lines.map { |line|
    line.match(/running/) && !line.match(/exited/)
  }.all?
end