Class: Rhea::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rhea/kubernetes/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/rhea/kubernetes/configuration.rb', line 5

def initialize
  self.command_types = [
    {
      key: 'default',
      name: 'Default',
      format: '$INPUT'
    },
    {
      key: 'resque',
      name: 'Resque',
      format: 'QUEUES=$INPUT rake resque:work'
    },
    {
      key: 'sidekiq',
      name: 'Sidekiq',
      format: 'bundle exec sidekiq $INPUT'
    }
  ]
  self.container_options = {}
  self.default_command_type_key = 'default'
  self.default_image = nil
  self.env_vars = {}
  self.kube_api = {}
end

Instance Attribute Details

#command_typesObject

Returns the value of attribute command_types.



3
4
5
# File 'lib/rhea/kubernetes/configuration.rb', line 3

def command_types
  @command_types
end

#container_optionsObject

Returns the value of attribute container_options.



3
4
5
# File 'lib/rhea/kubernetes/configuration.rb', line 3

def container_options
  @container_options
end

#default_command_type_keyObject

Returns the value of attribute default_command_type_key.



3
4
5
# File 'lib/rhea/kubernetes/configuration.rb', line 3

def default_command_type_key
  @default_command_type_key
end

#default_imageObject

Returns the value of attribute default_image.



3
4
5
# File 'lib/rhea/kubernetes/configuration.rb', line 3

def default_image
  @default_image
end

#env_varsObject

Returns the value of attribute env_vars.



3
4
5
# File 'lib/rhea/kubernetes/configuration.rb', line 3

def env_vars
  @env_vars
end

#kube_apiObject

Returns the value of attribute kube_api.



3
4
5
# File 'lib/rhea/kubernetes/configuration.rb', line 3

def kube_api
  @kube_api
end