class Kitchen::Driver::Aws::StandardPlatform::Rocky
Public Class Methods
from_image(driver, image)
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/rocky.rb, line 41 def self.from_image(driver, image) return unless /Rocky-/i.match?(image.name) image.name =~ /\b(\d+(\.\d+[\.\d])?)/i new(driver, "rocky", (Regexp.last_match || [])[1], image.architecture) end
Public Instance Methods
image_search()
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/rocky.rb, line 32 def image_search search = { "owner-id" => "792107900819", "name" => version ? "Rocky-#{version}-*" : "Rocky-*", } 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/rocky.rb, line 28 def username "rocky" end