fog-proxmox 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/fog/proxmox/compute/models/server.rb +6 -0
- data/lib/fog/proxmox/compute/models/snapshot.rb +1 -1
- data/lib/fog/proxmox/compute/models/task.rb +1 -1
- data/lib/fog/proxmox/core.rb +1 -0
- data/lib/fog/proxmox/helpers/disk_helper.rb +2 -2
- data/lib/fog/proxmox/helpers/nic_helper.rb +12 -5
- data/lib/fog/proxmox/version.rb +1 -1
- data/spec/compute_spec.rb +3 -2
- data/spec/fixtures/proxmox/compute/snapshots.yml +350 -1055
- data/spec/helpers/nic_helper_spec.rb +2 -2
- data/spec/proxmox_vcr.rb +1 -1
- metadata +34 -50
- data/.bundle/config +0 -4
- data/.github/CODE_OF_CONDUCT.md +0 -74
- data/.github/CONTRIBUTING.md +0 -20
- data/.github/CONTRIBUTORS.md +0 -9
- data/.github/FUNDING.yml +0 -12
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -17
- data/.github/ISSUE_TEMPLATE.md +0 -43
- data/.github/SUPPORT.md +0 -9
- data/.github/fogproxmox.png +0 -0
- data/.github/workflows/ci.yml +0 -64
- data/.github/workflows/release.yml +0 -38
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -14
- data/.rubocop_todo.yml +0 -255
- data/.ruby-gemset +0 -1
- data/.solargraph.yml +0 -10
- data/.vscode/launch.json +0 -96
- data/.vscode/settings.json +0 -45
- data/.vscode/tasks.json +0 -27
- data/Gemfile +0 -23
- data/Rakefile +0 -31
- data/bin/console +0 -27
- data/bin/setup +0 -27
- data/fog-proxmox.gemspec +0 -65
- data/tasks/audit.rake +0 -25
- data/tasks/lint.rake +0 -22
- data/tasks/test.rake +0 -65
@@ -38,7 +38,7 @@ describe Fog::Proxmox::NicHelper do
|
|
38
38
|
end
|
39
39
|
|
40
40
|
let(:lxc_nic) do
|
41
|
-
{ id: 'net0', name: 'eth0',
|
41
|
+
{ id: 'net0', name: 'eth0', hwaddr: '66:89:C5:59:AA:96', bridge: 'vmbr0', firewall: 1, link_down: 1, queues: 1,
|
42
42
|
rate: 1, tag: 1, ip: '192.168.56.100/31' }
|
43
43
|
end
|
44
44
|
|
@@ -123,7 +123,7 @@ describe Fog::Proxmox::NicHelper do
|
|
123
123
|
end
|
124
124
|
|
125
125
|
it 'returns lxc nic string' do
|
126
|
-
flat_lxc = { net0: 'eth0=66:89:C5:59:AA:96,bridge=vmbr0,firewall=1,link_down=1,queues=1,rate=1,tag=1,ip=192.168.56.100/31' }
|
126
|
+
flat_lxc = { net0: 'name=eth0,hwaddr=66:89:C5:59:AA:96,bridge=vmbr0,firewall=1,link_down=1,queues=1,rate=1,tag=1,ip=192.168.56.100/31' }
|
127
127
|
assert_equal flat_lxc, Fog::Proxmox::NicHelper.flatten(lxc_nic)
|
128
128
|
end
|
129
129
|
end
|
data/spec/proxmox_vcr.rb
CHANGED
@@ -55,7 +55,7 @@ class ProxmoxVCR
|
|
55
55
|
if use_recorded
|
56
56
|
config.cassette_library_dir = ENV['SPEC_PATH'] || @vcr_directory
|
57
57
|
config.default_cassette_options = { record: :none }
|
58
|
-
config.default_cassette_options[:match_requests_on] = %i[method
|
58
|
+
config.default_cassette_options[:match_requests_on] = %i[method path body]
|
59
59
|
else
|
60
60
|
config.cassette_library_dir = 'spec/debug'
|
61
61
|
config.default_cassette_options = { record: :all }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-proxmox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tristan Robert
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '1.39'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rubocop-factory_bot
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "<"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 2.26.0
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "<"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 2.26.0
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: rubocop-minitest
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +248,20 @@ dependencies:
|
|
234
248
|
- - "~>"
|
235
249
|
- !ruby/object:Gem::Version
|
236
250
|
version: '2.15'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: rubocop-rspec_rails
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "<"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 2.29.0
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "<"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 2.29.0
|
237
265
|
- !ruby/object:Gem::Dependency
|
238
266
|
name: ruby-debug-ide
|
239
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -318,63 +346,22 @@ dependencies:
|
|
318
346
|
- - "~>"
|
319
347
|
- !ruby/object:Gem::Version
|
320
348
|
version: '1.2'
|
321
|
-
- !ruby/object:Gem::Dependency
|
322
|
-
name: ipaddress
|
323
|
-
requirement: !ruby/object:Gem::Requirement
|
324
|
-
requirements:
|
325
|
-
- - "~>"
|
326
|
-
- !ruby/object:Gem::Version
|
327
|
-
version: '0.8'
|
328
|
-
type: :runtime
|
329
|
-
prerelease: false
|
330
|
-
version_requirements: !ruby/object:Gem::Requirement
|
331
|
-
requirements:
|
332
|
-
- - "~>"
|
333
|
-
- !ruby/object:Gem::Version
|
334
|
-
version: '0.8'
|
335
349
|
description: This library can be used as a module for `fog`.
|
336
350
|
email:
|
337
351
|
- tristan.robert.44@gmail.com
|
338
|
-
executables:
|
339
|
-
- console
|
340
|
-
- setup
|
352
|
+
executables: []
|
341
353
|
extensions: []
|
342
354
|
extra_rdoc_files: []
|
343
355
|
files:
|
344
|
-
- ".bundle/config"
|
345
|
-
- ".github/CODE_OF_CONDUCT.md"
|
346
|
-
- ".github/CONTRIBUTING.md"
|
347
|
-
- ".github/CONTRIBUTORS.md"
|
348
|
-
- ".github/FUNDING.yml"
|
349
|
-
- ".github/ISSUE_TEMPLATE.md"
|
350
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
351
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
352
|
-
- ".github/SUPPORT.md"
|
353
|
-
- ".github/fogproxmox.png"
|
354
|
-
- ".github/workflows/ci.yml"
|
355
|
-
- ".github/workflows/release.yml"
|
356
|
-
- ".gitignore"
|
357
|
-
- ".rubocop.yml"
|
358
|
-
- ".rubocop_todo.yml"
|
359
|
-
- ".ruby-gemset"
|
360
|
-
- ".solargraph.yml"
|
361
|
-
- ".vscode/launch.json"
|
362
|
-
- ".vscode/settings.json"
|
363
|
-
- ".vscode/tasks.json"
|
364
356
|
- CHANGELOG.md
|
365
|
-
- Gemfile
|
366
357
|
- LICENSE
|
367
358
|
- README.md
|
368
|
-
- Rakefile
|
369
|
-
- bin/console
|
370
|
-
- bin/setup
|
371
359
|
- docs/compute.md
|
372
360
|
- docs/connection_parameters.md
|
373
361
|
- docs/getting_started.md
|
374
362
|
- docs/identity.md
|
375
363
|
- examples/compute.rb
|
376
364
|
- examples/identity.rb
|
377
|
-
- fog-proxmox.gemspec
|
378
365
|
- lib/fog/proxmox.rb
|
379
366
|
- lib/fog/proxmox/attributes.rb
|
380
367
|
- lib/fog/proxmox/auth/token.rb
|
@@ -548,15 +535,12 @@ files:
|
|
548
535
|
- spec/network_spec.rb
|
549
536
|
- spec/proxmox_vcr.rb
|
550
537
|
- spec/spec_helper.rb
|
551
|
-
- tasks/audit.rake
|
552
|
-
- tasks/lint.rake
|
553
|
-
- tasks/test.rake
|
554
538
|
homepage: https://github.com/fog/fog-proxmox
|
555
539
|
licenses:
|
556
540
|
- GPL-3.0
|
557
541
|
metadata:
|
558
542
|
rubygems_mfa_required: 'true'
|
559
|
-
post_install_message:
|
543
|
+
post_install_message:
|
560
544
|
rdoc_options: []
|
561
545
|
require_paths:
|
562
546
|
- lib
|
@@ -572,7 +556,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
572
556
|
version: '0'
|
573
557
|
requirements: []
|
574
558
|
rubygems_version: 3.1.6
|
575
|
-
signing_key:
|
559
|
+
signing_key:
|
576
560
|
specification_version: 4
|
577
561
|
summary: Module for the 'Fog' gem to support Proxmox VE
|
578
562
|
test_files: []
|
data/.bundle/config
DELETED
data/.github/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team leader. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/.github/CONTRIBUTING.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# Getting Involved
|
2
|
-
|
3
|
-
New contributors are always welcome, when it doubt please ask questions. We strive to be an open and welcoming community. Please be nice to one another.
|
4
|
-
|
5
|
-
Please read the [code of conduct](CODE_OF_CONDUCT.md)
|
6
|
-
|
7
|
-
## Coding
|
8
|
-
|
9
|
-
* Pick a task:
|
10
|
-
* Offer feedback on open [pull requests](https://github.com/tristanrobert/fog-proxmox/pulls).
|
11
|
-
* Review open [issues](https://github.com/tristanrobert/fog-proxmox/issues) for things to help on.
|
12
|
-
* [Create an issue](https://github.com/tristanrobert/fog-proxmox/issues/new) to start a discussion on additions or features.
|
13
|
-
* Fork the project, add your changes and tests to cover them in a topic branch.
|
14
|
-
* Commit your changes and rebase against `fog/fog-proxmox` to ensure everything is up to date.
|
15
|
-
* [Submit a pull request](https://github.com/tristanrobert/fog-proxmox/compare/).
|
16
|
-
|
17
|
-
## Non-Coding
|
18
|
-
|
19
|
-
* Offer feedback on open [issues](https://github.com/tristanrobert/fog-proxmox/issues).
|
20
|
-
* [Donate](SUPPORT.md)
|
data/.github/CONTRIBUTORS.md
DELETED
data/.github/FUNDING.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# These are supported funding model platforms
|
2
|
-
|
3
|
-
github: [tristanrobert] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
4
|
-
patreon: # Replace with a single Patreon username
|
5
|
-
open_collective: # Replace with a single Open Collective username
|
6
|
-
ko_fi: # Replace with a single Ko-fi username
|
7
|
-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
9
|
-
liberapay: # Replace with a single Liberapay username
|
10
|
-
issuehunt: # Replace with a single IssueHunt username
|
11
|
-
otechie: # Replace with a single Otechie username
|
12
|
-
custom: ["https://paypal.me/TristanRobert"]# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
@@ -1,35 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
|
5
|
-
---
|
6
|
-
|
7
|
-
**Describe the bug**
|
8
|
-
A clear and concise description of what the bug is.
|
9
|
-
|
10
|
-
**To Reproduce**
|
11
|
-
Steps to reproduce the behavior:
|
12
|
-
1. Go to '...'
|
13
|
-
2. Click on '....'
|
14
|
-
3. Scroll down to '....'
|
15
|
-
4. See error
|
16
|
-
|
17
|
-
**Expected behavior**
|
18
|
-
A clear and concise description of what you expected to happen.
|
19
|
-
|
20
|
-
**Screenshots**
|
21
|
-
If applicable, add screenshots to help explain your problem.
|
22
|
-
|
23
|
-
**Desktop (please complete the following information):**
|
24
|
-
- OS: [e.g. iOS]
|
25
|
-
- Browser [e.g. chrome, safari]
|
26
|
-
- Version [e.g. 22]
|
27
|
-
|
28
|
-
**Smartphone (please complete the following information):**
|
29
|
-
- Device: [e.g. iPhone6]
|
30
|
-
- OS: [e.g. iOS8.1]
|
31
|
-
- Browser [e.g. stock browser, safari]
|
32
|
-
- Version [e.g. 22]
|
33
|
-
|
34
|
-
**Additional context**
|
35
|
-
Add any other context about the problem here.
|
@@ -1,17 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Feature request
|
3
|
-
about: Suggest an idea for this project
|
4
|
-
|
5
|
-
---
|
6
|
-
|
7
|
-
**Is your feature request related to a problem? Please describe.**
|
8
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
9
|
-
|
10
|
-
**Describe the solution you'd like**
|
11
|
-
A clear and concise description of what you want to happen.
|
12
|
-
|
13
|
-
**Describe alternatives you've considered**
|
14
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
15
|
-
|
16
|
-
**Additional context**
|
17
|
-
Add any other context or screenshots about the feature request here.
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# [TITLE ISSUE]
|
2
|
-
|
3
|
-
## Prerequisites
|
4
|
-
|
5
|
-
Please check (put an X between the brackets) the following items before posting any issue:
|
6
|
-
|
7
|
-
* [] Have you check that no [issue](https://github.com/tristanrobert/fog-proxmox/issues) already exists and could match yours?
|
8
|
-
|
9
|
-
* [] Have you read the [contributing code](https://github.com/tristanrobert/fog-proxmox/blob/develop/CONTRIBUTING.md)?
|
10
|
-
|
11
|
-
## Description
|
12
|
-
|
13
|
-
[Describe your issue]
|
14
|
-
|
15
|
-
## Environment
|
16
|
-
|
17
|
-
[Describe your environment: OS, ruby -v, ...]
|
18
|
-
|
19
|
-
## Version
|
20
|
-
|
21
|
-
[Give the milestone or the precise version of the gem used]
|
22
|
-
|
23
|
-
## Steps to reproduce
|
24
|
-
|
25
|
-
1. [First Step]
|
26
|
-
2. [Second Step]
|
27
|
-
3. [and so on...]
|
28
|
-
|
29
|
-
### Expected behavior
|
30
|
-
|
31
|
-
[What you expect to happen]
|
32
|
-
|
33
|
-
### Actual behavior
|
34
|
-
|
35
|
-
[What actually happens]
|
36
|
-
|
37
|
-
### Reproduces how often:
|
38
|
-
|
39
|
-
[What percentage of the time does it reproduce?]
|
40
|
-
|
41
|
-
## Additional Information
|
42
|
-
|
43
|
-
Any additional information, configuration or data that might be necessary to reproduce the issue.
|
data/.github/SUPPORT.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# Sponsor Fog::Proxmox development
|
2
|
-
|
3
|
-
Fog::Proxmox is an [GPL-3](LICENSE) licensed open source project and completely free to use.
|
4
|
-
|
5
|
-
However, the amount of effort needed to maintain and develop the project could be support by donations.
|
6
|
-
|
7
|
-
You can support Fog::Proxmox development via the following methods:
|
8
|
-
|
9
|
-
* [Donate by PayPal](https://paypal.me/TristanRobert)
|
data/.github/fogproxmox.png
DELETED
Binary file
|
data/.github/workflows/ci.yml
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
name: test
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master ]
|
6
|
-
pull_request:
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
lint:
|
10
|
-
runs-on: ubuntu-latest
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@v3
|
13
|
-
- uses: ruby/setup-ruby@v1
|
14
|
-
with:
|
15
|
-
ruby-version: 2.7
|
16
|
-
bundler-cache: true
|
17
|
-
- run: bundle install
|
18
|
-
- name: rubocop runs
|
19
|
-
run: bundle exec rake rubocop
|
20
|
-
test:
|
21
|
-
needs: [lint]
|
22
|
-
runs-on: ubuntu-latest
|
23
|
-
steps:
|
24
|
-
- uses: actions/checkout@v3
|
25
|
-
- name: Set up Ruby
|
26
|
-
uses: ruby/setup-ruby@v1
|
27
|
-
with:
|
28
|
-
ruby-version: '2.7'
|
29
|
-
bundler-cache: true
|
30
|
-
- name: Install dependencies
|
31
|
-
run: bundle install
|
32
|
-
- name: Run tests with simplecov
|
33
|
-
run: bundle exec rake spec
|
34
|
-
env:
|
35
|
-
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
36
|
-
- name: Run vulnerabilities check
|
37
|
-
run: bundle exec rake audit
|
38
|
-
- name: Upload simplecov results for coverage
|
39
|
-
uses: actions/upload-artifact@v1
|
40
|
-
with:
|
41
|
-
name: coverage
|
42
|
-
path: coverage/
|
43
|
-
|
44
|
-
coverage:
|
45
|
-
needs: [ lint, test ]
|
46
|
-
name: coverage
|
47
|
-
runs-on: ubuntu-latest
|
48
|
-
steps:
|
49
|
-
- uses: actions/checkout@v3
|
50
|
-
- name: Download tests result from test
|
51
|
-
uses: actions/download-artifact@v1
|
52
|
-
with:
|
53
|
-
name: coverage
|
54
|
-
- name: Publish code coverage to codeclimate
|
55
|
-
uses: paambaati/codeclimate-action@v3.2.0
|
56
|
-
env:
|
57
|
-
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
58
|
-
GIT_BRANCH: ${{ github.ref }}
|
59
|
-
GIT_COMMIT_SHA: ${{ github.sha }}
|
60
|
-
with:
|
61
|
-
workingDirectory: coverage
|
62
|
-
debug: true
|
63
|
-
coverageLocations: |
|
64
|
-
${{github.workspace}}/coverage/coverage.json:simplecov
|
@@ -1,38 +0,0 @@
|
|
1
|
-
name: release
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- master
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
release-please:
|
10
|
-
runs-on: ubuntu-latest
|
11
|
-
steps:
|
12
|
-
- uses: google-github-actions/release-please-action@v3
|
13
|
-
id: release
|
14
|
-
with:
|
15
|
-
release-type: ruby
|
16
|
-
package-name: fog-proxmox
|
17
|
-
bump-minor-pre-major: true
|
18
|
-
version-file: "lib/fog/proxmox/version.rb"
|
19
|
-
- uses: actions/checkout@v3
|
20
|
-
if: ${{ steps.release.outputs.release_created }}
|
21
|
-
- uses: ruby/setup-ruby@v1
|
22
|
-
with:
|
23
|
-
ruby-version: '2.7'
|
24
|
-
bundler-cache: true
|
25
|
-
if: ${{ steps.release.outputs.release_created }}
|
26
|
-
- run: bundle install
|
27
|
-
if: ${{ steps.release.outputs.release_created }}
|
28
|
-
- name: publish gem
|
29
|
-
run: |
|
30
|
-
mkdir -p $HOME/.gem
|
31
|
-
touch $HOME/.gem/credentials
|
32
|
-
chmod 0600 $HOME/.gem/credentials
|
33
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
34
|
-
gem build *.gemspec
|
35
|
-
gem push *.gem
|
36
|
-
env:
|
37
|
-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
38
|
-
if: ${{ steps.release.outputs.release_created }}
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED