Created
February 5, 2014 20:27
-
-
Save ringods/8832354 to your computer and use it in GitHub Desktop.
NameError with s3_file as a full fledged resource/provider loaded from the cookbook's libraries folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Chef | |
| class Resource | |
| class S3 | |
| class File < Chef::Resource | |
| def initialize(name, run_context=nil) | |
| super | |
| @resource_name = :s3_file | |
| @provider = Chef::Provider::S3::File | |
| @action = :create | |
| end | |
| end | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s3_file '/tmp/myfile.tar.gz' do | |
| remote_path '/api/myfile.tar.gz' | |
| bucket 'mybucket' | |
| aws_access_key_id 'ACCESS_KEY' | |
| aws_secret_access_key 'SECRET_KEY' | |
| mode '0644' | |
| action :create | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment