Class: Mio::Model::S3
- Inherits:
-
Mio::Model
- Object
- Mio::Model
- Mio::Model::S3
- Defined in:
- lib/mio/model/s3.rb
Instance Attribute Summary
Attributes inherited from Mio::Model
Instance Method Summary collapse
Methods inherited from Mio::Model
#configure, #create, field, #go, #initialize, mappings, nested, #set_enable, set_resource, #set_start, #validate
Constructor Details
This class inherits a constructor from Mio::Model
Instance Method Details
#config_hash ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/mio/model/s3.rb', line 23 def config_hash { 'vfs-location' => { protocol: "S3", path: "/", key: @args['key'], secret: @args.secret, bucket: @args.bucket } } end |
#create_hash ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/mio/model/s3.rb', line 15 def create_hash plugin = 'tv.nativ.mio.enterprise.resources.impl.capacity.storage.vfs.VFSStorageResource' {name: @args.name, pluginClass: plugin, visibilityIds: @args.visibility} end |