Class: Devup::Compose::PortConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ PortConfig

Returns a new instance of PortConfig.



4
5
6
# File 'lib/devup/compose/port_config.rb', line 4

def initialize(config)
  @config = config
end

Instance Method Details

#==(another) ⇒ Object



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

def ==(another)
  from == another.from
end

#fromObject



8
9
10
# File 'lib/devup/compose/port_config.rb', line 8

def from
  @config.split(":")[-1].to_i
end