Class: Ridley::SandboxObject
- Inherits:
-
ChefObject
- Object
- ChefObject
- Ridley::SandboxObject
- Defined in:
- lib/ridley/chef_objects/sandbox_object.rb
Instance Method Summary collapse
-
#checksum(chk_id) ⇒ Hash
Return information about the given checksum.
-
#commit ⇒ Object
Notify the Chef Server that uploading to this sandbox has completed.
-
#upload(checksums) ⇒ Object
Concurrently upload all of this sandboxes files into the checksum containers of the sandbox.
Methods inherited from ChefObject
#<=>, #==, chef_id, #chef_id, chef_json_class, chef_type, #eql?, #hash, #initialize, #inspect, #reload, #save, set_chef_id, set_chef_json_class, set_chef_type, #update
Constructor Details
This class inherits a constructor from Ridley::ChefObject
Instance Method Details
#checksum(chk_id) ⇒ Hash
Return information about the given checksum
31 32 33 |
# File 'lib/ridley/chef_objects/sandbox_object.rb', line 31 def checksum(chk_id) checksums[chk_id.to_sym] end |
#commit ⇒ Object
Notify the Chef Server that uploading to this sandbox has completed
52 53 54 55 |
# File 'lib/ridley/chef_objects/sandbox_object.rb', line 52 def commit response = resource.commit(self) set_attribute(:is_completed, response[:is_completed]) end |
#upload(checksums) ⇒ Object
Concurrently upload all of this sandboxes files into the checksum containers of the sandbox
45 46 47 |
# File 'lib/ridley/chef_objects/sandbox_object.rb', line 45 def upload(checksums) resource.upload(self, checksums) end |