22 #define ERR_OUT(e) std::cerr << e;
27 char const * argv[256] = { 0 };
31 argv[argc++] =
"<program>";
32 argv[argc++] =
"--archive";
53 assert(
config.
jobs()[0].rsync_behavior.map_value().size() == 0);
55 assert(
config.
jobs()[0].paths[0] ==
"/var/spool");
56 assert(
config.
jobs()[1].rsync_behavior.map_value().size() == 0);
61 int main(
int argc,
char const * argv[])
void init(int argc, char const *argv[])
Initialize the configuration manager from rvm's command line options.
Basic types definitions and templates.
const value_type default_value(void) const
Return the default action.
void default_file(const std::string &a_path)
Set the default configuration filename.
class rsync_behavior rsync_behavior
const map_type & map_value(void) const
Return an std::map of exit codes to actions.
void default_logdir(const std::string &a_path)
Return the default log-dir.
configuration_manager config
The global configuration manager instance.
int main(int argc, char const *argv[])
const job & default_job(void) const
Return the default job configuration.
const jobs_type & jobs(void) const
Return a list of jobs.