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

(maint) avoid using Command API for new provider example #29

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Feb 21, 2018

The Command API is scheduled to be removed. This is a simpler example
which also better explains what needs to happen in a provider.

The Command API is scheduled to be removed. This is a simpler example
which also better explains what needs to happen in a provider.
@bmjen bmjen merged commit 52adbbb into puppetlabs:master Feb 21, 2018
@DavidS DavidS deleted the no-commands-in-provider branch February 21, 2018 17:33
@DavidS
Copy link
Contributor Author

DavidS commented Feb 21, 2018

david@davids:~/git/tmp/test$ pdk new provider test
pdk (INFO): Creating '/home/david/git/tmp/test/lib/puppet/type/test.rb' from template.
pdk (INFO): Creating '/home/david/git/tmp/test/lib/puppet/provider/test/test.rb' from template.
pdk (INFO): Creating '/home/david/git/tmp/test/spec/unit/puppet/provider/test/test_spec.rb' from template.
david@davids:~/git/tmp/test$ pdk validate --parallel
pdk (INFO): Running all available validators...
┌ [✔] Validating module using 3 threads
├──[✔] Checking Ruby code style (**/**.rb).
├──[✔] Checking metadata syntax (metadata.json tasks/*.json).
└──[✔] Checking module metadata style (metadata.json).
info: puppet-syntax: ./: Target does not contain any files to validate (**/**.pp).
info: puppet-lint: ./: Target does not contain any files to validate (**/*.pp).
info: task-metadata-lint: ./: Target does not contain any files to validate (tasks/*.json).
david@davids:~/git/tmp/test$ pdk test unit
[✔] Preparing to run the unit tests.
[✔] Running unit tests.
  Evaluated 4 tests in 0.012141885 seconds: 0 failures, 0 pending.
[✔] Cleaning up after running unit tests.
david@davids:~/git/tmp/test$ 

for reference.

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

Successfully merging this pull request may close these issues.

2 participants