MCPcopy Create free account
hub / github.com/apache/mesos / untar

Function untar

src/common/command_utils.cpp:150–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149
150Future<Nothing> untar(
151 const Path& input,
152 const Option<Path>& directory)
153{
154 vector<string> argv = {
155 "tar",
156 "-x", // Extract/unarchive.
157 "-f", // Input file to extract/unarchive.
158 input
159 };
160
161 // Add additional flags.
162 if (directory.isSome()) {
163 argv.emplace_back("-C");
164 argv.emplace_back(directory.get());
165 }
166
167 return launch("tar", argv)
168 .then([]() { return Nothing(); });
169}
170
171
172Future<string> sha512(const Path& input)

Callers 6

fetchMethod · 0.85
___pullMethod · 0.85
____pullMethod · 0.85
pullMethod · 0.85
extractLayerMethod · 0.85

Calls 5

NothingClass · 0.85
launchFunction · 0.70
isSomeMethod · 0.45
getMethod · 0.45
thenMethod · 0.45

Tested by 1