Class: AwsCli::CLI::Sss::Files
- Inherits:
-
Thor
- Object
- Thor
- AwsCli::CLI::Sss::Files
- Defined in:
- lib/awscli/cli/s3/files.rb
Instance Method Summary collapse
- #copy ⇒ Object
- #delete ⇒ Object
- #get ⇒ Object
- #list ⇒ Object
- #public_url ⇒ Object
- #put ⇒ Object
- #put_big ⇒ Object
- #put_rec ⇒ Object
Instance Method Details
#copy ⇒ Object
69 70 71 72 |
# File 'lib/awscli/cli/s3/files.rb', line 69 def copy create_s3_object @s3.copy_file [:source_bucket], [:source_file], [:dest_bucket], [:dest_file] end |
#delete ⇒ Object
59 60 61 62 |
# File 'lib/awscli/cli/s3/files.rb', line 59 def delete create_s3_object @s3.delete_file [:bucket_name], [:file_name] end |
#get ⇒ Object
51 52 53 54 |
# File 'lib/awscli/cli/s3/files.rb', line 51 def get create_s3_object @s3.download_file [:bucket_name], [:file_name], [:local_path] end |
#list ⇒ Object
9 10 11 12 |
# File 'lib/awscli/cli/s3/files.rb', line 9 def list create_s3_object @s3.list [:bucket_name] end |
#public_url ⇒ Object
77 78 79 80 |
# File 'lib/awscli/cli/s3/files.rb', line 77 def public_url create_s3_object @s3.get_public_url [:bucket_name], [:file_name] end |
#put ⇒ Object
17 18 19 20 |
# File 'lib/awscli/cli/s3/files.rb', line 17 def put create_s3_object @s3.upload_file [:bucket_name], [:file_path] end |
#put_big ⇒ Object
42 43 44 45 |
# File 'lib/awscli/cli/s3/files.rb', line 42 def put_big create_s3_object @s3.multipart_upload end |
#put_rec ⇒ Object
28 29 30 31 |
# File 'lib/awscli/cli/s3/files.rb', line 28 def put_rec create_s3_object @s3.upload_file_rec end |