New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create resource for tar archiving #677
base: master
Are you sure you want to change the base?
Conversation
examples/lang/tar.mcl
Outdated
file "/tmp/mgmt/file2.txt" { | ||
content => "hello world", | ||
state => $const.res.file.state.exists, | ||
Before => Tar["${filepath}"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementing AutoEdges for the tar
resource would make this not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do.
6495b0f
to
f1deabd
Compare
f1deabd
to
e1d185d
Compare
|
Features: 1. tar archive creation for a given list of input files 2. tar archive compression
e1d185d
to
41dde41
Compare
if obj.Compress && !strings.HasSuffix(strings.ToLower(obj.Name()), ".gz") { | ||
return fmt.Errorf("expected a suffix of .gz, .Gz, or .gZ for compressed archive") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could probably remove this. Ideally the user should name the tar file whatever they want.
2319f4f
to
04f5ba6
Compare
fe2313c
to
271a94e
Compare
This is a work-in-progress
Notes
tar
resource so that files and directories can be archived