Crate devops_armory

Crate devops_armory 

Source
Expand description

DevOps Armory

Library created to improve DevOps work.

§Example

    #[actix_web::main]
    async fn test_function() -> Result<()> {
     
        let ssh_user = "user".to_string();
        let ssh_key_location = "path_to_your_private_ssh_key".to_string();
        let toml_file = "path_to_your_config.toml".to_string();
        let toml_data = toml_parser(toml_file);
        let f = toml_data.unwrap_or_default();
        let g = &f.rustible[0];
        let slack_vm_address_list = &g.vm[0].slackware.ip_address_list;
        let slack_vm_commands = &g.vm[0].slackware.commands;
        exec_command_on_remote(ssh_user, ssh_key_location, slack_vm_address_list.to_vec(), slack_vm_commands.to_vec()).await?;
        Ok(())
     
    }

Modules§

rustible
toml_parser

Functions§

test_vm_ubuntu