pub struct StartServicesStep { /* private fields */ }Expand description
Step that starts Docker Compose services on a remote host via Ansible
This step handles the execution of docker compose up -d on the remote
instance, bringing up all application containers defined in the compose file.
Implementations§
Source§impl StartServicesStep
impl StartServicesStep
Sourcepub fn new(ansible_client: Arc<AnsibleClient>) -> Self
pub fn new(ansible_client: Arc<AnsibleClient>) -> Self
Creates a new StartServicesStep
§Arguments
ansible_client- The Ansible client for executing playbooks
Sourcepub fn execute(&self) -> Result<(), StartServicesStepError>
pub fn execute(&self) -> Result<(), StartServicesStepError>
Execute the service startup step
This will run the “run-compose-services” Ansible playbook to start all Docker Compose services on the remote host.
§Errors
Returns an error if:
- The Ansible playbook execution fails
- Docker Compose services fail to start
- Container health checks fail
Auto Trait Implementations§
impl Freeze for StartServicesStep
impl RefUnwindSafe for StartServicesStep
impl Send for StartServicesStep
impl Sync for StartServicesStep
impl Unpin for StartServicesStep
impl UnsafeUnpin for StartServicesStep
impl UnwindSafe for StartServicesStep
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request