]> git.tdb.fi Git - builder.git/blob - source/externaltask.h
Give tasks the ability to return the relevant shell command
[builder.git] / source / externaltask.h
1 #ifndef EXTERNALTASK_H_
2 #define EXTERNALTASK_H_
3
4 #include <string>
5 #include <vector>
6 #include <msp/fs/path.h>
7 #include "task.h"
8
9 class ExternalTask: public Task
10 {
11 private:
12         std::vector<std::string> argv;
13         Msp::FS::Path work_dir;
14         int pid;
15         int exit_code;
16
17 public:
18         ExternalTask(const std::vector<std::string> &, const Msp::FS::Path &);
19
20         virtual std::string get_command() const;
21         virtual void start();
22         virtual Status check();
23 };
24
25 #endif