Class: Kitchen::Driver::Aws::StandardPlatform::Freebsd
- Inherits:
-
Kitchen::Driver::Aws::StandardPlatform
- Object
- Kitchen::Driver::Aws::StandardPlatform
- Kitchen::Driver::Aws::StandardPlatform::Freebsd
- Defined in:
- lib/kitchen/driver/aws/standard_platform/freebsd.rb
Overview
Constant Summary
Constants inherited from Kitchen::Driver::Aws::StandardPlatform
EBS_VOLUME_TYPES, SUPPORTED_ARCHITECTURES
Instance Attribute Summary
Attributes inherited from Kitchen::Driver::Aws::StandardPlatform
#architecture, #driver, #name, #version
Class Method Summary collapse
Instance Method Summary collapse
- #image_search ⇒ Object
- #sudo_command ⇒ Object
-
#username ⇒ String
default username for this platform’s ami.
Methods inherited from Kitchen::Driver::Aws::StandardPlatform
#find_image, from_platform_string, #initialize, parse_platform_string, platforms, #to_s
Constructor Details
This class inherits a constructor from Kitchen::Driver::Aws::StandardPlatform
Class Method Details
.from_image(driver, image) ⇒ Object
43 44 45 46 47 48 |
# 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 |
Instance Method Details
#image_search ⇒ Object
34 35 36 37 38 39 40 41 |
# 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 ⇒ Object
32 |
# File 'lib/kitchen/driver/aws/standard_platform/freebsd.rb', line 32 def sudo_command; end |
#username ⇒ String
default username for this platform’s ami
28 29 30 |
# File 'lib/kitchen/driver/aws/standard_platform/freebsd.rb', line 28 def username "ec2-user" end |