puppet-resource_api 1.8.13 → 1.8.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +94 -25
  3. data/README.md +9 -9
  4. data/docs/README.md +1 -1
  5. data/docs/hands-on-lab/01-installing-prereqs.md +1 -1
  6. data/docs/hands-on-lab/04-adding-a-new-transport.md +1 -1
  7. data/docs/hands-on-lab/07-implementing-a-task.md +1 -1
  8. data/lib/puppet/resource_api/base_context.rb +3 -1
  9. data/lib/puppet/resource_api/data_type_handling.rb +11 -2
  10. data/lib/puppet/resource_api/glue.rb +9 -2
  11. data/lib/puppet/resource_api/io_context.rb +2 -0
  12. data/lib/puppet/resource_api/parameter.rb +4 -2
  13. data/lib/puppet/resource_api/property.rb +65 -5
  14. data/lib/puppet/resource_api/puppet_context.rb +2 -0
  15. data/lib/puppet/resource_api/read_only_parameter.rb +2 -0
  16. data/lib/puppet/resource_api/simple_provider.rb +6 -4
  17. data/lib/puppet/resource_api/transport/wrapper.rb +2 -0
  18. data/lib/puppet/resource_api/transport.rb +15 -0
  19. data/lib/puppet/resource_api/type_definition.rb +59 -3
  20. data/lib/puppet/resource_api/value_creator.rb +2 -0
  21. data/lib/puppet/resource_api/version.rb +3 -1
  22. data/lib/puppet/resource_api.rb +41 -46
  23. data/lib/puppet/util/network_device/simple/device.rb +2 -0
  24. data/puppet-resource_api.gemspec +7 -8
  25. metadata +3 -19
  26. data/.dependency_decisions.yml +0 -98
  27. data/.fixtures.yml +0 -8
  28. data/.gitignore +0 -15
  29. data/.rspec +0 -3
  30. data/.rubocop.yml +0 -159
  31. data/.travis.yml +0 -79
  32. data/CODEOWNERS +0 -2
  33. data/Gemfile +0 -61
  34. data/HISTORY.md +0 -413
  35. data/Rakefile +0 -66
  36. data/appveyor.yml +0 -41
  37. data/bin/console +0 -14
  38. data/bin/setup +0 -8
  39. data/codecov.yml +0 -3
  40. data/contrib/README.md +0 -7
  41. data/contrib/pre-commit +0 -16
data/appveyor.yml DELETED
@@ -1,41 +0,0 @@
1
- # version: 1.0.{build}-{branch}
2
-
3
- branches:
4
- except:
5
- - release-prep
6
-
7
- environment:
8
- matrix:
9
- - RUBY_VERSION: 24-x64
10
- - PUPPET_GEM_VERSION: '~> 4.0'
11
- RUBY_VERSION: 21-x64
12
-
13
- install:
14
- - set PATH=C:\Ruby%RUBY_VERSION%\bin;C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
15
- - SET LOG_SPEC_ORDER=true
16
- - SET COVERAGE=yes
17
- - bundle install --jobs 4 --retry 2 --without development
18
-
19
- build: off
20
-
21
- before_test:
22
- - ruby -v
23
- - gem -v
24
- - bundle -v
25
- - type Gemfile.lock
26
-
27
- test_script:
28
- - bundle exec rake
29
-
30
- notifications:
31
- - provider: HipChat
32
- auth_token:
33
- secure: sJA0tOet7sv/H00xX5nc9+8bW/un1XR/vAiXyJNRl2OI2SopR7b436J42PPYHrE0
34
- room: 4283623
35
- template: >
36
- {{repositoryName}}#{{buildNumber}} ({{#isPullRequest}}PR {{pullRequestId}}{{/isPullRequest}}{{^isPullRequest}}{{branch}}{{/isPullRequest}} - {{commitId}} : {{commitAuthor}}): {{status}} (<a href="{{buildUrl}}">Details</a>{{#isPullRequest}} | <a href="https://github.com/{{repositoryName}}/pull/{{pullRequestId}}">PR</a>{{/isPullRequest}})
37
-
38
- # Uncomment this block to enable RDP access to the AppVeyor test instance for
39
- # debugging purposes.
40
- #on_finish:
41
- # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "puppet/resource_api"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/codecov.yml DELETED
@@ -1,3 +0,0 @@
1
- ---
2
- # disable comments, info can be gotten from the pr status updates, and the comment editing spams the hipchat notifications
3
- comment: false
data/contrib/README.md DELETED
@@ -1,7 +0,0 @@
1
- # Git pre-commit hook
2
- This directory contains the file `pre-commit`. When enabled the hook is called when you attempt to commit changes locally. The hook will run the bundled `rubocop` with auto correct function on files that you have changed.
3
-
4
- * If rubocop is successful in correcting errors detected in the changed files it will stage the changes and proceed with the commit.
5
- * If rubocop is unsuccessful in correcting errors detected in the changed files the commit will fail and the rubocop output will be displayed. Manual changes will need to be made before proceeding.
6
-
7
- To enable the pre-commit hook, either create a symlink to this file or copy the file to `.git/hooks`
data/contrib/pre-commit DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Code modified from: https://gist.github.com/hanloong/9849098
3
- require 'English'
4
-
5
- changed_files = `git diff --name-only --cached --diff-filter=ACM`.split(%r{\n})
6
- changed_files = changed_files.select { |file_name|
7
- File.extname(file_name) == '.rb'
8
- }.join(' ')
9
-
10
- system("bundle exec rubocop -a #{changed_files}") unless changed_files.empty?
11
-
12
- if $CHILD_STATUS.to_s[-1].to_i.zero? && !changed_files.empty?
13
- system("git add #{changed_files}")
14
- end
15
-
16
- exit $CHILD_STATUS.to_s[-1].to_i