Skip to content

Instantly share code, notes, and snippets.

@nanliu
Created January 14, 2016 17:49
Show Gist options
  • Save nanliu/5eb83f87d53d967885f4 to your computer and use it in GitHub Desktop.
Save nanliu/5eb83f87d53d967885f4 to your computer and use it in GitHub Desktop.
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