Class: Devup::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/devup/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(compose, name) ⇒ Service

Returns a new instance of Service.



7
8
9
10
# File 'lib/devup/service.rb', line 7

def initialize(compose, name)
  @compose = compose
  @name = name
end

Instance Attribute Details

#composeObject (readonly)

Returns the value of attribute compose.



5
6
7
# File 'lib/devup/service.rb', line 5

def compose
  @compose
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/devup/service.rb', line 5

def name
  @name
end

Instance Method Details

#portsObject



12
13
14
# File 'lib/devup/service.rb', line 12

def ports
  @ports ||= fetch_ports
end