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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +94 -25
- data/README.md +9 -9
- data/docs/README.md +1 -1
- data/docs/hands-on-lab/01-installing-prereqs.md +1 -1
- data/docs/hands-on-lab/04-adding-a-new-transport.md +1 -1
- data/docs/hands-on-lab/07-implementing-a-task.md +1 -1
- data/lib/puppet/resource_api/base_context.rb +3 -1
- data/lib/puppet/resource_api/data_type_handling.rb +11 -2
- data/lib/puppet/resource_api/glue.rb +9 -2
- data/lib/puppet/resource_api/io_context.rb +2 -0
- data/lib/puppet/resource_api/parameter.rb +4 -2
- data/lib/puppet/resource_api/property.rb +65 -5
- data/lib/puppet/resource_api/puppet_context.rb +2 -0
- data/lib/puppet/resource_api/read_only_parameter.rb +2 -0
- data/lib/puppet/resource_api/simple_provider.rb +6 -4
- data/lib/puppet/resource_api/transport/wrapper.rb +2 -0
- data/lib/puppet/resource_api/transport.rb +15 -0
- data/lib/puppet/resource_api/type_definition.rb +59 -3
- data/lib/puppet/resource_api/value_creator.rb +2 -0
- data/lib/puppet/resource_api/version.rb +3 -1
- data/lib/puppet/resource_api.rb +41 -46
- data/lib/puppet/util/network_device/simple/device.rb +2 -0
- data/puppet-resource_api.gemspec +7 -8
- metadata +3 -19
- data/.dependency_decisions.yml +0 -98
- data/.fixtures.yml +0 -8
- data/.gitignore +0 -15
- data/.rspec +0 -3
- data/.rubocop.yml +0 -159
- data/.travis.yml +0 -79
- data/CODEOWNERS +0 -2
- data/Gemfile +0 -61
- data/HISTORY.md +0 -413
- data/Rakefile +0 -66
- data/appveyor.yml +0 -41
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/codecov.yml +0 -3
- data/contrib/README.md +0 -7
- 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
data/codecov.yml
DELETED
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
|