Comments (2)
Hi @RaidRohana, you can pass flags to tar via the tar_flags
parameter like so:
tar_extract 'http://dev.mycoderepo.com/artifacts/mycode-1.2.3.tar.gz' do
target_dir '/opt/myapp/mycode'
creates '/opt/myapp/mycode/lib'
tar_flags [ '-P', '--strip-components 2' ]
end
from tar.
Works
Thanks
from tar.
Related Issues (20)
- Please update the community repo HOT 8
- Support packages that work with just "make && make install" HOT 2
- Feature: Add download_name parameter to tar_extract
- Improvement - Make execute["extract #{local_archive}"] idempotent by checking all content extracted and not single file HOT 2
- The prefix tar_extract attribute was removed but README still shows
- Add support for FreeBSD HOT 2
- Feature: Add checksum support HOT 2
- Supermarket link problem HOT 1
- tar_extract not working with tar 2.1.1 HOT 1
- extract with Chef v13.2.21+ fails due to missing environment opt (13.2.21+ `#execute` is backwards incompatible) HOT 1
- remote tar file always downloaded HOT 3
- Package resource is hardcoded to gzipped tar files HOT 8
- Missing inspec tests
- extract_local without creates does nothing HOT 3
- kitchen converge is stuck HOT 1
- Please release a new version HOT 1
- Allow directory name inside archive to be different HOT 1
- Target dir created by tar_extract is not created with owner and group of the resource HOT 1
- tar_extract can't use a GID, only a group name.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tar.