class Kitchen::Driver::Aws::StandardPlatform::Alma
Public Class Methods
from_image(driver, image)
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/alma.rb, line 42 def self.from_image(driver, image) return unless /AlmaLinux OS/i.match?(image.name) image.name =~ /\b(\d+(\.\d+)?)\b/i new(driver, "alma", (Regexp.last_match || [])[1], image.architecture) end
Public Instance Methods
image_search()
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/alma.rb, line 33 def image_search search = { "owner-id" => "764336703387", "name" => version ? "AlmaLinux OS #{version}*" : "AlmaLinux OS *", } search["architecture"] = architecture if architecture search end
username()
click to toggle source
default username for this platform’s ami @return [String]
# File lib/kitchen/driver/aws/standard_platform/alma.rb, line 29 def username "ec2-user" end