Class: VagrantCloud::Resource::Box
- Defined in:
- lib/vagrant-cloud/resources/box.rb
Class Method Summary collapse
Methods inherited from Base
attribute, attributes, #attributes, from_hash, has_attribute?, #initialize, #inspect, #set, #to_hash, #to_json, #to_s
Constructor Details
This class inherits a constructor from VagrantCloud::Resource::Base
Class Method Details
.destroy(name) ⇒ Object
15 16 17 |
# File 'lib/vagrant-cloud/resources/box.rb', line 15 def destroy(name) client.delete("/box/#{box(name)}") end |
.find(name) ⇒ Object
7 8 9 10 |
# File 'lib/vagrant-cloud/resources/box.rb', line 7 def find(name) response = client.get("/box/#{box(name)}") new(response) end |