pax_global_header 0000666 0000000 0000000 00000000064 15224541352 0014515 g ustar 00root root 0000000 0000000 52 comment=dfbc02dcf3a0edefa173408fa5e7dbc3f7b78d1e
OpenVoxProject-trapperkeeper-49527b2/ 0000775 0000000 0000000 00000000000 15224541352 0017571 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/.clj-kondo/ 0000775 0000000 0000000 00000000000 15224541352 0021527 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/.clj-kondo/config.edn 0000664 0000000 0000000 00000004055 15224541352 0023470 0 ustar 00root root 0000000 0000000 {:linters {:unresolved-symbol {:level :warning :exclude [(puppetlabs.trapperkeeper.services/service)
(puppetlabs.trapperkeeper.core/defservice)
(puppetlabs.trapperkeeper.core/service)
(puppetlabs.trapperkeeper.services/defservice)
(clojure.test/is [thrown+? thrown+-with-msg? logged?])
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-cli-data)
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-config)
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-empty-config)
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-cli-args)
(puppetlabs.trapperkeeper.testutils.logging/with-started)
(puppetlabs.trapperkeeper.testutils.logging/with-logger-event-maps)
(puppetlabs.trapperkeeper.testutils.logging/with-logged-event-maps)]}
:invalid-arity {:skip-args [puppetlabs.trapperkeeper.services/service
puppetlabs.trapperkeeper.services/defservice
puppetlabs.trapperkeeper.core/defservice
puppetlabs.trapperkeeper.core/service]}
:refer-all {:level :off}
:inline-def {:level :off}
:deprecated-var {:level :off}}
:lint-as {puppetlabs.trapperkeeper.core/defservice clojure.core/def
puppetlabs.trapperkeeper.services/defservice clojure.core/def
slingshot.slingshot/try+ clojure.core/try
puppetlabs.kitchensink.core/while-let clojure.core/let}} OpenVoxProject-trapperkeeper-49527b2/.github/ 0000775 0000000 0000000 00000000000 15224541352 0021131 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/.github/dependabot.yml 0000664 0000000 0000000 00000000575 15224541352 0023770 0 ustar 00root root 0000000 0000000 version: 2
updates:
# raise PRs for gem updates
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
OpenVoxProject-trapperkeeper-49527b2/.github/release.yml 0000664 0000000 0000000 00000001323 15224541352 0023273 0 ustar 00root root 0000000 0000000 ---
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
changelog:
exclude:
labels:
- duplicate
- invalid
- modulesync
- question
- skip-changelog
- wont-fix
- wontfix
categories:
- title: Breaking Changes 🛠
labels:
- backwards-incompatible
- title: New Features 🎉
labels:
- enhancement
- title: Bug Fixes 🐛
labels:
- bug
- title: Documentation Updates 📚
labels:
- documentation
- docs
- title: Dependency Updates ⬆️
labels:
- dependencies
- title: Other Changes
labels:
- "*"
OpenVoxProject-trapperkeeper-49527b2/.github/workflows/ 0000775 0000000 0000000 00000000000 15224541352 0023166 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/.github/workflows/backport.yml 0000664 0000000 0000000 00000004005 15224541352 0025515 0 ustar 00root root 0000000 0000000 ---
name: Backport merged pull request
on:
pull_request_target:
types: [labeled]
permissions: {}
env:
GIT_AUTHOR_NAME: OpenVoxProjectBot
GIT_AUTHOR_EMAIL: 215568489+OpenVoxProjectBot@users.noreply.github.com
GIT_COMMITTER_NAME: OpenVoxProjectBot
GIT_COMMITTER_EMAIL: 215568489+OpenVoxProjectBot@users.noreply.github.com
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
jobs:
backport:
name: Backport merged pull request
runs-on: ubuntu-latest
# For security reasons, we don't want to checkout and run arbitrary code when
# using the pull_request_target trigger. So restrict this to cases where the
# backport label is applied to an already merged PR.
if: github.event.pull_request.merged && contains(github.event.label.name, 'backport')
steps:
- name: Add SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.OPENVOXBOT_SSH_PRIVATE_KEY }}" > ~/.ssh/github_actions
chmod 600 ~/.ssh/github_actions
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add ~/.ssh/github_actions
- name: Setup git
run: |
git config --global user.email "$GIT_AUTHOR_EMAIL"
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/github_actions
git config --global commit.gpgsign true
git config --global tag.gpgsign true
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
token: ${{ secrets.OPENVOXBOT_COMMIT_AND_PRS }}
ref: main
- name: Create backport pull requests
uses: korthout/backport-action@2e830a1d0b8269505846ddd407a70876913ad1f8 # v4.6.0
with:
auto_merge_enabled: true
auto_merge_method: merge
github_token: ${{ secrets.OPENVOXBOT_COMMIT_AND_PRS }}
git_committer_name: OpenVoxProjectBot
git_committer_email: 215568489+OpenVoxProjectBot@users.noreply.github.com
OpenVoxProject-trapperkeeper-49527b2/.github/workflows/release.yaml 0000664 0000000 0000000 00000000741 15224541352 0025474 0 ustar 00root root 0000000 0000000 ---
name: Release and publish package to clojars.org
permissions:
contents: write
packages: write
on:
workflow_dispatch:
jobs:
release:
uses: 'openvoxproject/shared-actions/.github/workflows/clojure_release.yml@main'
secrets:
github_pat: ${{ secrets.OPENVOXBOT_COMMIT_AND_PRS }}
ssh_private_key: ${{ secrets.OPENVOXBOT_SSH_PRIVATE_KEY }}
clojars_username: ${{ secrets.CLOJARS_USERNAME }}
clojars_password: ${{ secrets.CLOJARS_PASSWORD }}
OpenVoxProject-trapperkeeper-49527b2/.github/workflows/tests.yml 0000664 0000000 0000000 00000005122 15224541352 0025053 0 ustar 00root root 0000000 0000000 ---
name: PR Testing
on:
pull_request: {}
push:
branches:
- main
# minimal permissions
permissions:
contents: read
jobs:
clojure-linting:
name: Clojure Linting
runs-on: ubuntu-24.04
steps:
- name: setup java
uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
with:
distribution: temurin
java-version: 21
- name: checkout repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install Clojure tools
uses: DeLaGuardo/setup-clojure@4c7a6f613e5089821bb3bb2a33a3ee115578580d # 13.6.1
with:
lein: latest
clj-kondo: latest
- name: kondo lint
run: clj-kondo --lint src test
- name: eastwood lint
run: lein eastwood
- name: output dependencies
run: lein deps :tree
run-lein-tests:
name: PR Testing
strategy:
fail-fast: false
matrix:
version: ['17', '21', '25']
runs-on: ubuntu-24.04
steps:
- name: checkout repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
submodules: recursive
- name: setup java
uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
with:
distribution: 'temurin'
java-version: ${{ matrix.version }}
- name: Install Clojure tools
uses: DeLaGuardo/setup-clojure@4c7a6f613e5089821bb3bb2a33a3ee115578580d # 13.6.1
with:
lein: latest
- name: clojure tests
run: lein test
- name: run acceptance tests
run: lein uberjar && ext/test/run-all
tests:
if: always()
needs:
- clojure-linting
- run-lein-tests
runs-on: ubuntu-24.04
name: Test suite
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
automerge:
name: Enable auto-merge
if: github.event_name == 'pull_request' && (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]')
needs:
- tests
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
steps:
- name: Enable auto-merge for PR
env:
GH_TOKEN: ${{ github.token }}
PR_URL: ${{ github.event.pull_request.html_url }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: gh pr merge --auto --merge --match-head-commit "$PR_HEAD_SHA" "$PR_URL"
OpenVoxProject-trapperkeeper-49527b2/.gitignore 0000664 0000000 0000000 00000000375 15224541352 0021566 0 ustar 00root root 0000000 0000000
# Emacs
*#
*~
.#*
.lein-failures
.lein-repl-history
target/
checkouts/
pom.xml
.nrepl-port
/resources/locales.clj
/resources/puppetlabs/trapperkeeper/*.class
/dev-resources/i18n/bin
/.bundle
/.vendor
/vendor
/Gemfile.lock
.eastwood
.clj-kondo/.cache
OpenVoxProject-trapperkeeper-49527b2/CHANGELOG.md 0000664 0000000 0000000 00000042310 15224541352 0021402 0 ustar 00root root 0000000 0000000 # Changelog
All notable changes to this project will be documented in this file.
## [4.3.0](https://github.com/OpenVoxProject/trapperkeeper/tree/4.3.0) (2026-01-03)
[Full Changelog](https://github.com/OpenVoxProject/trapperkeeper/compare/4.2.0...4.3.0)
**Implemented enhancements:**
- Add initial systemd lifecycle notification support [\#23](https://github.com/OpenVoxProject/trapperkeeper/pull/23) ([bastelfreak](https://github.com/bastelfreak))
## [4.2.0](https://github.com/OpenVoxProject/trapperkeeper/tree/4.2.0) (2026-01-03)
[Full Changelog](https://github.com/OpenVoxProject/trapperkeeper/compare/4.1.2...4.2.0)
**Merged pull requests:**
- Remove Janino support, update clj-parent, kitchensink, i18n [\#32](https://github.com/OpenVoxProject/trapperkeeper/pull/32) ([nmburgan](https://github.com/nmburgan))
## [4.1.2](https://github.com/OpenVoxProject/trapperkeeper/tree/4.1.2) (2025-12-31)
[Full Changelog](https://github.com/OpenVoxProject/trapperkeeper/compare/4.1.1...4.1.2)
**Merged pull requests:**
- Bump clj-parent, kitchensink, and i18n versions [\#28](https://github.com/OpenVoxProject/trapperkeeper/pull/28) ([nmburgan](https://github.com/nmburgan))
## [4.1.1](https://github.com/OpenVoxProject/trapperkeeper/tree/4.1.1) (2025-12-31)
[Full Changelog](https://github.com/OpenVoxProject/trapperkeeper/compare/4.1.0...4.1.1)
**Merged pull requests:**
- CI and version: Changes for OpenVox namespacing [\#27](https://github.com/OpenVoxProject/trapperkeeper/pull/27) ([nmburgan](https://github.com/nmburgan))
## [4.1.0](https://github.com/OpenVoxProject/trapperkeeper/tree/4.1.0) (2025-08-06)
[Full Changelog](https://github.com/OpenVoxProject/trapperkeeper/compare/4.0.2...4.1.0)
**Implemented enhancements:**
- Drop Java 8 testing [\#18](https://github.com/OpenVoxProject/trapperkeeper/pull/18) ([bastelfreak](https://github.com/bastelfreak))
- clj-parent: Switch from puppetlabs to our fork [\#17](https://github.com/OpenVoxProject/trapperkeeper/pull/17) ([bastelfreak](https://github.com/bastelfreak))
- Enable renovate for clojure dependencies [\#7](https://github.com/OpenVoxProject/trapperkeeper/pull/7) ([bastelfreak](https://github.com/bastelfreak))
- Add Java 21 to CI [\#5](https://github.com/OpenVoxProject/trapperkeeper/pull/5) ([bastelfreak](https://github.com/bastelfreak))
**Merged pull requests:**
- clj-parent: Switch from puppetlabs to our fork [\#12](https://github.com/OpenVoxProject/trapperkeeper/pull/12) ([renovate[bot]](https://github.com/apps/renovate))
- Delete Perforce leftovers & CI: Run the acceptance tests [\#6](https://github.com/OpenVoxProject/trapperkeeper/pull/6) ([bastelfreak](https://github.com/bastelfreak))
- CI: unify checks in one workflow; add dummy job we can depend on [\#4](https://github.com/OpenVoxProject/trapperkeeper/pull/4) ([bastelfreak](https://github.com/bastelfreak))
- CI: Run unit tests on each PR & merge [\#3](https://github.com/OpenVoxProject/trapperkeeper/pull/3) ([bastelfreak](https://github.com/bastelfreak))
- dependabot: check for github actions & Delete legacy codeowners file [\#1](https://github.com/OpenVoxProject/trapperkeeper/pull/1) ([bastelfreak](https://github.com/bastelfreak))
## 4.0.2
* update `logged?` to not emit an incorrect message when there are no matches, and clean up the output from multiple unexpected matches.
## 4.0.1
* adds a new arity to `logged?` that removes the restriction that only one log line must match the pattern, adds printing to the function and repo documentation to make users aware of this single line match restriction
## 4.0.0
This is a major release with breaking changes.
* remove support for yaml configuration files
* add clj-kondo linting and fix issues found
* add eastwood linting and fix issues found
## 3.3.1
This is a maintenance release
* Unpin logback and logback dependencies versions, bump clj-parent to defer to its versioning
## 3.3.0
This is a potentially breaking dependency version update release
* Upgrades logback version to 1.3.5 from 1.2.9, which is now in maintenance mode
* Adds slf4j-api dependency and pins other relevant dependencies to 2.0.6
## 3.2.1
This is a maintenance release
* Avoid crashing when trying to load bootstrap.cfg in some cases. See
also [PDB-5215](https://tickets.puppetlabs.com/browse/PDB-5215) and
[CLJ-2431](https://clojure.atlassian.net/browse/CLJ-2431)).
## 3.2.0
This is a minor feature release
* Backward compatible changes to the signature of `puppetlabs.trapperkeeper.internal/shutdown!` function. Returns collection of exceptions caught during execution of shutdown sequence instead of nil.
* Extend `stop` method of `puppetlabs.trapperkeeper.app/TrapperkeeperApp` protocol with an argument `throw?` to handle cases where exceptions in shutdown sequence should be rethrown.
* Change default behavior of `puppetlabs.trapperkeeper.testutils.bootstrap` helper macroses to throw exception when shutdown finished abruptly.
## 3.1.1
This is a maintenance release
* Updates to current clj-parent
## 3.1.0
This is a minor feature release
* [PDB-4636](https://github.com/puppetlabs/trapperkeeper/pull/287) - support custom exit status/messages
## 3.0.0
This is a maintenance release
* Updates to current clj-parent to clean up project.clj and update dependencies
* Tests changes for readability and compatibility with Java11
## 2.0.1
This is a maintenance release
* Ensures that all errors are correctly thrown, notably errors about bad config schemas.
## 2.0.0
This is a maintenance release
* [ORCH-2282](https://tickets.puppetlabs.com/browse/ORCH-2282) - Updates to current clj-parent
to support using nrepl/nrepl
* Updates required for using nrepl/nrepl; mainline development for nrepl moved from
org.clojure/tools.nrepl as of the 0.3.x series (last on this line was 0.2.13)
* Updating to this version of trapperkeeper requires lein >=2.9.0 (:min-lein-version updated)
* Drops support for JDK7
## 1.5.6
This is a maintenance release
* [TK-466](https://tickets.puppetlabs.com/browse/TK-466) - Log SIGHUP events at INFO level
## 1.5.5
This is a maintenance release
* Fix log message accidentally converted to a warning
## 1.5.4
This is a maintenance release.
* Fix adding to classpath under Java 9
## 1.5.3
This is a maintenance release.
* [TK-411](https://tickets.puppetlabs.com/browse/TK-411) - Externalize strings for i18n
* [TK-439](https://tickets.puppetlabs.com/browse/TK-439) - Handle exceptions having no
type key in main
* Fix symbol redef warnings under Clojure 1.9
* Improved lifecycle debug logging
## 1.5.2
This is a maintenance release.
* [SERVER-1494](https://tickets.puppetlabs.com/browse/SERVER-1494) - use `lein-parent`
plugin to inherit dependency versions from parent project.
## 1.5.1
This is a minor feature release
* [TK-405](https://tickets.puppetlabs.com/browse/TK-405) - Add support for
specifying the restart file option via a command line argument
## 1.5.0
This is a feature/bugfix/maintenance release
* [TK-345](https://tickets.puppetlabs.com/browse/TK-345) - Add support for optional
restart file which, if specified, will contain an integer that increments when
a TK app has successfully started all of its services
* [TK-382](https://tickets.puppetlabs.com/browse/TK-382) - Fix bug where optional
dependencies could not be specified for a service without a protocol
* [TK-397](https://tickets.puppetlabs.com/browse/TK-397) - Update to logback 1.1.7
## 1.4.1
This is a bugfix release. It fixes a single issue
* [TK-375](https://tickets.puppetlabs.com/browse/TK-375) - Regression in 1.4.0
when loading bootstrap.cfg from resources/classpath
## 1.4.0
This is feature/bugfix release. It is a re-release of 1.3.2
* [TK-347](https://tickets.puppetlabs.com/browse/TK-347) - Support directories
and paths in TK's "bootstrap-config" CLI argument
* [TK-211](https://tickets.puppetlabs.com/browse/TK-211) - Trapperkeeper
doesn't error if two services implementing the same protocol are started
* [TK-349](https://tickets.puppetlabs.com/browse/TK-349) - TK should not
fail during startup if an unrecognized service is found in bootstrap config
* [TK-351](https://tickets.puppetlabs.com/browse/TK-351) - Ensure all bootstrap
related errors log what file they come from
## 1.3.2
This version was released by mistake, it was intended to be 1.4.0
## 1.3.1
This is a bugfix / maintenance / minor feature release
* [TK-319](https://tickets.puppetlabs.com/browse/TK-319) - fix a bug where
optional dependencies could not be used without a service protocol
* [TK-325](https://tickets.puppetlabs.com/browse/TK-325) - move documentation
into repo, instead of storing it on the github wiki
* [HC-51](https://tickets.puppetlabs.com/browse/HC-51) - update to newer
version of clj typesafe / hocon wrapper, fixing bug that prevented
variable interpolation from working properly in hocon config files
* New `bootstrap-services-with-config` testutils macro
* [TK-342](https://tickets.puppetlabs.com/browse/TK-342) - new logging
testutils macros, e.g. `with-logged-event-maps`.
* [TK-326](https://tickets.puppetlabs.com/browse/TK-326),
[TK-330](https://tickets.puppetlabs.com/browse/TK-330),
[TK-331](https://tickets.puppetlabs.com/browse/TK-331) - various minor
improvements to HUP support to eliminate some bugs/annoyances that
were possible in pathological situations
## 1.3.0
This is a feature release.
* [TK-202](https://tickets.puppetlabs.com/browse/TK-202) - adds support for
restarting a TK app via HUP signal, w/o shutting down entire JVM process
* [TK-315](https://tickets.puppetlabs.com/browse/TK-315) - update raynes.fs
dependency to 1.4.6, to minimize dependency conflicts for consumers
* RELEASE NOTE: adds a dependency on core.async
* RELEASE NOTE: minor changes to internal `app-context` API; all service
contexts are now stored under a key called `:service-contexts`. This
shouldn't affect any consuming code unless you were digging into the
internal `app-context` API for really low-level tests or similar.
## 1.2.0
This is a minor feature release.
* [TK-299](https://tickets.puppetlabs.com/browse/TK-299) - support optional
dependencies, which allow services to take advantage of other services if
they're included in the bootstrap and gracefully handled when they are not
included. See the
[docs](https://github.com/puppetlabs/trapperkeeper/wiki/Defining-Services#optional-services)
for more detail.
* Use newer version of schema library and make use of more schemas.
## 1.1.3
This is a bugfix release.
* [TK-311](https://tickets.puppetlabs.com/browse/TK-311) - fix a minor bug in the new
logging testutils, where the log appenders weren't implementing the `isStarted`
method.
## 1.1.2
This is a bugfix / minor feature release.
* Various, significant improvements to logging testutils, courtesy of Rob Browning.
* [TK-291](https://tickets.puppetlabs.com/browse/TK-291) - `(is (logged?` test assertion
now captures log messages that were logged by other (non-Clojure) threads.
* `logs-matching` now has an additional signature that accepts a log level
* Improvements to error handling when an error occurs in TK's `main` function
## 1.1.1
This is a maintenance / minor feature release.
* [TK-197](https://tickets.puppetlabs.com/browse/TK-197) - update prismatic
dependencies to latest versions.
* Add support for yaml config files
* [TK-131](https://tickets.puppetlabs.com/browse/TK131) Relax preconditions on logging configuration
## 1.1.0
This is a minor feature release.
* Add support for logback's `EvaluatorFilter`, which allows users to configure
the logging to filter log messages based on regular expression patterns.
## 1.0.1
* Fix an issue wherein nothing would be logged to the console when the
--debug flag was set
## 1.0.0
* Promoting previous release to 1.0.0, so that we can begin to be more deliberate
about adhering to semver from here on out.
## 0.5.2
This is a minor feature and bugfix release.
* Call the `service-symbol` function in lifecycle error messages to make it easier
to determine which service caused the error
* Fix an IllegalArgumentException that would occur when catching a slingshot exception
in the TK `main` function.
* Allow multiple comma-separated config files and directories to be specified
in the --config CLI argument.
## 0.5.1
This is a bugfix release.
* Fix a bug that prevented `defservice` from working with protocols that were defined in a different namespace.
## 0.5.0
This is a feature release with a minor breaking API change.
* The breaking API change affects the functions defined in the
`puppetlabs.trapperkeeper.services/Service` protocol - namely, `service-context`.
References to these functions are no longer automatically in scope inside a
`service` or `defservice` definition as they were previously (via macro magic),
and they must be `require`d like any other function -
`(require '[puppetlabs.trapperkeeper.services :refer [service-context]])`.
* Changed schema version to support the Bool type
* Improve implementation of the `service` macro
* Formalize public function for loading config
## 0.4.3
This is a minor feature release.
* Moved documentation to github wiki
* Get rid of requirement for `--config` command-line argument
* Add new `service-symbol` and `get-services` functions to protocols
* Update dependencies
## 0.4.2
This is a minor feature release.
* Add a new configuration setting `middlewares` to the nREPL service, to allow
registration of nREPL middleware (e.g. for compatibility with LightTable).
(Thanks to `exi` for this contribution!)
## 0.4.1
This is a maintenance/bugfix release.
* Fix a minor bug in testutils/logging where we inadvertently changed the return value of
log statements.
* Add an explicit call to `shutdown-agents` on trapperkeeper exit, to prevent the JVM from
hanging for 60 seconds on shutdown (if any services were using `future`).
## 0.4.0
This release includes improved error handling and logic for shutting down Trapperkeeper applications.
* Improved handling of errors during a service's `init` or `start` functions:
* All services' `stop` functions are now called, even when an error is thrown by any service's
`init` or `start` function. This means that `stop` implementations must now be resilient
to invocation even when `init` or `start` has not executed.
* Updated `boot-services-with-cli-data`, `boot-services-with-config`, and `boot-with-cli-data`
to return the `TrapperkeeperApp` instance rather than propagating the `Throwable`.
* Updated example "Reloaded" pattern usage to use the new `check-for-errors!`
function on the `TrapperkeeperApp` instance to detect any errors that may have occurred
while services were being bootstrapped.
## 0.3.12
This is a maintenance release.
* Upgrade fs dependency to 1.4.5 to standardize across projects
## 0.3.11
This is a maintenance/bugfix release.
* Fix minor bug in how nrepl service loads its configuration
* Add CONTRIBUTING.md file
* Fix a few misleading things in the README (dan@simple.com)
## 0.3.10
This is a maintenance release.
* Update version number of kitchensink dependency to 0.6.0, to get rid of transitive dependencies on SSL libraries.
## 0.3.9
This is a maintenance release.
* Update version number of logback dependency from 1.0.13 to 1.1.1, to resolve a bug in logback that was affecting our jetty9 web server.
## 0.3.8
This is a bugfix and maintenance release.
* Improve logging of exceptions that occur during bootstrapping.
## 0.3.7
This is a bugfix and maintenance release.
* Log exceptions that occur during bootstrapping.
## 0.3.6
This is a bugfix and maintenance release.
* Move typesafe config code to an external library - https://github.com/puppetlabs/clj-typesafe-config
* Improve error handling and logging in `shutdown-on-error`.
## 0.3.5
* Improved error handling in the `service`/`defservice` macros.
* Improved error handling in the shutdown logic, particularly when using `shutdown-on-error`.
* Fix a bug that prevented `service-id` from being called from a service's `init` function.
* Minor documentation fixes and improvements.
## 0.3.4
* Add new macros in `testutils/bootstrap` namespace, to make it easier to write tests for services
* Add support for .edn, .conf, .json, .properties config files in addition to .ini
## 0.3.3
* Fix a bug in how we were handling command-line arguments in the case where the user does not pass any
* Add a new function `get-service` to the `Service` protocol, which allows service authors to get a reference to the protocol instance of a service if they prefer that to the prismatic-style function injections
## 0.3.2
* Bugfix release
* Use prismatic schema validation during tests to ensure we are complying with
our advertised schemas
* Fix bug where we were not including lifecycle functions in the schema
* Fix bug in error handling of prismatic exceptions
* Upgrade to version 0.2.1 of prismatic schema, which includes a fix for
some thing related to aot.
## 0.3.0
* Changes to `defservice` API so that it supports service lifecycles more explicitly,
and now uses clojure protocols as the means for specifying functions provided
by a service.
* Upgrade to 0.5.1 of kitchensink, which includes a significant performance
improvement for applications that are accepting HTTPS connections
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
OpenVoxProject-trapperkeeper-49527b2/Gemfile 0000664 0000000 0000000 00000000544 15224541352 0021067 0 ustar 00root root 0000000 0000000 source ENV['GEM_SOURCE'] || 'https://rubygems.org'
group :release, optional: true do
gem 'faraday-retry', '~> 2.1', require: false
gem 'github_changelog_generator', '~> 1.18', require: false
#gem 'github_changelog_generator', github: 'smortex/github-changelog-generator', branch: 'avoid-processing-a-single-commit-multiple-time', require: false
end
OpenVoxProject-trapperkeeper-49527b2/HISTORY.md 0000664 0000000 0000000 00000033662 15224541352 0021266 0 ustar 00root root 0000000 0000000 ## 4.0.2
* update `logged?` to not emit an incorrect message when there are no matches, and clean up the output from multiple unexpected matches.
## 4.0.1
* adds a new arity to `logged?` that removes the restriction that only one log line must match the pattern, adds printing to the function and repo documentation to make users aware of this single line match restriction
## 4.0.0
This is a major release with breaking changes.
* remove support for yaml configuration files
* add clj-kondo linting and fix issues found
* add eastwood linting and fix issues found
## 3.3.1
This is a maintenance release
* Unpin logback and logback dependencies versions, bump clj-parent to defer to its versioning
## 3.3.0
This is a potentially breaking dependency version update release
* Upgrades logback version to 1.3.5 from 1.2.9, which is now in maintenance mode
* Adds slf4j-api dependency and pins other relevant dependencies to 2.0.6
## 3.2.1
This is a maintenance release
* Avoid crashing when trying to load bootstrap.cfg in some cases. See
also [PDB-5215](https://tickets.puppetlabs.com/browse/PDB-5215) and
[CLJ-2431](https://clojure.atlassian.net/browse/CLJ-2431)).
## 3.2.0
This is a minor feature release
* Backward compatible changes to the signature of `puppetlabs.trapperkeeper.internal/shutdown!` function. Returns collection of exceptions caught during execution of shutdown sequence instead of nil.
* Extend `stop` method of `puppetlabs.trapperkeeper.app/TrapperkeeperApp` protocol with an argument `throw?` to handle cases where exceptions in shutdown sequence should be rethrown.
* Change default behavior of `puppetlabs.trapperkeeper.testutils.bootstrap` helper macroses to throw exception when shutdown finished abruptly.
## 3.1.1
This is a maintenance release
* Updates to current clj-parent
## 3.1.0
This is a minor feature release
* [PDB-4636](https://github.com/puppetlabs/trapperkeeper/pull/287) - support custom exit status/messages
## 3.0.0
This is a maintenance release
* Updates to current clj-parent to clean up project.clj and update dependencies
* Tests changes for readability and compatibility with Java11
## 2.0.1
This is a maintenance release
* Ensures that all errors are correctly thrown, notably errors about bad config schemas.
## 2.0.0
This is a maintenance release
* [ORCH-2282](https://tickets.puppetlabs.com/browse/ORCH-2282) - Updates to current clj-parent
to support using nrepl/nrepl
* Updates required for using nrepl/nrepl; mainline development for nrepl moved from
org.clojure/tools.nrepl as of the 0.3.x series (last on this line was 0.2.13)
* Updating to this version of trapperkeeper requires lein >=2.9.0 (:min-lein-version updated)
* Drops support for JDK7
## 1.5.6
This is a maintenance release
* [TK-466](https://tickets.puppetlabs.com/browse/TK-466) - Log SIGHUP events at INFO level
## 1.5.5
This is a maintenance release
* Fix log message accidentally converted to a warning
## 1.5.4
This is a maintenance release.
* Fix adding to classpath under Java 9
## 1.5.3
This is a maintenance release.
* [TK-411](https://tickets.puppetlabs.com/browse/TK-411) - Externalize strings for i18n
* [TK-439](https://tickets.puppetlabs.com/browse/TK-439) - Handle exceptions having no
type key in main
* Fix symbol redef warnings under Clojure 1.9
* Improved lifecycle debug logging
## 1.5.2
This is a maintenance release.
* [SERVER-1494](https://tickets.puppetlabs.com/browse/SERVER-1494) - use `lein-parent`
plugin to inherit dependency versions from parent project.
## 1.5.1
This is a minor feature release
* [TK-405](https://tickets.puppetlabs.com/browse/TK-405) - Add support for
specifying the restart file option via a command line argument
## 1.5.0
This is a feature/bugfix/maintenance release
* [TK-345](https://tickets.puppetlabs.com/browse/TK-345) - Add support for optional
restart file which, if specified, will contain an integer that increments when
a TK app has successfully started all of its services
* [TK-382](https://tickets.puppetlabs.com/browse/TK-382) - Fix bug where optional
dependencies could not be specified for a service without a protocol
* [TK-397](https://tickets.puppetlabs.com/browse/TK-397) - Update to logback 1.1.7
## 1.4.1
This is a bugfix release. It fixes a single issue
* [TK-375](https://tickets.puppetlabs.com/browse/TK-375) - Regression in 1.4.0
when loading bootstrap.cfg from resources/classpath
## 1.4.0
This is feature/bugfix release. It is a re-release of 1.3.2
* [TK-347](https://tickets.puppetlabs.com/browse/TK-347) - Support directories
and paths in TK's "bootstrap-config" CLI argument
* [TK-211](https://tickets.puppetlabs.com/browse/TK-211) - Trapperkeeper
doesn't error if two services implementing the same protocol are started
* [TK-349](https://tickets.puppetlabs.com/browse/TK-349) - TK should not
fail during startup if an unrecognized service is found in bootstrap config
* [TK-351](https://tickets.puppetlabs.com/browse/TK-351) - Ensure all bootstrap
related errors log what file they come from
## 1.3.2
This version was released by mistake, it was intended to be 1.4.0
## 1.3.1
This is a bugfix / maintenance / minor feature release
* [TK-319](https://tickets.puppetlabs.com/browse/TK-319) - fix a bug where
optional dependencies could not be used without a service protocol
* [TK-325](https://tickets.puppetlabs.com/browse/TK-325) - move documentation
into repo, instead of storing it on the github wiki
* [HC-51](https://tickets.puppetlabs.com/browse/HC-51) - update to newer
version of clj typesafe / hocon wrapper, fixing bug that prevented
variable interpolation from working properly in hocon config files
* New `bootstrap-services-with-config` testutils macro
* [TK-342](https://tickets.puppetlabs.com/browse/TK-342) - new logging
testutils macros, e.g. `with-logged-event-maps`.
* [TK-326](https://tickets.puppetlabs.com/browse/TK-326),
[TK-330](https://tickets.puppetlabs.com/browse/TK-330),
[TK-331](https://tickets.puppetlabs.com/browse/TK-331) - various minor
improvements to HUP support to eliminate some bugs/annoyances that
were possible in pathological situations
## 1.3.0
This is a feature release.
* [TK-202](https://tickets.puppetlabs.com/browse/TK-202) - adds support for
restarting a TK app via HUP signal, w/o shutting down entire JVM process
* [TK-315](https://tickets.puppetlabs.com/browse/TK-315) - update raynes.fs
dependency to 1.4.6, to minimize dependency conflicts for consumers
* RELEASE NOTE: adds a dependency on core.async
* RELEASE NOTE: minor changes to internal `app-context` API; all service
contexts are now stored under a key called `:service-contexts`. This
shouldn't affect any consuming code unless you were digging into the
internal `app-context` API for really low-level tests or similar.
## 1.2.0
This is a minor feature release.
* [TK-299](https://tickets.puppetlabs.com/browse/TK-299) - support optional
dependencies, which allow services to take advantage of other services if
they're included in the bootstrap and gracefully handled when they are not
included. See the
[docs](https://github.com/puppetlabs/trapperkeeper/wiki/Defining-Services#optional-services)
for more detail.
* Use newer version of schema library and make use of more schemas.
## 1.1.3
This is a bugfix release.
* [TK-311](https://tickets.puppetlabs.com/browse/TK-311) - fix a minor bug in the new
logging testutils, where the log appenders weren't implementing the `isStarted`
method.
## 1.1.2
This is a bugfix / minor feature release.
* Various, significant improvements to logging testutils, courtesy of Rob Browning.
* [TK-291](https://tickets.puppetlabs.com/browse/TK-291) - `(is (logged?` test assertion
now captures log messages that were logged by other (non-Clojure) threads.
* `logs-matching` now has an additional signature that accepts a log level
* Improvements to error handling when an error occurs in TK's `main` function
## 1.1.1
This is a maintenance / minor feature release.
* [TK-197](https://tickets.puppetlabs.com/browse/TK-197) - update prismatic
dependencies to latest versions.
* Add support for yaml config files
* [TK-131](https://tickets.puppetlabs.com/browse/TK131) Relax preconditions on logging configuration
## 1.1.0
This is a minor feature release.
* Add support for logback's `EvaluatorFilter`, which allows users to configure
the logging to filter log messages based on regular expression patterns.
## 1.0.1
* Fix an issue wherein nothing would be logged to the console when the
--debug flag was set
## 1.0.0
* Promoting previous release to 1.0.0, so that we can begin to be more deliberate
about adhering to semver from here on out.
## 0.5.2
This is a minor feature and bugfix release.
* Call the `service-symbol` function in lifecycle error messages to make it easier
to determine which service caused the error
* Fix an IllegalArgumentException that would occur when catching a slingshot exception
in the TK `main` function.
* Allow multiple comma-separated config files and directories to be specified
in the --config CLI argument.
## 0.5.1
This is a bugfix release.
* Fix a bug that prevented `defservice` from working with protocols that were defined in a different namespace.
## 0.5.0
This is a feature release with a minor breaking API change.
* The breaking API change affects the functions defined in the
`puppetlabs.trapperkeeper.services/Service` protocol - namely, `service-context`.
References to these functions are no longer automatically in scope inside a
`service` or `defservice` definition as they were previously (via macro magic),
and they must be `require`d like any other function -
`(require '[puppetlabs.trapperkeeper.services :refer [service-context]])`.
* Changed schema version to support the Bool type
* Improve implementation of the `service` macro
* Formalize public function for loading config
## 0.4.3
This is a minor feature release.
* Moved documentation to github wiki
* Get rid of requirement for `--config` command-line argument
* Add new `service-symbol` and `get-services` functions to protocols
* Update dependencies
## 0.4.2
This is a minor feature release.
* Add a new configuration setting `middlewares` to the nREPL service, to allow
registration of nREPL middleware (e.g. for compatibility with LightTable).
(Thanks to `exi` for this contribution!)
## 0.4.1
This is a maintenance/bugfix release.
* Fix a minor bug in testutils/logging where we inadvertently changed the return value of
log statements.
* Add an explicit call to `shutdown-agents` on trapperkeeper exit, to prevent the JVM from
hanging for 60 seconds on shutdown (if any services were using `future`).
## 0.4.0
This release includes improved error handling and logic for shutting down Trapperkeeper applications.
* Improved handling of errors during a service's `init` or `start` functions:
* All services' `stop` functions are now called, even when an error is thrown by any service's
`init` or `start` function. This means that `stop` implementations must now be resilient
to invocation even when `init` or `start` has not executed.
* Updated `boot-services-with-cli-data`, `boot-services-with-config`, and `boot-with-cli-data`
to return the `TrapperkeeperApp` instance rather than propagating the `Throwable`.
* Updated example "Reloaded" pattern usage to use the new `check-for-errors!`
function on the `TrapperkeeperApp` instance to detect any errors that may have occurred
while services were being bootstrapped.
## 0.3.12
This is a maintenance release.
* Upgrade fs dependency to 1.4.5 to standardize across projects
## 0.3.11
This is a maintenance/bugfix release.
* Fix minor bug in how nrepl service loads its configuration
* Add CONTRIBUTING.md file
* Fix a few misleading things in the README (dan@simple.com)
## 0.3.10
This is a maintenance release.
* Update version number of kitchensink dependency to 0.6.0, to get rid of transitive dependencies on SSL libraries.
## 0.3.9
This is a maintenance release.
* Update version number of logback dependency from 1.0.13 to 1.1.1, to resolve a bug in logback that was affecting our jetty9 web server.
## 0.3.8
This is a bugfix and maintenance release.
* Improve logging of exceptions that occur during bootstrapping.
## 0.3.7
This is a bugfix and maintenance release.
* Log exceptions that occur during bootstrapping.
## 0.3.6
This is a bugfix and maintenance release.
* Move typesafe config code to an external library - https://github.com/puppetlabs/clj-typesafe-config
* Improve error handling and logging in `shutdown-on-error`.
## 0.3.5
* Improved error handling in the `service`/`defservice` macros.
* Improved error handling in the shutdown logic, particularly when using `shutdown-on-error`.
* Fix a bug that prevented `service-id` from being called from a service's `init` function.
* Minor documentation fixes and improvements.
## 0.3.4
* Add new macros in `testutils/bootstrap` namespace, to make it easier to write tests for services
* Add support for .edn, .conf, .json, .properties config files in addition to .ini
## 0.3.3
* Fix a bug in how we were handling command-line arguments in the case where the user does not pass any
* Add a new function `get-service` to the `Service` protocol, which allows service authors to get a reference to the protocol instance of a service if they prefer that to the prismatic-style function injections
## 0.3.2
* Bugfix release
* Use prismatic schema validation during tests to ensure we are complying with
our advertised schemas
* Fix bug where we were not including lifecycle functions in the schema
* Fix bug in error handling of prismatic exceptions
* Upgrade to version 0.2.1 of prismatic schema, which includes a fix for
some thing related to aot.
## 0.3.0
* Changes to `defservice` API so that it supports service lifecycles more explicitly,
and now uses clojure protocols as the means for specifying functions provided
by a service.
* Upgrade to 0.5.1 of kitchensink, which includes a significant performance
improvement for applications that are accepting HTTPS connections
OpenVoxProject-trapperkeeper-49527b2/LICENSE 0000664 0000000 0000000 00000026075 15224541352 0020610 0 ustar 00root root 0000000 0000000 Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
OpenVoxProject-trapperkeeper-49527b2/Makefile 0000664 0000000 0000000 00000000043 15224541352 0021226 0 ustar 00root root 0000000 0000000 include dev-resources/Makefile.i18n OpenVoxProject-trapperkeeper-49527b2/README.md 0000664 0000000 0000000 00000005512 15224541352 0021053 0 ustar 00root root 0000000 0000000
# Trapperkeeper
Trapperkeeper is a Clojure framework for hosting long-running applications and services.
You can think of it as a sort of "binder" for Ring applications and other modular bits of Clojure code.
## Installation
Add the following dependency to your `project.clj` file:
[](http://clojars.org/org.openvoxproject/trapperkeeper)
## Documentation
You can find a quick-start, example code, and lots and lots of documentation in our:
* [Documentation](documentation/Index.md)
## Lein Template
A Leiningen template is available that shows a suggested project structure:
lein new trapperkeeper my.namespace/myproject
Once you've created a project from the template, you can run it via the lein alias:
lein tk
Note that the template is not intended to suggest a specific namespace organization;
it's just intended to show you how to write a service, a web service, and tests
for each.
## Related Projects
Here are some additional projects that provide Trapperkeeper services, and
other related functionality:
* [trapperkeeper-webserver-jetty9](https://github.com/openvoxproject/trapperkeeper-webserver-jetty9): a Jetty9-based webserver for use with TK applications
* [trapperkeeper-rpc](https://github.com/puppetlabs/trapperkeeper-rpc): a TK service that allows you to easily build a way to call remote TK services over RPC
* [trapperkeeper-metrics](https://github.com/openvoxproject/trapperkeeper-metrics): a TK service that manages the life cycle of a [MetricRegistry](https://github.com/dropwizard/metrics), so that all of your TK services can register metrics with a common configuration syntax.
* [trapperkeeper-comidi-metrics](https://github.com/openvoxproject/trapperkeeper-comidi-metrics): a TK utility library that provides middleware to automatically generate metrics for all requests to each of your bidi/comidi HTTP routes.
* [trapperkeeper-status](https://github.com/openvoxproject/trapperkeeper-status): a TK service that provides a mechanism for registering status callbacks for all of your other TK services, and web API for requesting status information about the entire TK system.
* [trapperkeeper-scheduler](https://github.com/openvoxproject/trapperkeeper-scheduler): a TK service that provides an API for scheduling periodic background tasks
## License
Copyright © 2013 Puppet Labs
Copyright © 2025 Vox Pupuli
Distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
## Support
GitHub issues and PRs are welcome! Additionally, drop us a line in [the Vox Pupuli Slack or IRC channel](https://voxpupuli.org/connect/).
OpenVoxProject-trapperkeeper-49527b2/Rakefile 0000664 0000000 0000000 00000002113 15224541352 0021233 0 ustar 00root root 0000000 0000000 begin
require 'github_changelog_generator/task'
rescue LoadError
task :changelog do
abort('Run `bundle install --with release` to install the `github_changelog_generator` gem.')
end
else
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.header = <<~HEADER.chomp
# Changelog
All notable changes to this project will be documented in this file.
HEADER
config.user = 'OpenVoxProject'
config.project = 'trapperkeeper'
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
# this is probably the worst way to do this
# ideally there would be a VERSION file and clojure and Rake would read it
config.future_release = File.readlines('project.clj').grep(/trapperkeeper/).first.scan(/".*"/).first.gsub('"', '')
# we limit the changelog to all new openvox releases, to skip perforce onces
# otherwise the changelog generate takes a lot amount of time
config.since_tag = '4.0.2'
#config.exclude_tags_regex = /\A7\./
config.release_branch = 'main'
end
end
OpenVoxProject-trapperkeeper-49527b2/dev-resources/ 0000775 0000000 0000000 00000000000 15224541352 0022357 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/Makefile.i18n 0000664 0000000 0000000 00000014105 15224541352 0024576 0 ustar 00root root 0000000 0000000 # -*- Makefile -*-
# This file was generated by the i18n leiningen plugin
# Do not edit this file; it will be overwritten the next time you run
# lein i18n init
#
# The name of the package into which the translations bundle will be placed
BUNDLE=puppetlabs.trapperkeeper
# The name of the POT file into which the gettext code strings (msgid) will be placed
POT_NAME=trapperkeeper.pot
# The list of names of packages covered by the translation bundle;
# by default it contains a single package - the same where the translations
# bundle itself is placed - but this can be overridden - preferably in
# the top level Makefile
PACKAGES?=$(BUNDLE)
LOCALES=$(basename $(notdir $(wildcard locales/*.po)))
BUNDLE_DIR=$(subst .,/,$(BUNDLE))
BUNDLE_FILES=$(patsubst %,resources/$(BUNDLE_DIR)/Messages_%.class,$(LOCALES))
FIND_SOURCES=find src -name \*.clj
# xgettext before 0.19 does not understand --add-location=file. Even CentOS
# 7 ships with an older gettext. We will therefore generate full location
# info on those systems, and only file names where xgettext supports it
LOC_OPT=$(shell xgettext --add-location=file -f - /dev/null 2>&1 && echo --add-location=file || echo --add-location)
LOCALES_CLJ=resources/locales.clj
define LOCALES_CLJ_CONTENTS
{
:locales #{$(patsubst %,"%",$(LOCALES))}
:packages [$(patsubst %,"%",$(PACKAGES))]
:bundle $(patsubst %,"%",$(BUNDLE).Messages)
}
endef
export LOCALES_CLJ_CONTENTS
i18n: msgfmt
# Update locales/.pot
update-pot: locales/$(POT_NAME)
locales/$(POT_NAME): $(shell $(FIND_SOURCES)) | locales
@tmp=$$(mktemp $@.tmp.XXXX); \
$(FIND_SOURCES) \
| xgettext --from-code=UTF-8 --language=lisp \
--copyright-holder='Puppet ' \
--package-name="$(BUNDLE)" \
--package-version="$(BUNDLE_VERSION)" \
--msgid-bugs-address="docs@puppet.com" \
-k \
-kmark:1 -ki18n/mark:1 \
-ktrs:1 -ki18n/trs:1 \
-ktru:1 -ki18n/tru:1 \
-ktrun:1,2 -ki18n/trun:1,2 \
-ktrsn:1,2 -ki18n/trsn:1,2 \
$(LOC_OPT) \
--add-comments --sort-by-file \
-o $$tmp -f -; \
sed -i.bak -e 's/charset=CHARSET/charset=UTF-8/' $$tmp; \
sed -i.bak -e 's/POT-Creation-Date: [^\\]*/POT-Creation-Date: /' $$tmp; \
rm -f $$tmp.bak; \
if ! diff -q -I POT-Creation-Date $$tmp $@ >/dev/null 2>&1; then \
mv $$tmp $@; \
else \
rm $$tmp; touch $@; \
fi
# Run msgfmt over all .po files to generate Java resource bundles
# and create the locales.clj file
msgfmt: $(BUNDLE_FILES) $(LOCALES_CLJ) clean-orphaned-bundles
# Force rebuild of locales.clj if its contents is not the the desired one. The
# shell echo is used to add a trailing newline to match the one from `cat`
ifneq ($(shell cat $(LOCALES_CLJ) 2> /dev/null),$(shell echo '$(LOCALES_CLJ_CONTENTS)'))
.PHONY: $(LOCALES_CLJ)
endif
$(LOCALES_CLJ): | resources
@echo "Writing $@"
@echo "$$LOCALES_CLJ_CONTENTS" > $@
# Remove every resource bundle that wasn't generated from a PO file.
# We do this because we used to generate the english bundle directly from the POT.
.PHONY: clean-orphaned-bundles
clean-orphaned-bundles:
@for bundle in resources/$(BUNDLE_DIR)/Messages_*.class; do \
locale=$$(basename "$$bundle" | sed -E -e 's/\$$?1?\.class$$/_class/' | cut -d '_' -f 2;); \
if [ ! -f "locales/$$locale.po" ]; then \
rm "$$bundle"; \
fi \
done
resources/$(BUNDLE_DIR)/Messages_%.class: locales/%.po | resources
msgfmt --java2 -d resources -r $(BUNDLE).Messages -l $(*F) $<
# Use this to initialize translations. Updating the PO files is done
# automatically through a CI job that utilizes the scripts in the project's
# `bin` file, which themselves come from the `clj-i18n` project.
locales/%.po: | locales
@if [ ! -f $@ ]; then \
touch $@ && msginit --no-translator -l $(*F) -o $@ -i locales/$(POT_NAME); \
fi
resources locales:
@mkdir $@
help:
$(info $(HELP))
@echo
.PHONY: help
define HELP
This Makefile assists in handling i18n related tasks during development. Files
that need to be checked into source control are put into the locales/ directory.
They are
locales/$(POT_NAME) - the POT file generated by 'make update-pot'
locales/$$LANG.po - the translations for $$LANG
Only the $$LANG.po files should be edited manually; this is usually done by
translators.
You can use the following targets:
i18n: refresh all the files in locales/ and recompile resources
update-pot: extract strings and update locales/$(POT_NAME)
locales/LANG.po: create translations for LANG
msgfmt: compile the translations into Java classes; this step is
needed to make translations available to the Clojure code
and produces Java class files in resources/
endef
# @todo lutter 2015-04-20: for projects that use libraries with their own
# translation, we need to combine all their translations into one big po
# file and then run msgfmt over that so that we only have to deal with one
# resource bundle
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/ 0000775 0000000 0000000 00000000000 15224541352 0025252 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/classpath/ 0000775 0000000 0000000 00000000000 15224541352 0027234 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/classpath/bootstrap.cfg 0000664 0000000 0000000 00000000247 15224541352 0031735 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/classpath-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/ 0000775 0000000 0000000 00000000000 15224541352 0026021 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/bootstrap.cfg 0000664 0000000 0000000 00000000241 15224541352 0030514 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/bootstrap_with_comments.cfg 0000664 0000000 0000000 00000000470 15224541352 0033460 0 ustar 00root root 0000000 0000000 # commented out line
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service # comment
; another commented out line
;puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service ; comment
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/duplicate_entries.cfg 0000664 0000000 0000000 00000000632 15224541352 0032206 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/duplicate_services/ 0000775 0000000 0000000 00000000000 15224541352 0031676 5 ustar 00root root 0000000 0000000 duplicates.cfg 0000664 0000000 0000000 00000000716 15224541352 0034441 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/duplicate_services # cli and foo implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
# test-service-two and test-service-two-duplicate implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two-duplicate
split_one.cfg 0000664 0000000 0000000 00000000460 15224541352 0034274 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/duplicate_services # cli and foo implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
# test-service-two and test-service-two-duplicate implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two-duplicate
split_two.cfg 0000664 0000000 0000000 00000000446 15224541352 0034330 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/duplicate_services # cli and foo implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
# test-service-two and test-service-two-duplicate implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/empty_bootstrap.cfg 0000664 0000000 0000000 00000000000 15224541352 0031723 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/fake_namespace_bootstrap.cfg 0000664 0000000 0000000 00000000303 15224541352 0033515 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
non-existent-service/test-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/invalid_entry_bootstrap.cfg 0000664 0000000 0000000 00000000151 15224541352 0033443 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
This is not a legit line.
invalid_service_graph_bootstrap.cfg 0000664 0000000 0000000 00000000134 15224541352 0035045 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli puppetlabs.trapperkeeper.examples.bootstrapping.test-services/invalid-service-graph-service
missing_definition_bootstrap.cfg 0000664 0000000 0000000 00000000364 15224541352 0034404 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/non-existent-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/path with spaces/ 0000775 0000000 0000000 00000000000 15224541352 0031150 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/path with spaces/bootstrap.cfg 0000664 0000000 0000000 00000000241 15224541352 0033643 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/ 0000775 0000000 0000000 00000000000 15224541352 0031434 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/both/ 0000775 0000000 0000000 00000000000 15224541352 0032370 5 ustar 00root root 0000000 0000000 bootstrap_one.cfg 0000664 0000000 0000000 00000000241 15224541352 0035645 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/both puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
bootstrap_two.cfg 0000664 0000000 0000000 00000000240 15224541352 0035674 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/both puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-three
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/empty/ 0000775 0000000 0000000 00000000000 15224541352 0032572 5 ustar 00root root 0000000 0000000 empty1.cfg 0000664 0000000 0000000 00000000000 15224541352 0034401 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/empty empty2.cfg 0000664 0000000 0000000 00000000034 15224541352 0034411 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/empty # any entries here?
# nope
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/one/ 0000775 0000000 0000000 00000000000 15224541352 0032215 5 ustar 00root root 0000000 0000000 bootstrap_one.cfg 0000664 0000000 0000000 00000000241 15224541352 0035472 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/one puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/spaces/ 0000775 0000000 0000000 00000000000 15224541352 0032712 5 ustar 00root root 0000000 0000000 bootstrap with spaces one.cfg 0000664 0000000 0000000 00000000241 15224541352 0040263 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/spaces puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
bootstrap with spaces two.cfg 0000664 0000000 0000000 00000000240 15224541352 0040312 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/spaces puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-three
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/two/ 0000775 0000000 0000000 00000000000 15224541352 0032245 5 ustar 00root root 0000000 0000000 bootstrap_two.cfg 0000664 0000000 0000000 00000000240 15224541352 0035551 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cli/split_bootstraps/two puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-three
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cwd/ 0000775 0000000 0000000 00000000000 15224541352 0026027 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/cwd/bootstrap.cfg 0000664 0000000 0000000 00000000241 15224541352 0030522 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cwd-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/jar/ 0000775 0000000 0000000 00000000000 15224541352 0026026 5 ustar 00root root 0000000 0000000 this-jar-contains-a-bootstrap-config-file.jar 0000664 0000000 0000000 00000000365 15224541352 0036417 0 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/jar PK ⁞C#4E S
bootstrap.cfgUT RRux 5K
0KZ}h16![70*Ku
+m O9TE¿J찫i[?PK ⁞C#4E S
bootstrap.cfgUT Rux PK S OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/plugin/ 0000775 0000000 0000000 00000000000 15224541352 0026550 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/bootstrapping/plugin/bootstrap.cfg 0000664 0000000 0000000 00000000067 15224541352 0031251 0 ustar 00root root 0000000 0000000 test-services.plugin-test-services/plugin-test-service
OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/ 0000775 0000000 0000000 00000000000 15224541352 0023624 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir1/ 0000775 0000000 0000000 00000000000 15224541352 0026205 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir1/config.conf 0000664 0000000 0000000 00000000110 15224541352 0030311 0 ustar 00root root 0000000 0000000 foo {
// comment
somesetting : 12
# comment
baz = "hi"
} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir1/config.ini 0000664 0000000 0000000 00000000041 15224541352 0030146 0 ustar 00root root 0000000 0000000 [foo]
bar = "barbar"
baz = bazbaz OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir2/ 0000775 0000000 0000000 00000000000 15224541352 0026206 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir2/config.json 0000664 0000000 0000000 00000000076 15224541352 0030351 0 ustar 00root root 0000000 0000000 {"foo":
{"something": "something",
"baz": "jsonbaz"}} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir2/config.properties 0000664 0000000 0000000 00000000037 15224541352 0031571 0 ustar 00root root 0000000 0000000 foo.bar="barbar"
foo.baz=bazbaz OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir3/ 0000775 0000000 0000000 00000000000 15224541352 0026207 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir3/config.edn 0000664 0000000 0000000 00000000051 15224541352 0030140 0 ustar 00root root 0000000 0000000 {:foo
{:bar "barbar"
:baz "bazbaz"}} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/conflictdir3/config.json 0000664 0000000 0000000 00000000076 15224541352 0030352 0 ustar 00root root 0000000 0000000 {"foo":
{"something": "something",
"baz": "jsonbaz"}} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/file/ 0000775 0000000 0000000 00000000000 15224541352 0024543 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/file/config.conf 0000664 0000000 0000000 00000000314 15224541352 0026655 0 ustar 00root root 0000000 0000000 foo {
baz = "bazbaz"
// this is a test comment
bam: 42
# this is another test comment
bap.boozle = "boozleboozle"
}
foo.bar = barbar
foo.bap : {
bip : [1, 2, { hi = "there" }, 3]
} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/file/config.edn 0000664 0000000 0000000 00000000201 15224541352 0026471 0 ustar 00root root 0000000 0000000 {:foo
{:bar "barbar"
:baz "bazbaz"
:bam 42
:bap
{:boozle "boozleboozle"
:bip [1 2 {:hi "there"} 3]}}} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/file/config.ini 0000664 0000000 0000000 00000000125 15224541352 0026507 0 ustar 00root root 0000000 0000000 [foo]
# these are some settings
setting1 = foo1
setting2=foo2
[bar]
setting1 = bar1 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/file/config.json 0000664 0000000 0000000 00000000251 15224541352 0026701 0 ustar 00root root 0000000 0000000 {"foo":
{"bar": "barbar",
"baz": "bazbaz",
"bam": 42,
"bap":
{"boozle": "boozleboozle",
"bip": [1, 2, {"hi": "there"}, 3]
}}} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/file/config.properties 0000664 0000000 0000000 00000000110 15224541352 0030116 0 ustar 00root root 0000000 0000000 foo.bar="barbar"
foo.baz=bazbaz
foo.bam=42
foo.bap.boozle="boozleboozle" OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/inidir/ 0000775 0000000 0000000 00000000000 15224541352 0025102 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/inidir/bam.ini 0000664 0000000 0000000 00000000025 15224541352 0026337 0 ustar 00root root 0000000 0000000 [bam]
setting1 = bam1 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/inidir/baz.ini 0000664 0000000 0000000 00000000077 15224541352 0026363 0 ustar 00root root 0000000 0000000 [baz]
# these are some settings
setting1 = baz1
setting2=baz2
OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/mixeddir/ 0000775 0000000 0000000 00000000000 15224541352 0025431 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/mixeddir/bar.conf 0000664 0000000 0000000 00000000225 15224541352 0027043 0 ustar 00root root 0000000 0000000 bar {
nesty.mappy {
hi = there
# comment
stuff = [1, 2, {"how" = "areyou"}, 3]
}
// comment
junk : "thingz"
} OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/mixeddir/baz.ini 0000664 0000000 0000000 00000000077 15224541352 0026712 0 ustar 00root root 0000000 0000000 [baz]
# these are some settings
setting1 = baz1
setting2=baz2
OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/mixeddir/foo.properties 0000664 0000000 0000000 00000000064 15224541352 0030332 0 ustar 00root root 0000000 0000000 foo.bar="barbar"
foo.baz=bazbaz
foo.meaningoflife=42 OpenVoxProject-trapperkeeper-49527b2/dev-resources/config/mixeddir/taco.json 0000664 0000000 0000000 00000000071 15224541352 0027250 0 ustar 00root root 0000000 0000000 {"taco":
{"burrito": [1, 2],
"nacho": "cheese"}} OpenVoxProject-trapperkeeper-49527b2/dev-resources/logback.xml 0000664 0000000 0000000 00000000514 15224541352 0024503 0 ustar 00root root 0000000 0000000
%d %-5p [%c{2}] %m%n
OpenVoxProject-trapperkeeper-49527b2/dev-resources/logging/ 0000775 0000000 0000000 00000000000 15224541352 0024005 5 ustar 00root root 0000000 0000000 OpenVoxProject-trapperkeeper-49527b2/dev-resources/logging/logback-debug.xml 0000664 0000000 0000000 00000000573 15224541352 0027222 0 ustar 00root root 0000000 0000000
%d %-5p [%c{2}] %m%n