# File lib/fog/hp/core.rb, line 298 def self.etag Fog::Mock.random_hex(32) end
# File lib/fog/hp/core.rb, line 320 def self.instance_id Fog::Mock.random_numbers(6) end
# File lib/fog/hp/core.rb, line 324 def self.ip_address ip = [] 4.times do ip << Fog::Mock.random_numbers(rand(3) + 1).to_i.to_s # remove leading 0 end ip.join('.') end
# File lib/fog/hp/core.rb, line 302 def self.key_fingerprint fingerprint = [] 20.times do fingerprint << Fog::Mock.random_hex(2) end fingerprint.join(':') end
# File lib/fog/hp/core.rb, line 310 def self.key_material private_key = OpenSSL::PKey::RSA.generate(1024) public_key = private_key.public_key return private_key.to_s, public_key.to_s end
# File lib/fog/hp/core.rb, line 341 def self.mac_address mac_add = [] 6.times do mac_add << Fog::Mock.random_hex(2) end mac_add.join(':') end
Generated with the Darkfish Rdoc Generator 2.