fog-vsphere 3.6.5 → 3.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/vsphere/compute.rb +12 -0
- data/lib/fog/vsphere/models/compute/nvmecontroller.rb +24 -0
- data/lib/fog/vsphere/models/compute/scsicontroller.rb +5 -1
- data/lib/fog/vsphere/models/compute/server.rb +33 -18
- data/lib/fog/vsphere/models/compute/volume.rb +1 -2
- data/lib/fog/vsphere/requests/compute/create_vm.rb +11 -4
- data/lib/fog/vsphere/requests/compute/get_vm_first_nvme_controller.rb +21 -0
- data/lib/fog/vsphere/requests/compute/list_vm_nvme_controllers.rb +29 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +1 -1
- data/lib/fog/vsphere/version.rb +1 -1
- data/tests/class_from_string_tests.rb +33 -0
- data/tests/compute_tests.rb +53 -0
- data/tests/fixtures/vcr_cassettes/6_7/create_folder.yml +609 -0
- data/tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml +823 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_cluster.yml +663 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml +1046 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml +498 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_folder.yml +2038 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_host.yml +386 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_network.yml +932 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml +225 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_template.yml +329 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml +329 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_nvme_controller.yml +105 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_sata_controller.yml +209 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_scsi_controller.yml +111 -0
- data/tests/fixtures/vcr_cassettes/6_7/shared.yml +164 -0
- data/tests/helper.rb +6 -0
- data/tests/helpers/mock_helper.rb +9 -0
- data/tests/models/compute/cluster_tests.rb +18 -0
- data/tests/models/compute/hosts_tests.rb +11 -0
- data/tests/models/compute/rules_tests.rb +28 -0
- data/tests/models/compute/server_tests.rb +74 -0
- data/tests/models/compute/server_unit_tests.rb +13 -0
- data/tests/models/compute/servers_tests.rb +14 -0
- data/tests/models/compute/ticket_tests.rb +12 -0
- data/tests/models/compute/tickets_tests.rb +8 -0
- data/tests/requests/compute/create_folder_tests.rb +19 -0
- data/tests/requests/compute/current_time_tests.rb +10 -0
- data/tests/requests/compute/folder_destroy_tests.rb +39 -0
- data/tests/requests/compute/get_cluster_tests.rb +19 -0
- data/tests/requests/compute/get_compute_resource_tests.rb +19 -0
- data/tests/requests/compute/get_datacenter_tests.rb +19 -0
- data/tests/requests/compute/get_folder_tests.rb +28 -0
- data/tests/requests/compute/get_host_tests.rb +19 -0
- data/tests/requests/compute/get_network_tests.rb +78 -0
- data/tests/requests/compute/get_storage_pod_tests.rb +19 -0
- data/tests/requests/compute/get_template_tests.rb +19 -0
- data/tests/requests/compute/get_virtual_machine_tests.rb +19 -0
- data/tests/requests/compute/get_vm_first_nvme_controller_tests.rb +19 -0
- data/tests/requests/compute/get_vm_first_sata_controller_tests.rb +19 -0
- data/tests/requests/compute/get_vm_first_scsi_controller_tests.rb +19 -0
- data/tests/requests/compute/list_child_snapshots_tests.rb +9 -0
- data/tests/requests/compute/list_clusters_tests.rb +10 -0
- data/tests/requests/compute/list_datastores_tests.rb +17 -0
- data/tests/requests/compute/list_hosts_tests.rb +10 -0
- data/tests/requests/compute/list_networks_tests.rb +17 -0
- data/tests/requests/compute/list_storage_pods_test.rb +9 -0
- data/tests/requests/compute/list_virtual_machines_tests.rb +34 -0
- data/tests/requests/compute/list_vm_cdroms_tests.rb +9 -0
- data/tests/requests/compute/list_vm_snapshots_tests.rb +9 -0
- data/tests/requests/compute/modify_vm_cdrom_tests.rb +20 -0
- data/tests/requests/compute/revert_to_snapshot_tests.rb +13 -0
- data/tests/requests/compute/set_vm_customvalue_tests.rb +18 -0
- data/tests/requests/compute/update_vm_tests.rb +13 -0
- data/tests/requests/compute/vm_clone_tests.rb +55 -0
- data/tests/requests/compute/vm_config_vnc_tests.rb +18 -0
- data/tests/requests/compute/vm_destroy_tests.rb +14 -0
- data/tests/requests/compute/vm_migrate_tests.rb +15 -0
- data/tests/requests/compute/vm_power_off_tests.rb +24 -0
- data/tests/requests/compute/vm_power_on_tests.rb +15 -0
- data/tests/requests/compute/vm_reboot_tests.rb +24 -0
- data/tests/requests/compute/vm_reconfig_cdrom_tests.rb +14 -0
- data/tests/requests/compute/vm_reconfig_cpus_tests.rb +17 -0
- data/tests/requests/compute/vm_reconfig_hardware_tests.rb +17 -0
- data/tests/requests/compute/vm_reconfig_memory_tests.rb +17 -0
- data/tests/requests/compute/vm_suspend_tests.rb +23 -0
- data/tests/requests/compute/vm_take_snapshot_tests.rb +17 -0
- data/tests/test_helper.rb +74 -0
- metadata +152 -19
- data/.github/workflows/ruby.yml +0 -42
- data/.gitignore +0 -25
- data/.rubocop.yml +0 -44
- data/.rubocop_todo.yml +0 -614
- data/CONTRIBUTING.md +0 -55
- data/Gemfile +0 -5
- data/Jenkinsfile +0 -10
- data/fog-vsphere.gemspec +0 -39
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J.R. Garcia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '5.
|
89
|
+
version: '5.22'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '5.
|
96
|
+
version: '5.22'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '2.2'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '2.2'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: shindo
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,19 +214,11 @@ executables: []
|
|
214
214
|
extensions: []
|
215
215
|
extra_rdoc_files: []
|
216
216
|
files:
|
217
|
-
- ".github/workflows/ruby.yml"
|
218
|
-
- ".gitignore"
|
219
|
-
- ".rubocop.yml"
|
220
|
-
- ".rubocop_todo.yml"
|
221
217
|
- CHANGELOG.md
|
222
|
-
- CONTRIBUTING.md
|
223
218
|
- CONTRIBUTORS.md
|
224
|
-
- Gemfile
|
225
|
-
- Jenkinsfile
|
226
219
|
- LICENSE.md
|
227
220
|
- README.md
|
228
221
|
- Rakefile
|
229
|
-
- fog-vsphere.gemspec
|
230
222
|
- lib/fog-vsphere.rb
|
231
223
|
- lib/fog/bin/vsphere.rb
|
232
224
|
- lib/fog/vsphere.rb
|
@@ -253,6 +245,7 @@ files:
|
|
253
245
|
- lib/fog/vsphere/models/compute/interfacetypes.rb
|
254
246
|
- lib/fog/vsphere/models/compute/network.rb
|
255
247
|
- lib/fog/vsphere/models/compute/networks.rb
|
248
|
+
- lib/fog/vsphere/models/compute/nvmecontroller.rb
|
256
249
|
- lib/fog/vsphere/models/compute/process.rb
|
257
250
|
- lib/fog/vsphere/models/compute/resource_pool.rb
|
258
251
|
- lib/fog/vsphere/models/compute/resource_pools.rb
|
@@ -297,6 +290,7 @@ files:
|
|
297
290
|
- lib/fog/vsphere/requests/compute/get_storage_pod.rb
|
298
291
|
- lib/fog/vsphere/requests/compute/get_template.rb
|
299
292
|
- lib/fog/vsphere/requests/compute/get_virtual_machine.rb
|
293
|
+
- lib/fog/vsphere/requests/compute/get_vm_first_nvme_controller.rb
|
300
294
|
- lib/fog/vsphere/requests/compute/get_vm_first_sata_controller.rb
|
301
295
|
- lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb
|
302
296
|
- lib/fog/vsphere/requests/compute/host_finish_maintenance.rb
|
@@ -323,6 +317,7 @@ files:
|
|
323
317
|
- lib/fog/vsphere/requests/compute/list_vm_cdroms.rb
|
324
318
|
- lib/fog/vsphere/requests/compute/list_vm_customvalues.rb
|
325
319
|
- lib/fog/vsphere/requests/compute/list_vm_interfaces.rb
|
320
|
+
- lib/fog/vsphere/requests/compute/list_vm_nvme_controllers.rb
|
326
321
|
- lib/fog/vsphere/requests/compute/list_vm_scsi_controllers.rb
|
327
322
|
- lib/fog/vsphere/requests/compute/list_vm_snapshots.rb
|
328
323
|
- lib/fog/vsphere/requests/compute/list_vm_volumes.rb
|
@@ -356,11 +351,80 @@ files:
|
|
356
351
|
- lib/fog/vsphere/requests/compute/vm_suspend.rb
|
357
352
|
- lib/fog/vsphere/requests/compute/vm_take_snapshot.rb
|
358
353
|
- lib/fog/vsphere/version.rb
|
354
|
+
- tests/class_from_string_tests.rb
|
355
|
+
- tests/compute_tests.rb
|
356
|
+
- tests/fixtures/vcr_cassettes/6_7/create_folder.yml
|
357
|
+
- tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml
|
358
|
+
- tests/fixtures/vcr_cassettes/6_7/get_cluster.yml
|
359
|
+
- tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml
|
360
|
+
- tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml
|
361
|
+
- tests/fixtures/vcr_cassettes/6_7/get_folder.yml
|
362
|
+
- tests/fixtures/vcr_cassettes/6_7/get_host.yml
|
363
|
+
- tests/fixtures/vcr_cassettes/6_7/get_network.yml
|
364
|
+
- tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml
|
365
|
+
- tests/fixtures/vcr_cassettes/6_7/get_template.yml
|
366
|
+
- tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml
|
367
|
+
- tests/fixtures/vcr_cassettes/6_7/get_vm_first_nvme_controller.yml
|
368
|
+
- tests/fixtures/vcr_cassettes/6_7/get_vm_first_sata_controller.yml
|
369
|
+
- tests/fixtures/vcr_cassettes/6_7/get_vm_first_scsi_controller.yml
|
370
|
+
- tests/fixtures/vcr_cassettes/6_7/shared.yml
|
371
|
+
- tests/helper.rb
|
372
|
+
- tests/helpers/mock_helper.rb
|
373
|
+
- tests/models/compute/cluster_tests.rb
|
374
|
+
- tests/models/compute/hosts_tests.rb
|
375
|
+
- tests/models/compute/rules_tests.rb
|
376
|
+
- tests/models/compute/server_tests.rb
|
377
|
+
- tests/models/compute/server_unit_tests.rb
|
378
|
+
- tests/models/compute/servers_tests.rb
|
379
|
+
- tests/models/compute/ticket_tests.rb
|
380
|
+
- tests/models/compute/tickets_tests.rb
|
381
|
+
- tests/requests/compute/create_folder_tests.rb
|
382
|
+
- tests/requests/compute/current_time_tests.rb
|
383
|
+
- tests/requests/compute/folder_destroy_tests.rb
|
384
|
+
- tests/requests/compute/get_cluster_tests.rb
|
385
|
+
- tests/requests/compute/get_compute_resource_tests.rb
|
386
|
+
- tests/requests/compute/get_datacenter_tests.rb
|
387
|
+
- tests/requests/compute/get_folder_tests.rb
|
388
|
+
- tests/requests/compute/get_host_tests.rb
|
389
|
+
- tests/requests/compute/get_network_tests.rb
|
390
|
+
- tests/requests/compute/get_storage_pod_tests.rb
|
391
|
+
- tests/requests/compute/get_template_tests.rb
|
392
|
+
- tests/requests/compute/get_virtual_machine_tests.rb
|
393
|
+
- tests/requests/compute/get_vm_first_nvme_controller_tests.rb
|
394
|
+
- tests/requests/compute/get_vm_first_sata_controller_tests.rb
|
395
|
+
- tests/requests/compute/get_vm_first_scsi_controller_tests.rb
|
396
|
+
- tests/requests/compute/list_child_snapshots_tests.rb
|
397
|
+
- tests/requests/compute/list_clusters_tests.rb
|
398
|
+
- tests/requests/compute/list_datastores_tests.rb
|
399
|
+
- tests/requests/compute/list_hosts_tests.rb
|
400
|
+
- tests/requests/compute/list_networks_tests.rb
|
401
|
+
- tests/requests/compute/list_storage_pods_test.rb
|
402
|
+
- tests/requests/compute/list_virtual_machines_tests.rb
|
403
|
+
- tests/requests/compute/list_vm_cdroms_tests.rb
|
404
|
+
- tests/requests/compute/list_vm_snapshots_tests.rb
|
405
|
+
- tests/requests/compute/modify_vm_cdrom_tests.rb
|
406
|
+
- tests/requests/compute/revert_to_snapshot_tests.rb
|
407
|
+
- tests/requests/compute/set_vm_customvalue_tests.rb
|
408
|
+
- tests/requests/compute/update_vm_tests.rb
|
409
|
+
- tests/requests/compute/vm_clone_tests.rb
|
410
|
+
- tests/requests/compute/vm_config_vnc_tests.rb
|
411
|
+
- tests/requests/compute/vm_destroy_tests.rb
|
412
|
+
- tests/requests/compute/vm_migrate_tests.rb
|
413
|
+
- tests/requests/compute/vm_power_off_tests.rb
|
414
|
+
- tests/requests/compute/vm_power_on_tests.rb
|
415
|
+
- tests/requests/compute/vm_reboot_tests.rb
|
416
|
+
- tests/requests/compute/vm_reconfig_cdrom_tests.rb
|
417
|
+
- tests/requests/compute/vm_reconfig_cpus_tests.rb
|
418
|
+
- tests/requests/compute/vm_reconfig_hardware_tests.rb
|
419
|
+
- tests/requests/compute/vm_reconfig_memory_tests.rb
|
420
|
+
- tests/requests/compute/vm_suspend_tests.rb
|
421
|
+
- tests/requests/compute/vm_take_snapshot_tests.rb
|
422
|
+
- tests/test_helper.rb
|
359
423
|
homepage: https://github.com/fog/fog-vsphere
|
360
424
|
licenses:
|
361
425
|
- MIT
|
362
426
|
metadata: {}
|
363
|
-
post_install_message:
|
427
|
+
post_install_message:
|
364
428
|
rdoc_options: []
|
365
429
|
require_paths:
|
366
430
|
- lib
|
@@ -375,8 +439,77 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
375
439
|
- !ruby/object:Gem::Version
|
376
440
|
version: '0'
|
377
441
|
requirements: []
|
378
|
-
rubygems_version: 3.
|
379
|
-
signing_key:
|
442
|
+
rubygems_version: 3.2.33
|
443
|
+
signing_key:
|
380
444
|
specification_version: 4
|
381
445
|
summary: Module for the 'fog' gem to support VMware vSphere.
|
382
|
-
test_files:
|
446
|
+
test_files:
|
447
|
+
- tests/class_from_string_tests.rb
|
448
|
+
- tests/compute_tests.rb
|
449
|
+
- tests/fixtures/vcr_cassettes/6_7/create_folder.yml
|
450
|
+
- tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml
|
451
|
+
- tests/fixtures/vcr_cassettes/6_7/get_cluster.yml
|
452
|
+
- tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml
|
453
|
+
- tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml
|
454
|
+
- tests/fixtures/vcr_cassettes/6_7/get_folder.yml
|
455
|
+
- tests/fixtures/vcr_cassettes/6_7/get_host.yml
|
456
|
+
- tests/fixtures/vcr_cassettes/6_7/get_network.yml
|
457
|
+
- tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml
|
458
|
+
- tests/fixtures/vcr_cassettes/6_7/get_template.yml
|
459
|
+
- tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml
|
460
|
+
- tests/fixtures/vcr_cassettes/6_7/get_vm_first_nvme_controller.yml
|
461
|
+
- tests/fixtures/vcr_cassettes/6_7/get_vm_first_sata_controller.yml
|
462
|
+
- tests/fixtures/vcr_cassettes/6_7/get_vm_first_scsi_controller.yml
|
463
|
+
- tests/fixtures/vcr_cassettes/6_7/shared.yml
|
464
|
+
- tests/helper.rb
|
465
|
+
- tests/helpers/mock_helper.rb
|
466
|
+
- tests/models/compute/cluster_tests.rb
|
467
|
+
- tests/models/compute/hosts_tests.rb
|
468
|
+
- tests/models/compute/rules_tests.rb
|
469
|
+
- tests/models/compute/server_tests.rb
|
470
|
+
- tests/models/compute/server_unit_tests.rb
|
471
|
+
- tests/models/compute/servers_tests.rb
|
472
|
+
- tests/models/compute/ticket_tests.rb
|
473
|
+
- tests/models/compute/tickets_tests.rb
|
474
|
+
- tests/requests/compute/create_folder_tests.rb
|
475
|
+
- tests/requests/compute/current_time_tests.rb
|
476
|
+
- tests/requests/compute/folder_destroy_tests.rb
|
477
|
+
- tests/requests/compute/get_cluster_tests.rb
|
478
|
+
- tests/requests/compute/get_compute_resource_tests.rb
|
479
|
+
- tests/requests/compute/get_datacenter_tests.rb
|
480
|
+
- tests/requests/compute/get_folder_tests.rb
|
481
|
+
- tests/requests/compute/get_host_tests.rb
|
482
|
+
- tests/requests/compute/get_network_tests.rb
|
483
|
+
- tests/requests/compute/get_storage_pod_tests.rb
|
484
|
+
- tests/requests/compute/get_template_tests.rb
|
485
|
+
- tests/requests/compute/get_virtual_machine_tests.rb
|
486
|
+
- tests/requests/compute/get_vm_first_nvme_controller_tests.rb
|
487
|
+
- tests/requests/compute/get_vm_first_sata_controller_tests.rb
|
488
|
+
- tests/requests/compute/get_vm_first_scsi_controller_tests.rb
|
489
|
+
- tests/requests/compute/list_child_snapshots_tests.rb
|
490
|
+
- tests/requests/compute/list_clusters_tests.rb
|
491
|
+
- tests/requests/compute/list_datastores_tests.rb
|
492
|
+
- tests/requests/compute/list_hosts_tests.rb
|
493
|
+
- tests/requests/compute/list_networks_tests.rb
|
494
|
+
- tests/requests/compute/list_storage_pods_test.rb
|
495
|
+
- tests/requests/compute/list_virtual_machines_tests.rb
|
496
|
+
- tests/requests/compute/list_vm_cdroms_tests.rb
|
497
|
+
- tests/requests/compute/list_vm_snapshots_tests.rb
|
498
|
+
- tests/requests/compute/modify_vm_cdrom_tests.rb
|
499
|
+
- tests/requests/compute/revert_to_snapshot_tests.rb
|
500
|
+
- tests/requests/compute/set_vm_customvalue_tests.rb
|
501
|
+
- tests/requests/compute/update_vm_tests.rb
|
502
|
+
- tests/requests/compute/vm_clone_tests.rb
|
503
|
+
- tests/requests/compute/vm_config_vnc_tests.rb
|
504
|
+
- tests/requests/compute/vm_destroy_tests.rb
|
505
|
+
- tests/requests/compute/vm_migrate_tests.rb
|
506
|
+
- tests/requests/compute/vm_power_off_tests.rb
|
507
|
+
- tests/requests/compute/vm_power_on_tests.rb
|
508
|
+
- tests/requests/compute/vm_reboot_tests.rb
|
509
|
+
- tests/requests/compute/vm_reconfig_cdrom_tests.rb
|
510
|
+
- tests/requests/compute/vm_reconfig_cpus_tests.rb
|
511
|
+
- tests/requests/compute/vm_reconfig_hardware_tests.rb
|
512
|
+
- tests/requests/compute/vm_reconfig_memory_tests.rb
|
513
|
+
- tests/requests/compute/vm_suspend_tests.rb
|
514
|
+
- tests/requests/compute/vm_take_snapshot_tests.rb
|
515
|
+
- tests/test_helper.rb
|
data/.github/workflows/ruby.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
name: Ruby
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master ]
|
6
|
-
pull_request:
|
7
|
-
branches: [ master ]
|
8
|
-
|
9
|
-
jobs:
|
10
|
-
rubocop:
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
steps:
|
13
|
-
- uses: actions/checkout@v3
|
14
|
-
- name: Set up Ruby
|
15
|
-
uses: ruby/setup-ruby@v1
|
16
|
-
with:
|
17
|
-
ruby-version: '3.1'
|
18
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
19
|
-
- name: Run Rubocop
|
20
|
-
run: bundle exec rubocop --format github
|
21
|
-
|
22
|
-
test:
|
23
|
-
runs-on: ubuntu-latest
|
24
|
-
needs: rubocop
|
25
|
-
strategy:
|
26
|
-
matrix:
|
27
|
-
ruby-version:
|
28
|
-
- '2.7'
|
29
|
-
- '3.0'
|
30
|
-
- '3.1'
|
31
|
-
- 'head'
|
32
|
-
continue-on-error: ${{ matrix.ruby-version == 'head' }}
|
33
|
-
|
34
|
-
steps:
|
35
|
-
- uses: actions/checkout@v3
|
36
|
-
- name: Set up Ruby
|
37
|
-
uses: ruby/setup-ruby@v1
|
38
|
-
with:
|
39
|
-
ruby-version: ${{ matrix.ruby-version }}
|
40
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
41
|
-
- name: Run tests
|
42
|
-
run: bundle exec rake test
|
data/.gitignore
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
*.bundle
|
19
|
-
*.so
|
20
|
-
*.o
|
21
|
-
*.a
|
22
|
-
mkmf.log
|
23
|
-
gemfiles/*.lock
|
24
|
-
.*.swp
|
25
|
-
tests/vsphere_config.yml
|
data/.rubocop.yml
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
inherit_from:
|
2
|
-
- .rubocop_todo.yml
|
3
|
-
|
4
|
-
require:
|
5
|
-
- rubocop-minitest
|
6
|
-
- rubocop-performance
|
7
|
-
- rubocop-rake
|
8
|
-
|
9
|
-
AllCops:
|
10
|
-
TargetRubyVersion: 2.7
|
11
|
-
NewCops: enable
|
12
|
-
|
13
|
-
Style/Documentation:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
Style/HashSyntax:
|
17
|
-
Enabled: false # don't force 1.9 hash syntax
|
18
|
-
|
19
|
-
Style/StringLiterals:
|
20
|
-
Enabled: false # dont't enforce
|
21
|
-
|
22
|
-
Style/WordArray:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
Style/GuardClause:
|
26
|
-
Enabled: false # don't enforce this
|
27
|
-
|
28
|
-
Layout/SpaceInsideHashLiteralBraces:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
Metrics/AbcSize:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Metrics/CyclomaticComplexity:
|
35
|
-
Enabled : false
|
36
|
-
|
37
|
-
Metrics/PerceivedComplexity:
|
38
|
-
Enabled: false
|
39
|
-
|
40
|
-
Style/RescueModifier:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
Metrics/MethodLength:
|
44
|
-
Max: 45
|