1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! The port through which Plan learns about the machine actions run on.
//!
//! Its own file because the platform, the environment and the machine's own folders are ambient
//! facts, and this crate reads none of them: an action's key depends on the first two, and the
//! third tells what a key must not hold, so all arrive through one port that names where they
//! come from.
//!
//! Responsibilities: [`Host`].
//!
//! Non-responsibilities: implementing it, and deciding which variables may be read. The first
//! belongs to an adapter crate; the second is decided before this port is asked anything.
//!
//! This file holds only a trait definition, so it carries no logic to unit-test.
use crateResult;
use crate;
/// Reports the platform actions run on, the value of an environment variable, and the folders
/// of this machine.