class Vagrant::BoxMetadata::Provider

Provider represents a single provider-specific box available for a version for a box.

Attributes

architecture[RW]

The architecture of the box

@return [String]

checksum[RW]

The checksum value for this box, if any.

@return [String]

checksum_type[RW]

The type of checksum (if any) associated with this provider.

@return [String]

default_architecture[RW]

Marked as the default architecture

@return [Boolean, NilClass]

name[RW]

The name of the provider.

@return [String]

url[RW]

The URL of the box.

@return [String]

Public Class Methods

new(raw, **_) click to toggle source
# File lib/vagrant/box_metadata.rb, line 241
def initialize(raw, **_)
  @name = raw["name"]
  @url  = raw["url"]
  @checksum = raw["checksum"]
  @checksum_type = raw["checksum_type"]
  @architecture = raw["architecture"]
  @default_architecture = raw["default_architecture"]
end

Public Instance Methods

architecture_support?() click to toggle source
# File lib/vagrant/box_metadata.rb, line 250
def architecture_support?
  !@default_architecture.nil?
end