Method: Kaiser::Kaiserfile#service

Defined in:
lib/kaiser/kaiserfile.rb

#service(name, image: name, command: nil, binds: {}, env: {}) ⇒ Object



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/kaiser/kaiserfile.rb', line 105

def service(name,
            image: name,
            command: nil,
            binds: {},
            env: {})

  raise "duplicate service #{name.inspect}" if @services.key?(name)

  @services[name] = {
    image: image,
    command: command,
    binds: binds,
    env: env
  }
end