Class: Nvoi::Configuration::Providers::ComputeProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/nvoi/configuration/providers.rb

Overview

ComputeProvider contains compute provider configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#awsObject

Returns the value of attribute aws.



18
19
20
# File 'lib/nvoi/configuration/providers.rb', line 18

def aws
  @aws
end

#hetznerObject

Returns the value of attribute hetzner.



18
19
20
# File 'lib/nvoi/configuration/providers.rb', line 18

def hetzner
  @hetzner
end

#scalewayObject

Returns the value of attribute scaleway.



18
19
20
# File 'lib/nvoi/configuration/providers.rb', line 18

def scaleway
  @scaleway
end