class ImageBuilder::Builders::Null
Generic class doc comment
Attributes
host[RW]
port[RW]
ssh_password[RW]
ssh_private_key_file[RW]
ssh_username[RW]
type[R]
Public Class Methods
new()
click to toggle source
# File lib/image_builder/builders/null.rb, line 16 def initialize @type = 'null' @host = '127.0.0.1' @port = 22 @ssh_username = Etc.getlogin @ssh_private_key_file = ::File.join(::Dir.home, '.ssh', 'id_rsa') end
Public Instance Methods
packer_hash()
click to toggle source
# File lib/image_builder/builders/null.rb, line 24 def packer_hash hash = {} attr_to_hash(hash, :type, true) attr_to_hash(hash, :name, true) attr_to_hash(hash, :host, true) attr_to_hash(hash, :ssh_username, true) attr_to_hash(hash, :ssh_password) attr_to_hash(hash, :ssh_private_key_file) attr_to_hash(hash, :port) hash end