Sha256: 863c1be67fea890d3a2fadc87f5d813a8fe56db5389f6635db2be0e3ad35d721

Contents?: true

Size: 1.33 KB

Versions: 9

Compression:

Stored size: 1.33 KB

Contents

# -*- encoding: utf-8 -*-
#
# Author:: Fletcher Nichol (<fnichol@nichol.ca>)
#
# Copyright (C) 2012, Fletcher Nichol
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

module Kitchen

  # A target operating system environment in which convergence integration
  # will take place. This may represent a specific operating system, version,
  # and machine architecture.
  #
  # @author Fletcher Nichol <fnichol@nichol.ca>
  class Platform

    # @return [String] logical name of this platform
    attr_reader :name

    # Constructs a new platform.
    #
    # @param [Hash] options configuration for a new platform
    # @option options [String] :name logical name of this platform
    #   (**Required**)
    def initialize(options = {})
      @name = options.fetch(:name) do
        raise ClientError, "Platform#new requires option :name"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
test-kitchen-1.3.1 lib/kitchen/platform.rb
test-kitchen-1.3.0 lib/kitchen/platform.rb
test-kitchen-1.2.1 lib/kitchen/platform.rb
test-kitchen-1.2.0 lib/kitchen/platform.rb
test-kitchen-1.1.1 lib/kitchen/platform.rb
test-kitchen-1.1.0 lib/kitchen/platform.rb
test-kitchen-1.0.0 lib/kitchen/platform.rb
test-kitchen-1.0.0.rc.2 lib/kitchen/platform.rb
test-kitchen-1.0.0.rc.1 lib/kitchen/platform.rb