mirror of
https://github.com/swisscom/dopc-client.git
synced 2026-12-04 11:49:04 +00:00
Deployment Orchestrator for Puppet - Controller Client | Read-only mirror of https://github.com/swisscom/dopc-client — Swisscom. Issues & pull requests at the source.
- Ruby 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bin | ||
| lib | ||
| spec | ||
| .gitignore | ||
| .ruby-version | ||
| ChangeLog.md | ||
| dopc-client.gemspec | ||
| dopc-client.rdoc | ||
| Gemfile | ||
| Gemfile.lock | ||
| LICENSE.txt | ||
| Rakefile | ||
| README.md | ||
| README.rdoc | ||
Note
DEPRECATED - no longer maintained!
DOPc Client
DOPc client is a CLI for the DOPc REST service.
See rdoc for usage documentation.
Quickstart
- Run
bundle exec dopc-client --helpto see the usage - Create config file with
bundle exec dopc-client initconfig - Set URL and authentication token in your configuration
- Run
bundle exec dopc-client pingto verify calling the DOPc service
Configuration
The configuration must be created initially with the initconfig command. This
will create a configuration in /etc/dop/dopc-client.conf for the root user,
or in ~/.dop/dopc-client.conf for anybody else. The options used when calling
initconfig will be written to the configuration file, otherwise defaults are
written. An existing configuration file can be edited by hand or overwritten
with initconfig using the --force option.
Contributing
- Don't forget to generate rdoc file with
bundle exec dopc-client _docafter changing code. - Tests use rspec-command to invoke the bin script. Therefor a DOPc service must be running on the default address and port. Also, if tests fail it must be reset manually so tests have a clean setup to run again (see todos).
Releasing
TODO
Implementation
- The CLI uses GLI, refer to GLI documentation for further details
- Calls to the REST service are done with rest-client, requests and responses use JSON only for the body.
Todo
- Testing: Setting up a DOPc service for testing?
- Output could use better formatting: align columns with tabs?
Caveats
- If using debug option, then the authentication token is shown plaintext in the output.
Troubleshooting
- To debug use the
-dflag.
Authors
- Anselm Strauss Anselm.Strauss@swisscom.com