vagrant-vsphere 1.14.0 → 1.15.0
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/.bumpversion.cfg +1 -2
- data/.github/workflows/main.yml +30 -0
- data/.rubocop.yml +6 -17
- data/.rubocop_todo.yml +343 -33
- data/.ruby-version +1 -1
- data/CHANGELOG.md +12 -6
- data/CODE_OF_CONDUCT.md +35 -0
- data/DEVELOPMENT.md +1 -9
- data/Gemfile +2 -1
- data/{LICENSE.txt → LICENSE} +1 -1
- data/README.md +49 -7
- data/Rakefile +2 -4
- data/lib/vSphere/action/clone.rb +19 -20
- data/lib/vSphere/action/close_vsphere.rb +0 -2
- data/lib/vSphere/action/connect_vsphere.rb +0 -2
- data/lib/vSphere/action/destroy.rb +0 -3
- data/lib/vSphere/action/get_ssh_info.rb +2 -7
- data/lib/vSphere/action/get_state.rb +1 -3
- data/lib/vSphere/action/is_created.rb +0 -2
- data/lib/vSphere/action/is_running.rb +0 -2
- data/lib/vSphere/action/is_suspended.rb +0 -2
- data/lib/vSphere/action/message_already_created.rb +0 -2
- data/lib/vSphere/action/message_not_created.rb +0 -2
- data/lib/vSphere/action/message_not_running.rb +0 -2
- data/lib/vSphere/action/message_not_suspended.rb +0 -2
- data/lib/vSphere/action/power_off.rb +0 -2
- data/lib/vSphere/action/power_on.rb +0 -2
- data/lib/vSphere/action/resume.rb +0 -2
- data/lib/vSphere/action/snapshot_delete.rb +4 -8
- data/lib/vSphere/action/snapshot_list.rb +0 -2
- data/lib/vSphere/action/snapshot_restore.rb +2 -5
- data/lib/vSphere/action/snapshot_save.rb +4 -8
- data/lib/vSphere/action/suspend.rb +0 -2
- data/lib/vSphere/action/wait_for_ip_address.rb +0 -2
- data/lib/vSphere/action.rb +6 -8
- data/lib/vSphere/cap/public_address.rb +0 -3
- data/lib/vSphere/cap/snapshot_list.rb +0 -2
- data/lib/vSphere/config.rb +31 -4
- data/lib/vSphere/errors.rb +0 -2
- data/lib/vSphere/plugin.rb +5 -5
- data/lib/vSphere/provider.rb +0 -3
- data/lib/vSphere/util/vim_helpers.rb +19 -26
- data/lib/vSphere/util/vm_helpers.rb +6 -9
- data/lib/vSphere/version.rb +1 -3
- data/lib/vagrant-vsphere.rb +2 -4
- data/spec/action_spec.rb +0 -2
- data/spec/clone_spec.rb +6 -8
- data/spec/connect_vsphere_spec.rb +0 -2
- data/spec/destroy_spec.rb +0 -2
- data/spec/get_ssh_info_spec.rb +14 -6
- data/spec/get_state_spec.rb +0 -2
- data/spec/is_created_spec.rb +0 -2
- data/spec/power_off_spec.rb +0 -2
- data/spec/spec_helper.rb +35 -36
- data/vSphere.gemspec +5 -4
- metadata +20 -22
- data/.travis.yml +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 197996942d3b78d2e6d6030b0ce4940fa194918a763ba89ba0ee20228d62e415
|
|
4
|
+
data.tar.gz: a2e8ee3839ce9cdeb02ef1efa03d42b021d04cf96512c16b6c92cae1d99d2de4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3c0aa8924d42f1399fc83e9452678109d6f731c78587811fceb2146f7f716b5f4374c496bb6456ca6c6b5fdd267de71d8a9ff74e6394dbece31a8212334585c
|
|
7
|
+
data.tar.gz: d285ffd4d9e843e69d62267f205f8b50a926489b20dcabccf5ce4c31ee9ef3012862535f5ea4fef22efce9ff15ef4bf725371610cc189ef75c82832c6b4d7a96
|
data/.bumpversion.cfg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[bumpversion]
|
|
2
|
-
current_version = 1.
|
|
2
|
+
current_version = 1.15.0
|
|
3
3
|
tag = true
|
|
4
4
|
commit = true
|
|
5
5
|
|
|
@@ -8,4 +8,3 @@ commit = true
|
|
|
8
8
|
[bumpversion:file:README.md]
|
|
9
9
|
parse = version: (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
|
|
10
10
|
serialize = version: {major}.{minor}.{patch}
|
|
11
|
-
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: GitHub Issue to JIRA
|
|
2
|
+
on:
|
|
3
|
+
issues:
|
|
4
|
+
types:
|
|
5
|
+
- opened
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
name: Jira issue
|
|
11
|
+
steps:
|
|
12
|
+
- name: Login
|
|
13
|
+
uses: atlassian/gajira-login@v3
|
|
14
|
+
env:
|
|
15
|
+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
|
|
16
|
+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
|
|
17
|
+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
|
|
18
|
+
|
|
19
|
+
- name: Create
|
|
20
|
+
id: create
|
|
21
|
+
uses: atlassian/gajira-create@v3
|
|
22
|
+
with:
|
|
23
|
+
project: VGTVSPHERE
|
|
24
|
+
issuetype: Story
|
|
25
|
+
# summary: "GitHub Issue: ${{ github.event_name }}"
|
|
26
|
+
summary: "GitHub Issue: ${{ github.event.issue.title }}"
|
|
27
|
+
description: "${{ github.even.bodyText }}.\n\nCreated by ${{ github.actor }}"
|
|
28
|
+
|
|
29
|
+
- name: Log created issue
|
|
30
|
+
run: echo "Issue ${{ steps.create.outputs.issue }} was created"
|
data/.rubocop.yml
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AllCops:
|
|
4
|
+
NewCops: enable
|
|
5
|
+
SuggestExtensions: false
|
|
6
|
+
|
|
7
|
+
Naming/FileName:
|
|
4
8
|
Exclude:
|
|
5
9
|
- 'lib/vagrant-vsphere.rb'
|
|
6
10
|
|
|
@@ -21,7 +25,7 @@ Metrics/ClassLength:
|
|
|
21
25
|
Metrics/CyclomaticComplexity:
|
|
22
26
|
Enabled: false
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
Layout/LineLength:
|
|
25
29
|
Enabled: false
|
|
26
30
|
|
|
27
31
|
Metrics/MethodLength:
|
|
@@ -32,18 +36,3 @@ Metrics/ModuleLength:
|
|
|
32
36
|
|
|
33
37
|
Metrics/PerceivedComplexity:
|
|
34
38
|
Enabled: false
|
|
35
|
-
|
|
36
|
-
# Disabled these cops upgrading rubocop to 1.25.0
|
|
37
|
-
# TODO:Correct the issues found by these cops someday
|
|
38
|
-
Lint/MissingSuper:
|
|
39
|
-
Enabled: false
|
|
40
|
-
|
|
41
|
-
Metrics/BlockLength:
|
|
42
|
-
Enabled: false
|
|
43
|
-
|
|
44
|
-
Naming:
|
|
45
|
-
Enabled: false
|
|
46
|
-
|
|
47
|
-
# TODO: Add required ruby version to gemspec
|
|
48
|
-
Gemspec/RequiredRubyVersion:
|
|
49
|
-
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,60 +1,370 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
#
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2026-08-05 22:25:30 UTC using RuboCop version 1.89.0.
|
|
3
4
|
# The point is for the user to remove these configuration records
|
|
4
5
|
# one by one as the offenses are removed from the code base.
|
|
5
6
|
# Note that changes in the inspected code, or installation of new
|
|
6
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
7
8
|
|
|
9
|
+
# Offense count: 1
|
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
+
Gemspec/DeprecatedAttributeAssignment:
|
|
12
|
+
Exclude:
|
|
13
|
+
- 'vSphere.gemspec'
|
|
14
|
+
|
|
15
|
+
# Offense count: 5
|
|
16
|
+
# Configuration parameters: EnforcedStyle, AllowedGems.
|
|
17
|
+
# SupportedStyles: Gemfile, gems.rb, gemspec
|
|
18
|
+
Gemspec/DevelopmentDependencies:
|
|
19
|
+
Exclude:
|
|
20
|
+
- 'vSphere.gemspec'
|
|
21
|
+
|
|
22
|
+
# Offense count: 1
|
|
23
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
24
|
+
Gemspec/RequireMFA:
|
|
25
|
+
Exclude:
|
|
26
|
+
- 'vSphere.gemspec'
|
|
27
|
+
|
|
28
|
+
# Offense count: 1
|
|
29
|
+
Gemspec/RequiredRubyVersion:
|
|
30
|
+
Exclude:
|
|
31
|
+
- 'vSphere.gemspec'
|
|
32
|
+
|
|
33
|
+
# Offense count: 10
|
|
34
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
35
|
+
Layout/EmptyLineAfterGuardClause:
|
|
36
|
+
Exclude:
|
|
37
|
+
- 'lib/vSphere/action/clone.rb'
|
|
38
|
+
- 'lib/vSphere/action/destroy.rb'
|
|
39
|
+
- 'lib/vSphere/action/get_ssh_info.rb'
|
|
40
|
+
- 'lib/vSphere/cap/public_address.rb'
|
|
41
|
+
- 'lib/vSphere/provider.rb'
|
|
42
|
+
- 'lib/vSphere/util/vim_helpers.rb'
|
|
43
|
+
|
|
44
|
+
# Offense count: 1
|
|
45
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
46
|
+
# Configuration parameters: EnforcedStyle.
|
|
47
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
|
48
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
49
|
+
Exclude:
|
|
50
|
+
- 'spec/get_ssh_info_spec.rb'
|
|
51
|
+
|
|
52
|
+
# Offense count: 1
|
|
53
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
54
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
55
|
+
Layout/ExtraSpacing:
|
|
56
|
+
Exclude:
|
|
57
|
+
- 'lib/vSphere/action/get_state.rb'
|
|
58
|
+
|
|
59
|
+
# Offense count: 6
|
|
60
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
61
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
62
|
+
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
63
|
+
Layout/FirstArgumentIndentation:
|
|
64
|
+
Exclude:
|
|
65
|
+
- 'lib/vSphere/action/snapshot_delete.rb'
|
|
66
|
+
- 'lib/vSphere/action/snapshot_restore.rb'
|
|
67
|
+
- 'lib/vSphere/action/snapshot_save.rb'
|
|
68
|
+
- 'spec/spec_helper.rb'
|
|
69
|
+
|
|
70
|
+
# Offense count: 2
|
|
71
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
72
|
+
# Configuration parameters: IndentationWidth.
|
|
73
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
74
|
+
Layout/FirstArrayElementIndentation:
|
|
75
|
+
EnforcedStyle: consistent
|
|
76
|
+
|
|
77
|
+
# Offense count: 1
|
|
78
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
79
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
80
|
+
# SupportedHashRocketStyles: key, separator, table
|
|
81
|
+
# SupportedColonStyles: key, separator, table
|
|
82
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
83
|
+
Layout/HashAlignment:
|
|
84
|
+
Exclude:
|
|
85
|
+
- 'spec/clone_spec.rb'
|
|
86
|
+
|
|
87
|
+
# Offense count: 2
|
|
88
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
89
|
+
# Configuration parameters: EnforcedStyle.
|
|
90
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
91
|
+
Layout/MultilineArrayBraceLayout:
|
|
92
|
+
Exclude:
|
|
93
|
+
- 'spec/get_ssh_info_spec.rb'
|
|
94
|
+
|
|
95
|
+
# Offense count: 1
|
|
96
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
97
|
+
# Configuration parameters: EnforcedStyle.
|
|
98
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
99
|
+
Layout/MultilineHashBraceLayout:
|
|
100
|
+
Exclude:
|
|
101
|
+
- 'spec/clone_spec.rb'
|
|
102
|
+
|
|
103
|
+
# Offense count: 16
|
|
104
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
105
|
+
# Configuration parameters: EnforcedStyle.
|
|
106
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
107
|
+
Layout/MultilineMethodCallBraceLayout:
|
|
108
|
+
Exclude:
|
|
109
|
+
- 'lib/vSphere/action/snapshot_delete.rb'
|
|
110
|
+
- 'lib/vSphere/action/snapshot_restore.rb'
|
|
111
|
+
- 'lib/vSphere/action/snapshot_save.rb'
|
|
112
|
+
- 'lib/vSphere/util/vm_helpers.rb'
|
|
113
|
+
- 'spec/clone_spec.rb'
|
|
114
|
+
- 'spec/get_ssh_info_spec.rb'
|
|
115
|
+
- 'spec/spec_helper.rb'
|
|
116
|
+
|
|
117
|
+
# Offense count: 1
|
|
118
|
+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
119
|
+
Lint/DuplicateBranch:
|
|
120
|
+
Exclude:
|
|
121
|
+
- 'lib/vSphere/util/vim_helpers.rb'
|
|
122
|
+
|
|
123
|
+
# Offense count: 2
|
|
124
|
+
# Configuration parameters: AllowedParentClasses.
|
|
125
|
+
Lint/MissingSuper:
|
|
126
|
+
Exclude:
|
|
127
|
+
- 'lib/vSphere/config.rb'
|
|
128
|
+
- 'lib/vSphere/provider.rb'
|
|
129
|
+
|
|
8
130
|
# Offense count: 1
|
|
9
131
|
Lint/NonLocalExitFromIterator:
|
|
10
|
-
|
|
132
|
+
Exclude:
|
|
133
|
+
- 'lib/vSphere/util/vim_helpers.rb'
|
|
11
134
|
|
|
12
|
-
# Offense count:
|
|
13
|
-
|
|
14
|
-
|
|
135
|
+
# Offense count: 6
|
|
136
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
137
|
+
# Configuration parameters: EnforcedStyle.
|
|
138
|
+
# SupportedStyles: strict, consistent
|
|
139
|
+
Lint/SymbolConversion:
|
|
140
|
+
Exclude:
|
|
141
|
+
- 'lib/vSphere/action/clone.rb'
|
|
142
|
+
- 'lib/vSphere/action/get_ssh_info.rb'
|
|
143
|
+
|
|
144
|
+
# Offense count: 9
|
|
145
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
146
|
+
# AllowedMethods: refine
|
|
147
|
+
Metrics/BlockLength:
|
|
148
|
+
Max: 168
|
|
149
|
+
|
|
150
|
+
# Offense count: 6
|
|
151
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
152
|
+
Migration/DepartmentName:
|
|
153
|
+
Exclude:
|
|
154
|
+
- 'lib/vSphere/action.rb'
|
|
155
|
+
- 'lib/vSphere/plugin.rb'
|
|
156
|
+
|
|
157
|
+
# Offense count: 1
|
|
158
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
159
|
+
Naming/BlockParameterName:
|
|
160
|
+
Exclude:
|
|
161
|
+
- 'spec/spec_helper.rb'
|
|
162
|
+
|
|
163
|
+
# Offense count: 1
|
|
164
|
+
# Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
165
|
+
# SupportedStyles: snake_case, camelCase
|
|
166
|
+
# ForbiddenIdentifiers: __id__, __send__
|
|
167
|
+
Naming/MethodName:
|
|
168
|
+
Exclude:
|
|
169
|
+
- 'lib/vSphere/config.rb'
|
|
170
|
+
|
|
171
|
+
# Offense count: 20
|
|
172
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
173
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
174
|
+
Naming/MethodParameterName:
|
|
175
|
+
Exclude:
|
|
176
|
+
- 'lib/vSphere/action/clone.rb'
|
|
177
|
+
- 'lib/vSphere/action/get_ssh_info.rb'
|
|
178
|
+
- 'lib/vSphere/util/vim_helpers.rb'
|
|
179
|
+
- 'lib/vSphere/util/vm_helpers.rb'
|
|
15
180
|
|
|
16
181
|
# Offense count: 3
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
|
|
182
|
+
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
183
|
+
# SupportedStyles: snake_case, camelCase
|
|
184
|
+
Naming/VariableName:
|
|
185
|
+
Exclude:
|
|
186
|
+
- 'lib/vSphere/action/clone.rb'
|
|
187
|
+
- 'spec/spec_helper.rb'
|
|
188
|
+
|
|
189
|
+
# Offense count: 28
|
|
190
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
191
|
+
# Configuration parameters: EnforcedStyle.
|
|
192
|
+
# SupportedStyles: separated, grouped
|
|
193
|
+
Style/AccessorGrouping:
|
|
194
|
+
Exclude:
|
|
195
|
+
- 'lib/vSphere/config.rb'
|
|
21
196
|
|
|
22
197
|
# Offense count: 1
|
|
23
|
-
#
|
|
24
|
-
|
|
198
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
199
|
+
# Configuration parameters: MinBranchesCount.
|
|
200
|
+
Style/CaseLikeIf:
|
|
201
|
+
Exclude:
|
|
202
|
+
- 'lib/vSphere/util/vim_helpers.rb'
|
|
203
|
+
|
|
204
|
+
# Offense count: 1
|
|
205
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
206
|
+
Style/CommentedKeyword:
|
|
207
|
+
Exclude:
|
|
208
|
+
- 'lib/vSphere/action.rb'
|
|
209
|
+
|
|
210
|
+
# Offense count: 1
|
|
211
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
212
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
213
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
214
|
+
Style/ConditionalAssignment:
|
|
215
|
+
Exclude:
|
|
216
|
+
- 'lib/vSphere/util/vm_helpers.rb'
|
|
217
|
+
|
|
218
|
+
# Offense count: 32
|
|
219
|
+
# Configuration parameters: AllowedConstants.
|
|
220
|
+
Style/Documentation:
|
|
25
221
|
Enabled: false
|
|
26
222
|
|
|
27
223
|
# Offense count: 1
|
|
28
|
-
#
|
|
29
|
-
|
|
30
|
-
|
|
224
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
225
|
+
Style/EmptyLiteral:
|
|
226
|
+
Exclude:
|
|
227
|
+
- 'spec/clone_spec.rb'
|
|
228
|
+
|
|
229
|
+
# Offense count: 4
|
|
230
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
231
|
+
Style/ExpandPathArguments:
|
|
232
|
+
Exclude:
|
|
233
|
+
- 'Rakefile'
|
|
234
|
+
- 'lib/vSphere/action.rb'
|
|
235
|
+
- 'lib/vagrant-vsphere.rb'
|
|
236
|
+
|
|
237
|
+
# Offense count: 43
|
|
238
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
239
|
+
# Configuration parameters: EnforcedStyle.
|
|
240
|
+
# SupportedStyles: always, always_true, never
|
|
241
|
+
Style/FrozenStringLiteralComment:
|
|
31
242
|
Enabled: false
|
|
32
243
|
|
|
33
|
-
# Offense count:
|
|
34
|
-
#
|
|
35
|
-
# Configuration parameters: EnforcedStyle,
|
|
244
|
+
# Offense count: 7
|
|
245
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
246
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
247
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
248
|
+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
|
36
249
|
Style/HashSyntax:
|
|
37
|
-
|
|
250
|
+
Exclude:
|
|
251
|
+
- 'lib/vSphere/action/clone.rb'
|
|
252
|
+
- 'spec/spec_helper.rb'
|
|
253
|
+
|
|
254
|
+
# Offense count: 3
|
|
255
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
256
|
+
Style/IfUnlessModifier:
|
|
257
|
+
Exclude:
|
|
258
|
+
- 'lib/vSphere/action/clone.rb'
|
|
259
|
+
- 'lib/vSphere/config.rb'
|
|
260
|
+
- 'lib/vSphere/plugin.rb'
|
|
261
|
+
|
|
262
|
+
# Offense count: 11
|
|
263
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
264
|
+
# Configuration parameters: EnforcedStyle, Recursive.
|
|
265
|
+
# SupportedStyles: literals, strict
|
|
266
|
+
Style/MutableConstant:
|
|
267
|
+
Exclude:
|
|
268
|
+
- 'lib/vSphere/util/vm_helpers.rb'
|
|
269
|
+
- 'lib/vSphere/version.rb'
|
|
270
|
+
- 'spec/clone_spec.rb'
|
|
271
|
+
- 'spec/spec_helper.rb'
|
|
272
|
+
|
|
273
|
+
# Offense count: 2
|
|
274
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
275
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
276
|
+
# SupportedStyles: predicate, comparison
|
|
277
|
+
Style/NumericPredicate:
|
|
278
|
+
Exclude:
|
|
279
|
+
- 'spec/**/*'
|
|
280
|
+
- 'lib/vSphere/action/clone.rb'
|
|
281
|
+
- 'lib/vSphere/action/get_ssh_info.rb'
|
|
282
|
+
|
|
283
|
+
# Offense count: 1
|
|
284
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
285
|
+
# Configuration parameters: PreferredDelimiters.
|
|
286
|
+
Style/PercentLiteralDelimiters:
|
|
287
|
+
Exclude:
|
|
288
|
+
- 'Rakefile'
|
|
289
|
+
|
|
290
|
+
# Offense count: 1
|
|
291
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
292
|
+
Style/RedundantBegin:
|
|
293
|
+
Exclude:
|
|
294
|
+
- 'lib/vSphere/action/clone.rb'
|
|
295
|
+
|
|
296
|
+
# Offense count: 1
|
|
297
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
298
|
+
Style/RedundantParentheses:
|
|
299
|
+
Exclude:
|
|
300
|
+
- 'lib/vSphere/action/get_ssh_info.rb'
|
|
301
|
+
|
|
302
|
+
# Offense count: 1
|
|
303
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
304
|
+
Style/RedundantRegexpEscape:
|
|
305
|
+
Exclude:
|
|
306
|
+
- 'lib/vSphere/action/clone.rb'
|
|
38
307
|
|
|
39
308
|
# Offense count: 2
|
|
40
|
-
#
|
|
41
|
-
# Configuration parameters: EnforcedStyle,
|
|
309
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
310
|
+
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
311
|
+
# SupportedStyles: slashes, percent_r, mixed
|
|
42
312
|
Style/RegexpLiteral:
|
|
43
|
-
|
|
313
|
+
Exclude:
|
|
314
|
+
- 'vSphere.gemspec'
|
|
44
315
|
|
|
45
|
-
# Offense count:
|
|
46
|
-
#
|
|
47
|
-
# Configuration parameters:
|
|
48
|
-
|
|
49
|
-
|
|
316
|
+
# Offense count: 1
|
|
317
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
318
|
+
# Configuration parameters: EnforcedStyle.
|
|
319
|
+
# SupportedStyles: implicit, explicit
|
|
320
|
+
Style/RescueStandardError:
|
|
321
|
+
Exclude:
|
|
322
|
+
- 'lib/vSphere/action/clone.rb'
|
|
323
|
+
|
|
324
|
+
# Offense count: 22
|
|
325
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
326
|
+
# Configuration parameters: EnforcedStyle.
|
|
327
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
|
328
|
+
Style/SignalException:
|
|
329
|
+
Exclude:
|
|
330
|
+
- 'lib/vSphere/action/clone.rb'
|
|
331
|
+
- 'lib/vSphere/action/get_ssh_info.rb'
|
|
332
|
+
- 'lib/vSphere/plugin.rb'
|
|
333
|
+
- 'lib/vSphere/util/vim_helpers.rb'
|
|
50
334
|
|
|
51
335
|
# Offense count: 1
|
|
52
|
-
#
|
|
53
|
-
# Configuration parameters:
|
|
336
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
337
|
+
# Configuration parameters: Mode.
|
|
338
|
+
Style/StringConcatenation:
|
|
339
|
+
Exclude:
|
|
340
|
+
- 'lib/vSphere/util/vim_helpers.rb'
|
|
341
|
+
|
|
342
|
+
# Offense count: 5
|
|
343
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
344
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
345
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
54
346
|
Style/StringLiterals:
|
|
55
|
-
|
|
347
|
+
Exclude:
|
|
348
|
+
- 'lib/vSphere/action/snapshot_delete.rb'
|
|
349
|
+
- 'lib/vSphere/action/snapshot_restore.rb'
|
|
350
|
+
- 'lib/vSphere/action/snapshot_save.rb'
|
|
56
351
|
|
|
57
|
-
# Offense count:
|
|
58
|
-
#
|
|
352
|
+
# Offense count: 1
|
|
353
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
354
|
+
# Configuration parameters: MinSize.
|
|
355
|
+
# SupportedStyles: percent, brackets
|
|
356
|
+
Style/SymbolArray:
|
|
357
|
+
EnforcedStyle: brackets
|
|
358
|
+
|
|
359
|
+
# Offense count: 6
|
|
360
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
59
361
|
Style/SymbolLiteral:
|
|
60
|
-
|
|
362
|
+
Exclude:
|
|
363
|
+
- 'lib/vSphere/action/clone.rb'
|
|
364
|
+
- 'lib/vSphere/action/get_ssh_info.rb'
|
|
365
|
+
|
|
366
|
+
# Offense count: 1
|
|
367
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
368
|
+
Style/ZeroLengthPredicate:
|
|
369
|
+
Exclude:
|
|
370
|
+
- 'lib/vSphere/action/clone.rb'
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-3.
|
|
1
|
+
ruby-3.4.10
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
## [1.
|
|
2
|
-
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
1
|
+
## [1.15.0 (2026-08-12)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.15.0)
|
|
2
|
+
- Update gem to Ruby 3.4.10
|
|
3
|
+
- Support for Vagrant >=2.4.9
|
|
4
|
+
- Upgrade nokogiri to ~> 1.19.4
|
|
5
|
+
- update other dependencies
|
|
6
|
+
- Remove references to travis CI. This is no longer functional.
|
|
7
|
+
|
|
8
|
+
## [1.14.0 (2022-08-01)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.14.0)
|
|
9
|
+
- Update gem to Ruby 3.0.2
|
|
10
|
+
- Support for Vagrant >=2.2.17
|
|
11
|
+
- Upgrade nokogiri to 1.13.4
|
|
12
|
+
- Update other dependencies
|
|
7
13
|
|
|
8
14
|
## [1.13.5 (2021-01-05)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.13.5)
|
|
9
15
|
- Pin nokogiri to 1.10.10. This fixes an issue where vagrant-vsphere failed to install due to
|
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## 1. Our Commitment
|
|
4
|
+
|
|
5
|
+
We are dedicated to fostering a respectful environment for everyone contributing to this project. We expect all participants to treat each other with respect, professionalism, and kindness.
|
|
6
|
+
|
|
7
|
+
## 2. Expected Behavior
|
|
8
|
+
|
|
9
|
+
- Be respectful and considerate of others.
|
|
10
|
+
- Engage in constructive discussions and offer helpful feedback.
|
|
11
|
+
- Gracefully accept constructive criticism.
|
|
12
|
+
|
|
13
|
+
## 3. Unacceptable Behavior
|
|
14
|
+
|
|
15
|
+
The following behaviors will not be tolerated:
|
|
16
|
+
|
|
17
|
+
- Harassment, discrimination, or intimidation of any kind.
|
|
18
|
+
- Offensive, abusive, or derogatory language and actions.
|
|
19
|
+
- Personal attacks or insults.
|
|
20
|
+
- Trolling or disruptive conduct.
|
|
21
|
+
- Sharing inappropriate content.
|
|
22
|
+
|
|
23
|
+
## 4. Reporting Violations
|
|
24
|
+
If you experience or witness any behavior that violates this Code of Conduct, please report it by contacting the project maintainers. All reports will be reviewed confidentially.
|
|
25
|
+
|
|
26
|
+
## 5. Enforcement
|
|
27
|
+
Violations of this Code of Conduct may result in actions such as warnings, temporary bans, or permanent exclusion from participation at the discretion of the maintainers.
|
|
28
|
+
|
|
29
|
+
## Contact Info
|
|
30
|
+
Email: <nsidc@nsidc.org>
|
|
31
|
+
Organization: National Snow and Ice Data Center¹
|
|
32
|
+
Website: <https://nsidc.org/>
|
|
33
|
+
Date last modified: 01-22-2025
|
|
34
|
+
|
|
35
|
+
¹Work performed under NASA contract 80GSFC23CA035.
|
data/DEVELOPMENT.md
CHANGED
|
@@ -30,14 +30,6 @@ Changes that eliminate rules from
|
|
|
30
30
|
[`.rubocop_todo.yml`](https://github.com/nsidc/vagrant-vsphere/blob/master/.rubocop_todo.yml)
|
|
31
31
|
are welcome.
|
|
32
32
|
|
|
33
|
-
### Travis-CI
|
|
34
|
-
|
|
35
|
-
[Travis](https://travis-ci.org/nsidc/vagrant-vsphere) will automatically run
|
|
36
|
-
RuboCop and the unit tests when you create a new pull request. If there are any
|
|
37
|
-
failures, a notification will appear on the pull request. To update your pull
|
|
38
|
-
request, simply create a new commit on the branch that fixes the failures, and
|
|
39
|
-
push to the branch.
|
|
40
|
-
|
|
41
33
|
### Development Without Building the Plugin
|
|
42
34
|
|
|
43
35
|
To test your changes when developing the plugin, you have two main
|
|
@@ -68,7 +60,7 @@ method for Vagrant plugin development.
|
|
|
68
60
|
|
|
69
61
|
### Releasing
|
|
70
62
|
|
|
71
|
-
1) Ensure
|
|
63
|
+
1) Ensure tests are passing
|
|
72
64
|
2) Ensure `CHANGELOG.md` is up-to-date with the changes to release
|
|
73
65
|
3) Update version in the code, according to [semver](https://semver.org/)
|
|
74
66
|
* [bumpversion](https://github.com/peritus/bumpversion) can be used; if not,
|
data/Gemfile
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
source 'http://rubygems.org'
|
|
4
4
|
|
|
5
5
|
group :development do
|
|
6
|
+
gem 'pry-byebug', '~> 3.12.0'
|
|
6
7
|
# We depend on Vagrant for development, but we don't add it as a
|
|
7
8
|
# gem dependency because we expect to be installed within the
|
|
8
9
|
# Vagrant environment itself using `vagrant plugin`.
|
|
9
|
-
gem 'vagrant',
|
|
10
|
+
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git', ref: 'v2.4.9'
|
|
10
11
|
end
|
|
11
12
|
|
|
12
13
|
group :plugins do
|
data/{LICENSE.txt → LICENSE}
RENAMED