r10k 3.9.1 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec_tests.yml +1 -1
  3. data/.travis.yml +0 -10
  4. data/CHANGELOG.mkd +28 -0
  5. data/README.mkd +6 -0
  6. data/doc/dynamic-environments/configuration.mkd +21 -0
  7. data/doc/puppetfile.mkd +15 -1
  8. data/integration/Rakefile +3 -1
  9. data/integration/tests/user_scenario/basic_workflow/negative/neg_specify_deleted_forge_module.rb +3 -9
  10. data/integration/tests/user_scenario/basic_workflow/single_env_purge_unmanaged_modules.rb +21 -25
  11. data/integration/tests/user_scenario/complex_workflow/multi_env_add_change_remove.rb +3 -3
  12. data/integration/tests/user_scenario/complex_workflow/multi_env_remove_re-add.rb +3 -3
  13. data/integration/tests/user_scenario/complex_workflow/multi_env_unamanaged.rb +3 -3
  14. data/lib/r10k/action/base.rb +6 -3
  15. data/lib/r10k/action/deploy/display.rb +6 -3
  16. data/lib/r10k/action/deploy/environment.rb +15 -4
  17. data/lib/r10k/action/deploy/module.rb +37 -8
  18. data/lib/r10k/action/runner.rb +45 -10
  19. data/lib/r10k/cli/deploy.rb +4 -0
  20. data/lib/r10k/git.rb +3 -0
  21. data/lib/r10k/git/cache.rb +1 -1
  22. data/lib/r10k/git/rugged/credentials.rb +77 -0
  23. data/lib/r10k/git/stateful_repository.rb +1 -0
  24. data/lib/r10k/initializers.rb +10 -0
  25. data/lib/r10k/module/base.rb +37 -0
  26. data/lib/r10k/module/forge.rb +7 -2
  27. data/lib/r10k/module/git.rb +2 -1
  28. data/lib/r10k/module/svn.rb +2 -1
  29. data/lib/r10k/module_loader/puppetfile.rb +206 -0
  30. data/lib/r10k/module_loader/puppetfile/dsl.rb +37 -0
  31. data/lib/r10k/puppetfile.rb +83 -160
  32. data/lib/r10k/settings.rb +47 -2
  33. data/lib/r10k/settings/definition.rb +1 -1
  34. data/lib/r10k/source/base.rb +10 -0
  35. data/lib/r10k/source/git.rb +5 -0
  36. data/lib/r10k/source/svn.rb +4 -0
  37. data/lib/r10k/util/purgeable.rb +70 -8
  38. data/lib/r10k/version.rb +1 -1
  39. data/locales/r10k.pot +129 -57
  40. data/r10k.gemspec +2 -0
  41. data/spec/fixtures/unit/action/r10k_forge_auth.yaml +4 -0
  42. data/spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml +3 -0
  43. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_subdir_2/ignored_1 +0 -0
  44. data/spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3 +0 -0
  45. data/spec/unit/action/deploy/environment_spec.rb +25 -0
  46. data/spec/unit/action/deploy/module_spec.rb +216 -14
  47. data/spec/unit/action/runner_spec.rb +129 -25
  48. data/spec/unit/git/cache_spec.rb +14 -0
  49. data/spec/unit/git/rugged/credentials_spec.rb +29 -0
  50. data/spec/unit/git/stateful_repository_spec.rb +5 -0
  51. data/spec/unit/module/base_spec.rb +46 -0
  52. data/spec/unit/module/forge_spec.rb +27 -1
  53. data/spec/unit/module/git_spec.rb +17 -8
  54. data/spec/unit/module/svn_spec.rb +18 -0
  55. data/spec/unit/module_loader/puppetfile_spec.rb +343 -0
  56. data/spec/unit/module_spec.rb +28 -0
  57. data/spec/unit/puppetfile_spec.rb +127 -191
  58. data/spec/unit/settings_spec.rb +24 -2
  59. data/spec/unit/util/purgeable_spec.rb +38 -6
  60. metadata +23 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r10k
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.1
4
+ version: 3.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2
@@ -128,6 +128,20 @@ dependencies:
128
128
  - - "<"
129
129
  - !ruby/object:Gem::Version
130
130
  version: 3.3.0
131
+ - !ruby/object:Gem::Dependency
132
+ name: jwt
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: 2.2.3
138
+ type: :runtime
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: 2.2.3
131
145
  - !ruby/object:Gem::Dependency
132
146
  name: rspec
133
147
  requirement: !ruby/object:Gem::Requirement
@@ -393,6 +407,8 @@ files:
393
407
  - lib/r10k/module/local.rb
394
408
  - lib/r10k/module/metadata_file.rb
395
409
  - lib/r10k/module/svn.rb
410
+ - lib/r10k/module_loader/puppetfile.rb
411
+ - lib/r10k/module_loader/puppetfile/dsl.rb
396
412
  - lib/r10k/puppetfile.rb
397
413
  - lib/r10k/settings.rb
398
414
  - lib/r10k/settings/collection.rb
@@ -446,6 +462,8 @@ files:
446
462
  - spec/fixtures/unit/action/r10k.yaml
447
463
  - spec/fixtures/unit/action/r10k_cachedir.yaml
448
464
  - spec/fixtures/unit/action/r10k_creds.yaml
465
+ - spec/fixtures/unit/action/r10k_forge_auth.yaml
466
+ - spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml
449
467
  - spec/fixtures/unit/action/r10k_generate_types.yaml
450
468
  - spec/fixtures/unit/action/r10k_puppet_path.yaml
451
469
  - spec/fixtures/unit/puppetfile/argument-error/Puppetfile
@@ -457,9 +475,11 @@ files:
457
475
  - spec/fixtures/unit/puppetfile/valid-forge-with-version/Puppetfile
458
476
  - spec/fixtures/unit/puppetfile/valid-forge-without-version/Puppetfile
459
477
  - spec/fixtures/unit/util/purgeable/managed_one/expected_1
478
+ - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_subdir_2/ignored_1
460
479
  - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_expected_1
461
480
  - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_unmanaged_1
462
481
  - spec/fixtures/unit/util/purgeable/managed_one/unmanaged_1
482
+ - spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3
463
483
  - spec/fixtures/unit/util/purgeable/managed_two/expected_2
464
484
  - spec/fixtures/unit/util/purgeable/managed_two/unmanaged_2
465
485
  - spec/fixtures/unit/util/subprocess/runner/no-execute.sh
@@ -525,6 +545,7 @@ files:
525
545
  - spec/unit/module/git_spec.rb
526
546
  - spec/unit/module/metadata_file_spec.rb
527
547
  - spec/unit/module/svn_spec.rb
548
+ - spec/unit/module_loader/puppetfile_spec.rb
528
549
  - spec/unit/module_spec.rb
529
550
  - spec/unit/puppetfile_spec.rb
530
551
  - spec/unit/settings/collection_spec.rb