Class: Nvoi::Configuration::Providers::ComputeProvider
- Inherits:
-
Object
- Object
- Nvoi::Configuration::Providers::ComputeProvider
- Defined in:
- lib/nvoi/configuration/providers.rb
Overview
ComputeProvider contains compute provider configuration
Instance Attribute Summary collapse
-
#aws ⇒ Object
Returns the value of attribute aws.
-
#hetzner ⇒ Object
Returns the value of attribute hetzner.
-
#scaleway ⇒ Object
Returns the value of attribute scaleway.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ ComputeProvider
constructor
A new instance of ComputeProvider.
Constructor Details
#initialize(data = nil) ⇒ ComputeProvider
Returns a new instance of ComputeProvider.
20 21 22 23 24 25 |
# File 'lib/nvoi/configuration/providers.rb', line 20 def initialize(data = nil) data ||= {} @hetzner = data["hetzner"] ? Hetzner.new(data["hetzner"]) : nil @aws = data["aws"] ? AwsCfg.new(data["aws"]) : nil @scaleway = data["scaleway"] ? Scaleway.new(data["scaleway"]) : nil end |
Instance Attribute Details
#aws ⇒ Object
Returns the value of attribute aws.
18 19 20 |
# File 'lib/nvoi/configuration/providers.rb', line 18 def aws @aws end |
#hetzner ⇒ Object
Returns the value of attribute hetzner.
18 19 20 |
# File 'lib/nvoi/configuration/providers.rb', line 18 def hetzner @hetzner end |
#scaleway ⇒ Object
Returns the value of attribute scaleway.
18 19 20 |
# File 'lib/nvoi/configuration/providers.rb', line 18 def scaleway @scaleway end |