class Construqt::Services

Attributes

region[R]

Public Class Methods

new(region) click to toggle source
# File lib/construqt/services.rb, line 40
def initialize(region)
  @region = region
  @services = {}
end

Public Instance Methods

add(service) click to toggle source
# File lib/construqt/services.rb, line 51
def add(service)
  @services[service.name] = service
  service.services = self
  self
end
find(name) click to toggle source
# File lib/construqt/services.rb, line 45
def find(name)
  found = @services[name]
  throw "service with name #{name} not found" unless found
  found
end