Class: Kitchen::Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/platform.rb

Overview

A target operating system environment in which convergence integration will take place. This may represent a specific operating system, version, and machine architecture.

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Platform

Constructs a new platform.

Parameters:

  • options (Hash) (defaults to: {})

    configuration for a new platform

Options Hash (options):

  • :name (String)

    logical name of this platform (Required)



36
37
38
39
40
# File 'lib/kitchen/platform.rb', line 36

def initialize(options = {})
  @name = options.fetch(:name) do
    raise ClientError, "Platform#new requires option :name"
  end
end

Instance Attribute Details

#nameString (readonly)

Returns logical name of this platform.

Returns:

  • (String)

    logical name of this platform



29
30
31
# File 'lib/kitchen/platform.rb', line 29

def name
  @name
end