class Kitchen::Driver::Aws::StandardPlatform::Freebsd
Public Class Methods
from_image(driver, image)
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/freebsd.rb, line 43 def self.from_image(driver, image) return unless /freebsd/i.match?(image.name) image.name =~ /\b(\d+(\.\d+)?)\b/i new(driver, "freebsd", (Regexp.last_match || [])[1], image.architecture) end
Public Instance Methods
image_search()
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/freebsd.rb, line 34 def image_search search = { "owner-id" => "118940168514", "name" => ["FreeBSD #{version}*-RELEASE*", "FreeBSD/EC2 #{version}*-RELEASE*"], } search["architecture"] = architecture if architecture search end
sudo_command()
click to toggle source
# File lib/kitchen/driver/aws/standard_platform/freebsd.rb, line 32 def sudo_command; end
username()
click to toggle source
default username for this platform’s ami @return [String]
# File lib/kitchen/driver/aws/standard_platform/freebsd.rb, line 28 def username "ec2-user" end