Class: Rhea::Configuration
- Inherits:
-
Object
- Object
- Rhea::Configuration
- Defined in:
- lib/rhea/kubernetes/configuration.rb
Instance Attribute Summary collapse
-
#command_types ⇒ Object
Returns the value of attribute command_types.
-
#container_options ⇒ Object
Returns the value of attribute container_options.
-
#default_command_type_key ⇒ Object
Returns the value of attribute default_command_type_key.
-
#default_image ⇒ Object
Returns the value of attribute default_image.
-
#env_vars ⇒ Object
Returns the value of attribute env_vars.
-
#kube_api ⇒ Object
Returns the value of attribute kube_api.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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. = {} self.default_command_type_key = 'default' self.default_image = nil self.env_vars = {} self.kube_api = {} end |
Instance Attribute Details
#command_types ⇒ Object
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_options ⇒ Object
Returns the value of attribute container_options.
3 4 5 |
# File 'lib/rhea/kubernetes/configuration.rb', line 3 def @container_options end |
#default_command_type_key ⇒ Object
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_image ⇒ Object
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_vars ⇒ Object
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_api ⇒ Object
Returns the value of attribute kube_api.
3 4 5 |
# File 'lib/rhea/kubernetes/configuration.rb', line 3 def kube_api @kube_api end |