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