Sha256: d40e55765f309c96b0a56528544e7080ded576f5b04df4835ef9de7aa2878611
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
class FakeImage def self.next_ami @n ||= 0 @n += 1 [sprintf("ami-%08x", @n), Time.now + @n] end def initialize(name: "foo") @id, @creation_date = FakeImage.next_ami @name = name @creation_date = @creation_date.strftime("%F %T") @architecture = :x86_64 @volume_type = "gp2" @root_device_type = "ebs" @virtualization_type = "hvm" @root_device_name = "root" @device_name = "root" end attr_reader :id attr_reader :name attr_reader :creation_date attr_reader :architecture attr_reader :volume_type attr_reader :root_device_type attr_reader :virtualization_type attr_reader :root_device_name attr_reader :device_name def block_device_mappings [self] end def ebs self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kitchen-ec2-2.2.2 | spec/support/fake_image.rb |