fog-proxmox 0.14.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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +28 -4
  4. data/lib/fog/proxmox/attributes.rb +3 -2
  5. data/lib/fog/proxmox/auth/token/access_ticket.rb +68 -57
  6. data/lib/fog/proxmox/auth/token/user_token.rb +79 -66
  7. data/lib/fog/proxmox/auth/token.rb +66 -60
  8. data/lib/fog/proxmox/compute/models/disk.rb +6 -1
  9. data/lib/fog/proxmox/compute/models/disks.rb +1 -1
  10. data/lib/fog/proxmox/compute/models/interface.rb +1 -1
  11. data/lib/fog/proxmox/compute/models/interfaces.rb +1 -1
  12. data/lib/fog/proxmox/compute/models/node.rb +3 -5
  13. data/lib/fog/proxmox/compute/models/nodes.rb +1 -1
  14. data/lib/fog/proxmox/compute/models/server.rb +33 -16
  15. data/lib/fog/proxmox/compute/models/server_config.rb +9 -4
  16. data/lib/fog/proxmox/compute/models/servers.rb +5 -5
  17. data/lib/fog/proxmox/compute/models/snapshot.rb +1 -1
  18. data/lib/fog/proxmox/compute/models/snapshots.rb +1 -1
  19. data/lib/fog/proxmox/compute/models/storage.rb +3 -2
  20. data/lib/fog/proxmox/compute/models/storages.rb +2 -2
  21. data/lib/fog/proxmox/compute/models/task.rb +1 -1
  22. data/lib/fog/proxmox/compute/models/tasks.rb +1 -0
  23. data/lib/fog/proxmox/compute/models/volume.rb +2 -1
  24. data/lib/fog/proxmox/compute/models/volumes.rb +2 -2
  25. data/lib/fog/proxmox/compute/requests/get_server_config.rb +14 -14
  26. data/lib/fog/proxmox/compute/requests/get_server_status.rb +17 -17
  27. data/lib/fog/proxmox/compute/requests/log_task.rb +1 -1
  28. data/lib/fog/proxmox/core.rb +28 -24
  29. data/lib/fog/proxmox/errors.rb +2 -1
  30. data/lib/fog/proxmox/hash.rb +0 -2
  31. data/lib/fog/proxmox/helpers/controller_helper.rb +3 -4
  32. data/lib/fog/proxmox/helpers/cpu_helper.rb +13 -6
  33. data/lib/fog/proxmox/helpers/disk_helper.rb +18 -12
  34. data/lib/fog/proxmox/helpers/ip_helper.rb +21 -20
  35. data/lib/fog/proxmox/helpers/nic_helper.rb +23 -14
  36. data/lib/fog/proxmox/identity/models/domain.rb +7 -3
  37. data/lib/fog/proxmox/identity/models/domain_type.rb +0 -1
  38. data/lib/fog/proxmox/identity/models/domains.rb +1 -2
  39. data/lib/fog/proxmox/identity/models/group.rb +4 -2
  40. data/lib/fog/proxmox/identity/models/groups.rb +1 -1
  41. data/lib/fog/proxmox/identity/models/permission.rb +5 -4
  42. data/lib/fog/proxmox/identity/models/permissions.rb +3 -1
  43. data/lib/fog/proxmox/identity/models/pool.rb +4 -4
  44. data/lib/fog/proxmox/identity/models/pools.rb +4 -4
  45. data/lib/fog/proxmox/identity/models/role.rb +1 -1
  46. data/lib/fog/proxmox/identity/models/roles.rb +1 -1
  47. data/lib/fog/proxmox/identity/models/token.rb +4 -3
  48. data/lib/fog/proxmox/identity/models/token_info.rb +2 -2
  49. data/lib/fog/proxmox/identity/models/tokens.rb +9 -13
  50. data/lib/fog/proxmox/identity/models/user.rb +1 -2
  51. data/lib/fog/proxmox/identity/models/users.rb +1 -1
  52. data/lib/fog/proxmox/identity/requests/get_user.rb +1 -0
  53. data/lib/fog/proxmox/identity/requests/list_user_permissions.rb +1 -1
  54. data/lib/fog/proxmox/network/models/networks.rb +1 -1
  55. data/lib/fog/proxmox/network/models/node.rb +1 -0
  56. data/lib/fog/proxmox/network/models/nodes.rb +1 -1
  57. data/lib/fog/proxmox/string.rb +4 -3
  58. data/lib/fog/proxmox/version.rb +1 -1
  59. data/lib/fog/proxmox.rb +1 -3
  60. data/spec/compute_spec.rb +3 -2
  61. data/spec/fixtures/proxmox/compute/snapshots.yml +350 -1055
  62. data/spec/hash_spec.rb +2 -1
  63. data/spec/helpers/controller_helper_spec.rb +135 -123
  64. data/spec/helpers/cpu_helper_spec.rb +58 -53
  65. data/spec/helpers/disk_helper_spec.rb +104 -54
  66. data/spec/helpers/ip_helper_spec.rb +155 -138
  67. data/spec/helpers/nic_helper_spec.rb +29 -20
  68. data/spec/identity_spec.rb +86 -74
  69. data/spec/proxmox_vcr.rb +3 -3
  70. metadata +89 -90
  71. data/.bundle/config +0 -4
  72. data/.codeclimate.yml +0 -14
  73. data/.github/CODE_OF_CONDUCT.md +0 -74
  74. data/.github/CONTRIBUTING.md +0 -20
  75. data/.github/CONTRIBUTORS.md +0 -9
  76. data/.github/FUNDING.yml +0 -12
  77. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -35
  78. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -17
  79. data/.github/ISSUE_TEMPLATE.md +0 -43
  80. data/.github/SUPPORT.md +0 -9
  81. data/.github/fogproxmox.png +0 -0
  82. data/.github/workflows/ci.yml +0 -79
  83. data/.gitignore +0 -8
  84. data/.rubocop.yml +0 -13
  85. data/.ruby-gemset +0 -1
  86. data/.solargraph.yml +0 -10
  87. data/.vscode/launch.json +0 -96
  88. data/.vscode/settings.json +0 -45
  89. data/.vscode/tasks.json +0 -27
  90. data/Gemfile +0 -23
  91. data/Rakefile +0 -58
  92. data/bin/console +0 -29
  93. data/bin/setup +0 -29
  94. data/fog-proxmox.gemspec +0 -63
@@ -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/
@@ -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)
@@ -1,9 +0,0 @@
1
- # Developers
2
-
3
- * Tristan Robert <tristan.robert.44 at gmail.com>
4
-
5
- # Donators
6
-
7
- Thanks to all generous donators that support the developers effort:
8
-
9
- * [Tobias Köck](https://github.com/tkoeck)
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.
@@ -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)
Binary file
@@ -1,79 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
8
- release:
9
- types: [created]
10
-
11
- jobs:
12
- test:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - uses: actions/checkout@v2
16
- - name: Set up Ruby
17
- uses: ruby/setup-ruby@v1
18
- with:
19
- ruby-version: 2.6
20
- - name: Install dependencies
21
- run: bundle install
22
- - name: Run tests
23
- run: bundle exec rake test spec audit
24
- - name: Upload results for coverage
25
- uses: actions/upload-artifact@v1
26
- with:
27
- name: coverage
28
- path: coverage/
29
-
30
- coverage:
31
- needs: [ test ]
32
- name: coverage
33
- runs-on: ubuntu-latest
34
- steps:
35
- - uses: actions/checkout@v2
36
- - name: Download tests result from test
37
- uses: actions/download-artifact@v1
38
- with:
39
- name: coverage
40
- - name: Install Code Climate test-reporter
41
- run: |
42
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
43
- chmod +x ./cc-test-reporter
44
- - name: Format code coverage
45
- env:
46
- GIT_BRANCH: ${{ github.ref }}
47
- GIT_COMMIT_SHA: ${{ github.sha }}
48
- run: |
49
- export GIT_COMMITTED_AT="$(date +%s)"
50
- ./cc-test-reporter format-coverage -d -t simplecov -o coverage/codeclimate.json coverage/.resultset.json
51
- - name: Publish code coverage
52
- env:
53
- GIT_BRANCH: ${{ github.ref }}
54
- GIT_COMMIT_SHA: ${{ github.sha }}
55
- run: |
56
- export GIT_COMMITTED_AT="$(date +%s)"
57
- ./cc-test-reporter upload-coverage -d -r ${{secrets.CC_TEST_REPORTER_ID}}
58
-
59
- publish:
60
- needs: [ test ]
61
- name: publish
62
- runs-on: ubuntu-latest
63
- if: contains(github.ref, '/tags/v')
64
- steps:
65
- - uses: actions/checkout@v2
66
- - name: Set up Ruby 2.6
67
- uses: actions/setup-ruby@v1
68
- with:
69
- version: 2.6.x
70
- - name: Publish to RubyGems
71
- env:
72
- GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
73
- run: |
74
- mkdir -p $HOME/.gem
75
- touch $HOME/.gem/credentials
76
- chmod 0600 $HOME/.gem/credentials
77
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
78
- gem build *.gemspec
79
- gem push *.gem
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- vendor/
2
- bin/
3
- pkg/
4
- spec/debug/
5
- coverage/
6
- TAGS
7
- Gemfile.lock
8
- *.gem
data/.rubocop.yml DELETED
@@ -1,13 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.4
3
- Include:
4
- - '**/Rakefile'
5
- Exclude:
6
- - 'bin/**/*'
7
- - 'vendor/**/*'
8
- - 'coverage/**/*'
9
- - '.bundle/**/*'
10
- - '.vscode/**/*'
11
- - '**/*.gemspec'
12
- - 'Gemfile'
13
- - 'spec/**/*'
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- fog-proxmox
data/.solargraph.yml DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- include:
3
- - "**/*.rb"
4
- exclude:
5
- - spec/**/*
6
- - test/**/*
7
- domains: []
8
- required: []
9
- plugins:
10
- -runtime
data/.vscode/launch.json DELETED
@@ -1,96 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
-
5
- {
6
- "name": "Debug Local File",
7
- "type": "Ruby",
8
- "request": "launch",
9
- "cwd": "${workspaceRoot}",
10
- "program": "${workspaceRoot}/main.rb",
11
- "useBundler": true,
12
- },
13
- {
14
- "name": "Listen for rdebug-ide",
15
- "type": "Ruby",
16
- "request": "attach",
17
- "cwd": "${workspaceRoot}",
18
- "remoteHost": "127.0.0.1",
19
- "remotePort": "1234",
20
- "remoteWorkspaceRoot": "${workspaceRoot}"
21
- },
22
- {
23
- "name": "RSpec - all",
24
- "type": "Ruby",
25
- "request": "launch",
26
- "cwd": "${workspaceRoot}",
27
- "program": "${workspaceRoot}/bin/rspec",
28
- "useBundler": true,
29
- "showDebuggerOutput": true,
30
- "env": {
31
- "DISABLE_PROXY": true,
32
- "SSL_VERIFY_PEER": false,
33
- "USE_VCR": false,
34
- "PVE_URL": "https://192.168.56.101:8006/api2/json",
35
- "PVE_USERNAME": "root@pam",
36
- "PVE_PASSWORD": ""
37
- },
38
- "args": [
39
- "-I",
40
- "${workspaceRoot}"
41
- ]
42
- },
43
- {
44
- "name": "RSpec - active spec file only",
45
- "type": "Ruby",
46
- "request": "launch",
47
- "cwd": "${workspaceRoot}",
48
- "program": "${workspaceRoot}/bin/rspec",
49
- "useBundler": true,
50
- "showDebuggerOutput": true,
51
- "env": {
52
- "DISABLE_PROXY": true,
53
- "SSL_VERIFY_PEER": false,
54
- "USE_VCR": false,
55
- "PVE_URL": "https://192.168.56.101:8006/api2/json",
56
- "PVE_USERNAME": "root@pam",
57
- "PVE_PASSWORD": ""
58
- },
59
- "args": [
60
- "-I",
61
- "${workspaceRoot}",
62
- "${file}"
63
- ]
64
- },
65
- {
66
- "name": "bundle exec rake spec - all",
67
- "type": "Ruby",
68
- "request": "launch",
69
- "cwd": "${workspaceRoot}",
70
- "program": "${workspaceRoot}/bin/rake",
71
- "useBundler": true,
72
- "showDebuggerOutput": true,
73
- "env": {
74
- "DISABLE_PROXY": true,
75
- "SSL_VERIFY_PEER": false,
76
- "USE_VCR": false,
77
- "PVE_URL": "https://192.168.56.101:8006/api2/json",
78
- "PVE_USERNAME": "root@pam",
79
- "PVE_PASSWORD": ""
80
- },
81
- "args": [
82
- "spec",
83
- "-I",
84
- "${workspaceRoot}",
85
- "${file}"
86
- ]
87
- },
88
- {
89
- "name": "Cucumber",
90
- "type": "Ruby",
91
- "request": "launch",
92
- "cwd": "${workspaceRoot}",
93
- "program": "${workspaceRoot}/bin/cucumber"
94
- }
95
- ]
96
- }
@@ -1,45 +0,0 @@
1
- // Placez vos paramètres dans ce fichier pour remplacer les paramètres par défaut et les paramètres utilisateur.
2
- {
3
- "ruby.pathToBundler": "~/.asdf/shims/bundle",
4
- "ruby.useBundler": true,
5
- "solargraph.commandPath": "~/.asdf/shims/solargraph",
6
- "solargraph.bundlerPath": "~/.asdf/shims/bundle",
7
- "workbench.startupEditor": "newUntitledFile",
8
- "workbench.iconTheme": "vscode-icons",
9
- "git.autofetch": true,
10
- "git.confirmSync": false,
11
- "workbench.colorTheme": "Visual Studio Dark",
12
- "solargraph.useBundler": true,
13
- "ruby.lint": {
14
- "reek": true,
15
- "rubocop": {
16
- "lint": true, //enable all lint cops.
17
- "rails": true //Run extra rails cops
18
- },
19
- "ruby": true, //Runs ruby -wc
20
- "fasterer": true,
21
- "debride": true,
22
- "ruby-lint": false
23
- },
24
- "ruby.locate": {
25
- "include": "**/*.erb,**/*.rb,**/vendor/*.*",
26
- "exclude": "{**/@(test|spec|tmp|.*),**/@(test|spec|tmp|.*)/**,**/*_spec.rb}"
27
- },
28
- "ruby.interpreter.commandPath": "~/.asdf/shims/ruby",
29
- "ruby.pathToBundler": "~/.asdf/shims/bundle",
30
- "ruby.useBundler": true,
31
- "solargraph.commandPath": "~/.asdf/shims/solargraph",
32
- "solargraph.bundlerPath": "~/.asdf/shims/bundle",
33
- "gitlens.advanced.messages": {
34
- "suppressCommitHasNoPreviousCommitWarning": false,
35
- "suppressCommitNotFoundWarning": false,
36
- "suppressFileNotUnderSourceControlWarning": false,
37
- "suppressGitVersionWarning": false,
38
- "suppressLineUncommittedWarning": false,
39
- "suppressNoRepositoryWarning": false,
40
- "suppressResultsExplorerNotice": false,
41
- "suppressShowKeyBindingsNotice": true
42
- },
43
- "explorer.confirmDragAndDrop": false,
44
- "ruby.format": "rubocop"
45
- }
data/.vscode/tasks.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- // See https://go.microsoft.com/fwlink/?LinkId=733558
3
- // for the documentation about the tasks.json format
4
- "version": "2.0.0",
5
- "command": "bundler",
6
- "args": ["exec"],
7
- "echoCommand": true,
8
- "tasks": [
9
- {
10
- "taskName": "echo",
11
- "type": "shell",
12
- "command": "echo Hello"
13
- },
14
- {
15
- "taskName": "Run Script",
16
- "args": ["ruby", "${file}"]
17
- },
18
- {
19
- "taskName": "Exec",
20
- "args": ["ruby", "main.rb"]
21
- },
22
- {
23
- "taskName": "Test",
24
- "args": ["rspec"]
25
- }
26
- ]
27
- }
data/Gemfile DELETED
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2018 Tristan Robert
4
-
5
- # This file is part of Fog::Proxmox.
6
-
7
- # Fog::Proxmox is free software: you can redistribute it and/or modify
8
- # it under the terms of the GNU General Public License as published by
9
- # the Free Software Foundation, either version 3 of the License, or
10
- # (at your option) any later version.
11
-
12
- # Fog::Proxmox is distributed in the hope that it will be useful,
13
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- # GNU General Public License for more details.
16
-
17
- # You should have received a copy of the GNU General Public License
18
- # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
-
20
- source 'https://rubygems.org'
21
-
22
- # Specify your gem's dependencies in fog-proxmox.gemspec
23
- gemspec
data/Rakefile DELETED
@@ -1,58 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2018 Tristan Robert
4
-
5
- # This file is part of Fog::Proxmox.
6
-
7
- # Fog::Proxmox is free software: you can redistribute it and/or modify
8
- # it under the terms of the GNU General Public License as published by
9
- # the Free Software Foundation, either version 3 of the License, or
10
- # (at your option) any later version.
11
-
12
- # Fog::Proxmox is distributed in the hope that it will be useful,
13
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- # GNU General Public License for more details.
16
-
17
- # You should have received a copy of the GNU General Public License
18
- # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
19
-
20
- require 'bundler/gem_tasks'
21
- require 'rubocop/rake_task'
22
- require 'rake/testtask'
23
- require 'bundler/audit/task'
24
-
25
- Bundler::Audit::Task.new
26
- RuboCop::RakeTask.new
27
-
28
- task default: :test
29
-
30
- desc 'Run fog-proxmox unit tests with Minitest'
31
- task :test do
32
- mock = ENV['FOG_MOCK'] || 'true'
33
- sh("export FOG_MOCK=#{mock} && bundle exec rake tests:unit")
34
- end
35
-
36
- desc 'Run fog-proxmox spec/ tests (VCR)'
37
- task spec: 'tests:spec'
38
-
39
- desc 'Run audit vulnerabilities'
40
- task audit: 'bundle:audit'
41
-
42
- namespace :tests do
43
- desc 'Run fog-proxmox test/'
44
- Rake::TestTask.new do |t|
45
- t.name = 'unit'
46
- t.libs.push %w[lib test]
47
- t.test_files = FileList['test/**/*.rb']
48
- t.verbose = true
49
- end
50
-
51
- desc 'Run fog-proxmox spec/'
52
- Rake::TestTask.new do |t|
53
- t.name = 'spec'
54
- t.libs.push %w[lib spec]
55
- t.pattern = 'spec/**/*_spec.rb'
56
- t.verbose = true
57
- end
58
- end
data/bin/console DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'console' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("fog-proxmox", "console")
data/bin/setup DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'setup' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("fog-proxmox", "setup")