Skip to content

Commit 9a7d40e

Browse files
Copilotjosecelano
andcommitted
style: [#106] apply cargo fmt formatting
Co-authored-by: josecelano <[email protected]>
1 parent e71f865 commit 9a7d40e

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/adapters/ansible/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ impl AnsibleClient {
7575
/// // Run with extra variables
7676
/// client.run_playbook("configure-firewall", &["-e", "@variables.yml"]).unwrap();
7777
/// ```
78-
pub fn run_playbook(&self, playbook: &str, extra_args: &[&str]) -> Result<String, CommandError> {
78+
pub fn run_playbook(
79+
&self,
80+
playbook: &str,
81+
extra_args: &[&str],
82+
) -> Result<String, CommandError> {
7983
info!(
8084
"Running Ansible playbook '{}' in directory: {}",
8185
playbook,
@@ -91,11 +95,7 @@ impl AnsibleClient {
9195
// Use -v flag for verbose output showing task progress
9296
// This helps track progress during long-running operations like Docker installation
9397
self.command_executor
94-
.run_command(
95-
"ansible-playbook",
96-
&args,
97-
Some(&self.working_dir),
98-
)
98+
.run_command("ansible-playbook", &args, Some(&self.working_dir))
9999
.map(|result| result.stdout)
100100
}
101101

src/application/steps/software/docker_compose.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ impl InstallDockerComposeStep {
6565
"Installing Docker Compose via Ansible"
6666
);
6767

68-
self.ansible_client.run_playbook("install-docker-compose", &[])?;
68+
self.ansible_client
69+
.run_playbook("install-docker-compose", &[])?;
6970

7071
info!(
7172
step = "install_docker_compose",

src/application/steps/system/configure_firewall.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ impl ConfigureFirewallStep {
101101
// Run Ansible playbook with variables file
102102
// Note: The @ symbol in Ansible means "load variables from this file"
103103
// Equivalent to: ansible-playbook -e @variables.yml configure-firewall.yml
104-
match self.ansible_client.run_playbook("configure-firewall", &["-e", "@variables.yml"]) {
104+
match self
105+
.ansible_client
106+
.run_playbook("configure-firewall", &["-e", "@variables.yml"])
107+
{
105108
Ok(_) => {
106109
info!(
107110
step = "configure_firewall",

0 commit comments

Comments
 (0)