Skip to content

akshinmustafayev/EasyJobInfraCode

Repository files navigation

EasyJobInfraCode License Total lines Downloads GitHub repo file count GitHub repo file count


📰 Description

EasyJobInfraCode - is a Lightweight automation tool, performs administrative tasks using yaml playbooks. Check wiki for the help and documentation. To download the latest version go to the release page.

👁️‍🗨️ Overview

💡 Requirements

.NET 6 runtime must be installed

📃 Examples

Name: Automation Workflow Example 1
Description: Copies files from one directory to another
Author: Akshin Mustafayev
Url: https://github.com/akshinmustafayev/EasyJobInfraCode
Version: 1.0
Copyrigth: Akshin Mustafayev
Steps:
  - ActionType: CopyFolder
    FolderSource: D:\somefolder1
    FolderDestination: D:\somefolder2
Name: Automation Workflow Example 2
Description: Reads service name from file and then starts it
Author: Akshin Mustafayev
Url: https://github.com/akshinmustafayev/EasyJobInfraCode
Version: 1.0
Copyrigth: Akshin Mustafayev
Variables: [ "$var1" ]
Steps:
  - ActionType: InvokePowerShellScript
    Script: |
        $fileContent = Get-Content D:\1.txt
        Write-Host $fileContent
    PowerShellArguments: -NoLogo
    OutBuffer: $var1

  - ActionType: Service
    Name: $var1
    Action: Start

📐 Usage

EJIC can accept the following arguments

  -f, --file       Required. Set file to process.

  -c, --cleanup    Required. Cleanup temp folder.

  -v, --verbose    Set output to verbose messages.

  --help           Display this help screen.

  --version        Display version information.

To execute yaml playbook open Command Promt and write

EasyJobInfraCode.exe -f "D:\path\to\yaml\playbook.yaml"

to see verbose output write

EasyJobInfraCode.exe -v -f "D:\path\to\yaml\playbook.yaml"

🔌 Compilation

  1. Download and install Visual Studio 2022
  2. Open project in Visual Studio and build it

🎯 Contributing

Contribution is very much appreciated. Hope that this tool might be useful for you!

About

🔧 EasyJobInfraCode - Lightweight automation tool

Resources

License

Stars

Watchers

Forks

Languages