20 #include "functionjob.h" 22 class ContainerAbstractInterface;
25 FunctionJob::FunctionJob(ExecutablePtr executable,
26 std::function<
int()> command): JobAbstract(executable)
31 FunctionJob::~FunctionJob()
35 bool FunctionJob::start()
37 return m_executable->execute(m_command,
45 void FunctionJob::setEnvironmentVariable(
46 const std::string &key,
const std::string &value)
51 std::string FunctionJob::toString()
const 53 return logging::StringBuilder() <<
"SoftwareContainer job. " 54 <<
" stdin:" << m_stdin[0]
55 <<
" stdout:" << m_stdout[1];
Developers guide to adding a config item: