ruby-pwsh 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +109 -0
- data/.gitignore +4 -1
- data/CHANGELOG.md +24 -2
- data/Gemfile +5 -1
- data/README.md +12 -0
- data/Rakefile +30 -0
- data/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb +305 -137
- data/lib/puppet/provider/dsc_base_provider/invoke_dsc_resource_functions.ps1 +5 -3
- data/lib/pwsh.rb +19 -45
- data/lib/pwsh/version.rb +1 -1
- data/lib/templates/RubyPwsh.cs +302 -0
- data/lib/templates/init.ps1 +137 -447
- data/metadata.json +30 -33
- metadata +5 -5
- data/.travis.yml +0 -26
- data/appveyor.yml +0 -38
data/metadata.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "puppetlabs-pwshlib",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.9.0",
|
4
4
|
"author": "puppetlabs",
|
5
5
|
"summary": "Provide library code for interoperating with PowerShell.",
|
6
6
|
"license": "MIT",
|
@@ -12,71 +12,68 @@
|
|
12
12
|
],
|
13
13
|
"operatingsystem_support": [
|
14
14
|
{
|
15
|
-
"operatingsystem": "
|
15
|
+
"operatingsystem": "Windows",
|
16
16
|
"operatingsystemrelease": [
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
"7"
|
17
|
+
"2008",
|
18
|
+
"2008 R2",
|
19
|
+
"2012",
|
20
|
+
"2012 R2",
|
21
|
+
"2016",
|
22
|
+
"2019",
|
23
|
+
"7",
|
24
|
+
"8",
|
25
|
+
"10"
|
24
26
|
]
|
25
27
|
},
|
26
28
|
{
|
27
|
-
"operatingsystem": "
|
29
|
+
"operatingsystem": "CentOS",
|
28
30
|
"operatingsystemrelease": [
|
31
|
+
"7",
|
29
32
|
"8"
|
30
33
|
]
|
31
34
|
},
|
32
|
-
{
|
33
|
-
"operatingsystem": "Scientific",
|
34
|
-
"operatingsystemrelease": [
|
35
|
-
"7"
|
36
|
-
]
|
37
|
-
},
|
38
35
|
{
|
39
36
|
"operatingsystem": "Debian",
|
40
37
|
"operatingsystemrelease": [
|
41
|
-
"
|
38
|
+
"8",
|
39
|
+
"9",
|
40
|
+
"10"
|
42
41
|
]
|
43
42
|
},
|
44
43
|
{
|
45
|
-
"operatingsystem": "
|
44
|
+
"operatingsystem": "Fedora",
|
46
45
|
"operatingsystemrelease": [
|
47
|
-
"
|
46
|
+
"30",
|
47
|
+
"31"
|
48
48
|
]
|
49
49
|
},
|
50
50
|
{
|
51
|
-
"operatingsystem": "
|
51
|
+
"operatingsystem": "OSX ",
|
52
52
|
"operatingsystemrelease": [
|
53
|
-
"
|
54
|
-
"10"
|
53
|
+
"10.14",
|
54
|
+
"10.15"
|
55
55
|
]
|
56
56
|
},
|
57
57
|
{
|
58
|
-
"operatingsystem": "
|
59
|
-
"operatingsystemrelease": [
|
60
|
-
"15"
|
61
|
-
]
|
62
|
-
},
|
63
|
-
{
|
64
|
-
"operatingsystem": "Darwin",
|
58
|
+
"operatingsystem": "RedHat",
|
65
59
|
"operatingsystemrelease": [
|
66
|
-
"
|
60
|
+
"7",
|
61
|
+
"8"
|
67
62
|
]
|
68
63
|
},
|
69
64
|
{
|
70
|
-
"operatingsystem": "
|
65
|
+
"operatingsystem": "Ubuntu",
|
71
66
|
"operatingsystemrelease": [
|
72
|
-
"
|
67
|
+
"16.04",
|
68
|
+
"18.04",
|
69
|
+
"20.04"
|
73
70
|
]
|
74
71
|
}
|
75
72
|
],
|
76
73
|
"requirements": [
|
77
74
|
{
|
78
75
|
"name": "puppet",
|
79
|
-
"version_requirement": ">=
|
76
|
+
"version_requirement": ">= 6.0.0 < 8.0.0"
|
80
77
|
}
|
81
78
|
],
|
82
79
|
"pdk-version": "1.13.0",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-pwsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: PowerShell code manager for ruby.
|
14
14
|
email:
|
@@ -18,11 +18,11 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- ".gitattributes"
|
21
|
+
- ".github/workflows/ci.yml"
|
21
22
|
- ".gitignore"
|
22
23
|
- ".pmtignore"
|
23
24
|
- ".rspec"
|
24
25
|
- ".rubocop.yml"
|
25
|
-
- ".travis.yml"
|
26
26
|
- CHANGELOG.md
|
27
27
|
- CODEOWNERS
|
28
28
|
- CONTRIBUTING.md
|
@@ -31,7 +31,6 @@ files:
|
|
31
31
|
- LICENSE.txt
|
32
32
|
- README.md
|
33
33
|
- Rakefile
|
34
|
-
- appveyor.yml
|
35
34
|
- design-comms.png
|
36
35
|
- lib/puppet/feature/pwshlib.rb
|
37
36
|
- lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb
|
@@ -43,6 +42,7 @@ files:
|
|
43
42
|
- lib/pwsh/version.rb
|
44
43
|
- lib/pwsh/windows_powershell.rb
|
45
44
|
- lib/ruby-pwsh.rb
|
45
|
+
- lib/templates/RubyPwsh.cs
|
46
46
|
- lib/templates/init.ps1
|
47
47
|
- metadata.json
|
48
48
|
- pwshlib.md
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: PowerShell code manager for ruby.
|
data/.travis.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
---
|
2
|
-
dist: bionic
|
3
|
-
language: ruby
|
4
|
-
cache: bundler
|
5
|
-
sudo: true
|
6
|
-
before_install:
|
7
|
-
- bundle -v
|
8
|
-
- rm -f Gemfile.lock
|
9
|
-
- gem update --system $RUBYGEMS_VERSION
|
10
|
-
- gem --version
|
11
|
-
- bundle -v
|
12
|
-
- wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
|
13
|
-
- sudo dpkg -i packages-microsoft-prod.deb
|
14
|
-
- sudo apt-get update
|
15
|
-
- sudo add-apt-repository universe
|
16
|
-
- sudo apt-get install -y powershell
|
17
|
-
- pwsh -v
|
18
|
-
script:
|
19
|
-
- 'bundle exec rake $CHECK'
|
20
|
-
rvm:
|
21
|
-
- 2.5.1
|
22
|
-
- 2.7
|
23
|
-
matrix:
|
24
|
-
include:
|
25
|
-
- env: CHECK="rubocop"
|
26
|
-
- env: CHECK='spec'
|
data/appveyor.yml
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
version: 1.1.x.{build}
|
3
|
-
branches:
|
4
|
-
only:
|
5
|
-
- main
|
6
|
-
- release
|
7
|
-
clone_depth: 10
|
8
|
-
environment:
|
9
|
-
matrix:
|
10
|
-
-
|
11
|
-
RUBY_VERSION: 25-x64
|
12
|
-
CHECK: rubocop
|
13
|
-
-
|
14
|
-
RUBY_VERSION: 25
|
15
|
-
CHECK: spec
|
16
|
-
COVERAGE: yes
|
17
|
-
matrix:
|
18
|
-
fast_finish: true
|
19
|
-
install:
|
20
|
-
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
21
|
-
- bundle install --jobs 4 --retry 2
|
22
|
-
- type Gemfile.lock
|
23
|
-
build: off
|
24
|
-
build_script:
|
25
|
-
- dir .
|
26
|
-
test_script:
|
27
|
-
- ruby -v
|
28
|
-
- gem -v
|
29
|
-
- bundle -v
|
30
|
-
- pwsh -v
|
31
|
-
- bundle exec rake %CHECK%
|
32
|
-
notifications:
|
33
|
-
- provider: Email
|
34
|
-
to:
|
35
|
-
- nobody@nowhere.com
|
36
|
-
on_build_success: false
|
37
|
-
on_build_failure: false
|
38
|
-
on_build_status_changed: false
|