Andy Bohne
2014-07-30 19:58:10 UTC
My overarching goal here is to download a volume from vcenter, and upload
that file to s3 for backup purposes.
I'm trying to use fog to accomplish this, but I'm not having much success.
Here is the code I'm trying:
compute = Fog::Compute.new(
:provider => 'vsphere',
:vsphere_password => pw,
)
data = compute.volumes.get(id: "6000C29d-3a56-954e-8456-157ba6a6d4a3")
Which results in:
NoMethodError: undefined method `get_volume' for
#<Fog::Compute::Vsphere::Real:0x007fb0a27ed600>
from
/Library/Ruby/Gems/2.0.0/gems/fog-1.23.0/lib/fog/vsphere/models/compute/volumes.rb:29:in
`get'
Can someone provide some direction? I'm not sure if I've run into an issue
with fog not supporting what I'm trying to do or if I'm doing it wrong.
Unfortunately, the vsphere documentation is a bit wanting.
that file to s3 for backup purposes.
I'm trying to use fog to accomplish this, but I'm not having much success.
Here is the code I'm trying:
compute = Fog::Compute.new(
:provider => 'vsphere',
:vsphere_password => pw,
)
data = compute.volumes.get(id: "6000C29d-3a56-954e-8456-157ba6a6d4a3")
Which results in:
NoMethodError: undefined method `get_volume' for
#<Fog::Compute::Vsphere::Real:0x007fb0a27ed600>
from
/Library/Ruby/Gems/2.0.0/gems/fog-1.23.0/lib/fog/vsphere/models/compute/volumes.rb:29:in
`get'
Can someone provide some direction? I'm not sure if I've run into an issue
with fog not supporting what I'm trying to do or if I'm doing it wrong.
Unfortunately, the vsphere documentation is a bit wanting.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.