pub enum Tool {
EbStack,
EbKeepLogs,
EbStagedRebuild,
}Expand description
A sibling tool that eb-pipeline starts as a subprocess.
Variants§
EbStack
eb-stack, for stack shard and stack admit.
EbKeepLogs
eb-keep-logs, for failed and rotate.
EbStagedRebuild
eb-staged-rebuild, for run on a line that rebuilds a live install.
Implementations§
Source§impl Tool
impl Tool
Sourcepub fn key(self) -> &'static str
pub fn key(self) -> &'static str
The tool’s key under [site.tools]: eb_stack, eb_keep_logs or
eb_staged_rebuild.
Sourcepub fn default_bin(self) -> &'static str
pub fn default_bin(self) -> &'static str
The program name looked up on PATH when the site file sets no bin.
Sourcepub fn spec(self, site: &Site) -> Option<&ToolSpec>
pub fn spec(self, site: &Site) -> Option<&ToolSpec>
The tool’s [site.tools.<tool>] table, when the site file has one.
Sourcepub fn bin(self, site: &Site) -> String
pub fn bin(self, site: &Site) -> String
The program to start: the site file’s bin, else
Tool::default_bin.
Sourcepub fn min_version(self, site: &Site) -> Option<String>
pub fn min_version(self, site: &Site) -> Option<String>
The site file’s min_version for the tool, as written.
Trait Implementations§
impl Copy for Tool
impl Eq for Tool
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more