Class: Kitsune::Kit::Configuration::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/kitsune/kit/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:, region:, size:, image:, ssh_key_id:, tags: []) ⇒ Server

Returns a new instance of Server.



22
23
24
25
26
27
28
29
30
31
# File 'lib/kitsune/kit/configuration.rb', line 22

def initialize(name:, region:, size:, image:, ssh_key_id:, tags: [])
  super(
    name: name.to_s,
    region: region.to_s,
    size: size.to_s,
    image: image.to_s,
    ssh_key_id: ssh_key_id.to_s,
    tags: Array(tags).map(&:to_s).freeze
  )
end