pub struct Compose { /* private fields */ }Expand description
The project’s dev environment in Docker.
Implementations§
Source§impl Compose
impl Compose
Sourcepub fn new(
root: &Path,
machine: &dyn Machine,
color: bool,
) -> Result<Compose, Failure>
pub fn new( root: &Path, machine: &dyn Machine, color: bool, ) -> Result<Compose, Failure>
Checks that Docker answers, and reads what compose needs from the project at root.
Sourcepub fn running(&self, machine: &dyn Machine) -> Result<bool, Failure>
pub fn running(&self, machine: &dyn Machine) -> Result<bool, Failure>
Whether the app’s container runs.
Sourcepub fn up(&self, machine: &dyn Machine, detach: bool) -> Result<(), Failure>
pub fn up(&self, machine: &dyn Machine, detach: bool) -> Result<(), Failure>
Builds the image and starts the container: in the foreground, its logs relayed until Ctrl-C stops it, or in the background.
Sourcepub fn check(&self, running: bool, ci: bool) -> Result<Checked, Failure>
pub fn check(&self, running: bool, ci: bool) -> Result<Checked, Failure>
Runs balise check in the dev container, the running one or a temporary one, and
reads what it found.
Auto Trait Implementations§
impl Freeze for Compose
impl RefUnwindSafe for Compose
impl Send for Compose
impl Sync for Compose
impl Unpin for Compose
impl UnsafeUnpin for Compose
impl UnwindSafe for Compose
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