Created
January 14, 2016 17:49
-
-
Save nanliu/5eb83f87d53d967885f4 to your computer and use it in GitHub Desktop.
This file contains 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
Puppet::Type.type(:archive).provide(:aws, :parent => :ruby) do | |
commands :aws => 'aws' | |
def download(filepath) | |
@aws_params = [ | |
'cp', | |
resource[:source], | |
filepath, | |
] | |
aws(@aws_params) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment