5 #ifndef CVMFS_PUBLISH_CMD_ENTER_H_
6 #define CVMFS_PUBLISH_CMD_ENTER_H_
16 class SettingsPublisher;
25 virtual std::string
GetName()
const {
return "enter"; }
27 return "Open an ephemeral namespace to publish content";
31 "[options] <fully qualified repository name> [-- <command> <params>]";
36 "HTTP endpoint of the authoritative storage"));
38 "Path to the cvmfs2 binary"));
40 "Path to extra configuration for the CernVM-FS client"));
43 "Do not remove the session directory when the shell exits"));
45 "Clean the session directory on shell exit except for the logs"));
47 "Open a transaction within the ephemeral shell"));
50 "Path to the configuration of the repository as in "
51 "/etc/cvmfs/repositories.d"));
56 virtual int Main(
const Options &options);
61 const std::string &dest_dir,
62 const std::vector<std::string> &empty_dirs,
63 std::vector<std::string> *new_paths);
70 const std::vector<std::string> &new_paths);
86 #endif // CVMFS_PUBLISH_CMD_ENTER_H_
std::string session_dir_
In $HOME/.cvmfs/fqrn, container spool area.
std::string stderr_path_
Logs stdout of background commands.
static Parameter Optional(const std::string &key, char short_key, const std::string &arg_name, const std::string &desc)
virtual std::string GetUsage() const
virtual ParameterList GetParams() const
SettingsSpoolArea settings_spool_area_
virtual int Main(const Options &options)
std::string cvmfs2_binary_
pid_t RunInteractiveShell()
static Parameter Switch(const std::string &key, char short_key, const std::string &desc)
void WriteCvmfsConfig(const std::string &extra_config)
std::string overlayfs_binary_
virtual std::string GetName() const
std::vector< Parameter > ParameterList
std::string rootfs_dir_
Destination to chroot() to in the namespace.
virtual std::string GetBrief() const
void CleanupSession(bool keep_logs, const std::vector< std::string > &new_paths)
std::string GetCvmfsXattr(const std::string &name)
std::string env_conf_
Stores the session directory environment.
virtual unsigned GetMinPlainArgs() const
std::string stdout_path_
Logs stdout of background commands.
void CreateUnderlay(const std::string &source_dir, const std::string &dest_dir, const std::vector< std::string > &empty_dirs, std::vector< std::string > *new_paths)