class Kitchen::Driver::Aws::StandardPlatform::MacOS
Public Class Methods
Source
# File lib/kitchen/driver/aws/standard_platform/macos.rb, line 41 def self.from_image(driver, image) return unless /amzn-ec2-macos/i.match?(image.name) image.name =~ /\b(\d+(\.\d+[\.\d])?)/i new(driver, "macos", (Regexp.last_match || [])[1], image.architecture) end
Public Instance Methods
Source
# File lib/kitchen/driver/aws/standard_platform/macos.rb, line 31 def image_search search = { "owner-id" => "100343932686", "name" => version ? "amzn-ec2-macos-#{version}*" : "amzn2-ec2-macos-*", } search["architecture"] = architecture if architecture search["architecture"] = "arm64_mac" if architecture == "arm64" search end
Source
# File lib/kitchen/driver/aws/standard_platform/macos.rb, line 27 def username "ec2-user" end
default username for this platform’s ami @return [String]