📜  salamelecus (1)

📅  最后修改于: 2023-12-03 15:34:47.788000             🧑  作者: Mango

Salamelecus

Salamelecus is a command line interface (CLI) tool that helps you automate your deployments and server management tasks. It is written in Python and is open source with an active community of contributors.

Features

Salamelecus provides the following features:

  • Easy deployments: You can deploy your code to multiple servers at once, and easily rollback to previous versions if needed.

  • Server management: Manage your servers in a centralized way, and automate tasks like backups, updates, and security checks.

  • Plugins: Salamelecus is highly extensible, thanks to its plugin architecture. You can write your own plugins to add new functionality, or use existing ones from the community.

Getting started

To install Salamelecus, you can use pip:

pip install salamelecus

Once installed, you can start using Salamelecus by creating a configuration file in YAML format:

servers:
  - host: yourserver1.com
    user: youruser
  - host: yourserver2.com
    user: youruser

Then, you can run the following command to deploy your code to all servers:

salamelecus deploy myapp.tar.gz
Writing plugins

Plugins are the key to extend Salamelecus functionality. Writing a plugin is easy: just create a module with a salamelecus_plugin function that defines one or more commands.

For example, the following plugin adds a new command to clean up old files:

def salamelecus_plugin(cli):
    @cli.command("cleanup")
    def cleanup_command():
        cli.run_on_servers("rm -rf /old/files")

You can then use this command in Salamelecus:

salamelecus cleanup
Conclusion

Salamelecus is a powerful tool that can save you time and effort when managing your servers and deployments. With its easy-to-use CLI and extensible plugin system, you can automate your tasks and focus on your core business.