class Kitchen::Driver::Aws::StandardPlatform::Ubuntu

help.ubuntu.com/community/EC2StartersGuide#Official_Ubuntu_Cloud_Guest_Amazon_Machine_Images_.28AMIs.29

Public Class Methods

from_image(driver, image) click to toggle 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

username() click to toggle source

default username for this platform’s ami @return [String]

# File lib/kitchen/driver/aws/standard_platform/ubuntu.rb, line 28
def username
  "ubuntu"
end