Sha256: 0cb3d74bfa1be0cc57d5580af52aa6a0dbc6288aa339c708441d7719936f5a7f
Contents?: true
Size: 557 Bytes
Versions: 30
Compression:
Stored size: 557 Bytes
Contents
def test connection = Fog::Compute.new({ :provider => "Google" }) rawdisk = { :source => nil, # 'http://some_valid_url_to_rootfs_tarball' :container_type => 'TAR', } # Can't test this unless the 'source' points to a valid URL return if rawdisk[:source].nil? img = connection.image.create(:name => 'test-image', :description => 'Test image (via fog)', :raw_disk => rawdisk) img.reload # will raise if image was not saved correctly end
Version data entries
30 entries across 30 versions & 4 rubygems