Skip to content

Instantly share code, notes, and snippets.

@reset
Created September 10, 2014 18:05
Show Gist options
  • Save reset/53d19f245f13935fb6bf to your computer and use it in GitHub Desktop.
Save reset/53d19f245f13935fb6bf to your computer and use it in GitHub Desktop.
asset = github_asset "my-archive.tar.gz" do
repo "reset/mysoftware"
release "1.0.0"
github_user "reset"
github_token "my_token"
end
libarchive_file "my-archive.tar.gz" do
path asset.asset_path
extract_to "/some/path"
owner "user"
group "group"
action :extract
only_if { ::File.exist?(asset.asset_path) }
end
@sbotman
Copy link

sbotman commented Sep 10, 2014

Awesome, tnx for sharing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment