Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line executor #7

Open
evgenyb opened this issue Jul 11, 2014 · 0 comments
Open

Command line executor #7

evgenyb opened this issue Jul 11, 2014 · 0 comments
Labels

Comments

@evgenyb
Copy link
Collaborator

evgenyb commented Jul 11, 2014

As a developer
I should be able to execute Configuratron's tasks from command line tool
So it will allow me to script my configuration related tasks

@tnicolaysen:
I've had this idea that the command-line tooling should be dead-simple.
I'm inspired by the way UNIX tools are built. By that I mean piping and composition.
I imagine something like this:

> Diff-Environments -Source DEV -Target PROD -Server http://config-server/ | Update-Environment

In this example, the response from Diff-Environments would be in JSON format and contain the properties that have been added, changed and deleted. The Update-Environment command will then take that as an input and update the target environment. I think the params can be piped to the next commandlet.

Having this philosophy with small specialized commandlets, we enable a very flexible and simple platform. These can be aggregated and simplified over time.

Many of these tools will just invoke an action on the REST API. E.g.GET http://config-server/environments/diff?source=prod&target=prod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant