| 2486 | |
| 2487 | |
| 2488 | inline mesos::Environment createEnvironment( |
| 2489 | const hashmap<std::string, std::string>& map) |
| 2490 | { |
| 2491 | mesos::Environment environment; |
| 2492 | foreachpair (const std::string& key, const std::string& value, map) { |
| 2493 | mesos::Environment::Variable* variable = environment.add_variables(); |
| 2494 | variable->set_name(key); |
| 2495 | variable->set_value(value); |
| 2496 | } |
| 2497 | return environment; |
| 2498 | } |
| 2499 | |
| 2500 | |
| 2501 | // Macros to get/create (default) ExecutorInfos and FrameworkInfos. |