r10k 3.14.1 → 3.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/docker.yml +5 -0
  3. data/.github/workflows/rspec_tests.yml +1 -0
  4. data/CHANGELOG.mkd +19 -0
  5. data/CODEOWNERS +2 -2
  6. data/README.mkd +2 -2
  7. data/doc/dynamic-environments/configuration.mkd +78 -11
  8. data/doc/dynamic-environments/usage.mkd +4 -0
  9. data/doc/dynamic-environments/workflow-guide.mkd +3 -3
  10. data/doc/faq.mkd +1 -1
  11. data/docker/Makefile +17 -10
  12. data/integration/tests/git_source/HTTP_proxy_and_git_source.rb +1 -1
  13. data/integration/tests/git_source/git_source_repeated_remote.rb +2 -2
  14. data/integration/tests/purging/content_not_purged_at_root.rb +2 -2
  15. data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module.rb +1 -1
  16. data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb +1 -1
  17. data/integration/tests/user_scenario/basic_workflow/multi_source_custom_forge_git_module.rb +1 -1
  18. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module.rb +1 -1
  19. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module_ref.rb +1 -1
  20. data/integration/tests/user_scenario/basic_workflow/single_env_custom_forge_git_module.rb +1 -1
  21. data/integration/tests/user_scenario/basic_workflow/single_env_switch_forge_git_module.rb +1 -1
  22. data/lib/r10k/environment/with_modules.rb +24 -1
  23. data/lib/r10k/git/rugged/thin_repository.rb +7 -0
  24. data/lib/r10k/git/rugged/working_repository.rb +7 -3
  25. data/lib/r10k/git/shellgit/thin_repository.rb +4 -0
  26. data/lib/r10k/git/shellgit/working_repository.rb +3 -2
  27. data/lib/r10k/git/stateful_repository.rb +4 -4
  28. data/lib/r10k/module/git.rb +1 -1
  29. data/lib/r10k/module_loader/puppetfile.rb +8 -5
  30. data/lib/r10k/settings/container.rb +1 -0
  31. data/lib/r10k/version.rb +1 -1
  32. data/r10k.gemspec +5 -7
  33. metadata +16 -154
  34. data/.travis.yml +0 -42
  35. data/spec/fixtures/empty/.empty +0 -0
  36. data/spec/fixtures/integration/git/puppet-boolean-bare.tar +0 -0
  37. data/spec/fixtures/module/forge/bad_module/metadata.json +0 -1
  38. data/spec/fixtures/module/forge/eight_hundred/Modulefile +0 -8
  39. data/spec/fixtures/module/forge/eight_hundred/metadata.json +0 -19
  40. data/spec/fixtures/tarball/tarball.tar.gz +0 -0
  41. data/spec/fixtures/unit/action/r10k.yaml +0 -5
  42. data/spec/fixtures/unit/action/r10k_cachedir.yaml +0 -2
  43. data/spec/fixtures/unit/action/r10k_creds.yaml +0 -9
  44. data/spec/fixtures/unit/action/r10k_forge_auth.yaml +0 -4
  45. data/spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml +0 -3
  46. data/spec/fixtures/unit/action/r10k_generate_types.yaml +0 -3
  47. data/spec/fixtures/unit/action/r10k_logging.yaml +0 -12
  48. data/spec/fixtures/unit/action/r10k_puppet_path.yaml +0 -3
  49. data/spec/fixtures/unit/puppetfile/argument-error/Puppetfile +0 -1
  50. data/spec/fixtures/unit/puppetfile/default-branch-override/Puppetfile +0 -5
  51. data/spec/fixtures/unit/puppetfile/duplicate-module-error/Puppetfile +0 -10
  52. data/spec/fixtures/unit/puppetfile/forge-override/Puppetfile +0 -8
  53. data/spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile +0 -1
  54. data/spec/fixtures/unit/puppetfile/load-error/Puppetfile +0 -1
  55. data/spec/fixtures/unit/puppetfile/name-error/Puppetfile +0 -1
  56. data/spec/fixtures/unit/puppetfile/valid-forge-with-version/Puppetfile +0 -1
  57. data/spec/fixtures/unit/puppetfile/valid-forge-without-version/Puppetfile +0 -1
  58. data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile +0 -10
  59. data/spec/fixtures/unit/puppetfile/various-modules/Puppetfile.new +0 -10
  60. data/spec/fixtures/unit/util/purgeable/managed_one/expected_1 +0 -0
  61. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_symlink_file +0 -1
  62. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_allowlisted_2/ignored_1 +0 -0
  63. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_expected_1 +0 -0
  64. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_unmanaged_1 +0 -0
  65. data/spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/unmanaged_symlink_dir +0 -1
  66. data/spec/fixtures/unit/util/purgeable/managed_one/managed_symlink_dir +0 -1
  67. data/spec/fixtures/unit/util/purgeable/managed_one/unmanaged_1 +0 -0
  68. data/spec/fixtures/unit/util/purgeable/managed_one/unmanaged_symlink_file +0 -1
  69. data/spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3 +0 -0
  70. data/spec/fixtures/unit/util/purgeable/managed_two/expected_2 +0 -0
  71. data/spec/fixtures/unit/util/purgeable/managed_two/unmanaged_2 +0 -0
  72. data/spec/fixtures/unit/util/subprocess/runner/no-execute.sh +0 -3
  73. data/spec/integration/git/rugged/bare_repository_spec.rb +0 -13
  74. data/spec/integration/git/rugged/cache_spec.rb +0 -33
  75. data/spec/integration/git/rugged/thin_repository_spec.rb +0 -14
  76. data/spec/integration/git/rugged/working_repository_spec.rb +0 -48
  77. data/spec/integration/git/shellgit/bare_repository_spec.rb +0 -13
  78. data/spec/integration/git/shellgit/thin_repository_spec.rb +0 -14
  79. data/spec/integration/git/shellgit/working_repository_spec.rb +0 -13
  80. data/spec/integration/git/stateful_repository_spec.rb +0 -159
  81. data/spec/integration/util/purageable_spec.rb +0 -41
  82. data/spec/matchers/exit_with.rb +0 -28
  83. data/spec/matchers/match_realpath.rb +0 -18
  84. data/spec/r10k-mocks/mock_config.rb +0 -33
  85. data/spec/r10k-mocks/mock_env.rb +0 -18
  86. data/spec/r10k-mocks/mock_source.rb +0 -17
  87. data/spec/r10k-mocks.rb +0 -3
  88. data/spec/shared-contexts/git-fixtures.rb +0 -55
  89. data/spec/shared-contexts/tarball.rb +0 -32
  90. data/spec/shared-examples/deploy-actions.rb +0 -69
  91. data/spec/shared-examples/git/bare_repository.rb +0 -132
  92. data/spec/shared-examples/git/thin_repository.rb +0 -26
  93. data/spec/shared-examples/git/working_repository.rb +0 -207
  94. data/spec/shared-examples/git-repository.rb +0 -38
  95. data/spec/shared-examples/puppetfile-action.rb +0 -39
  96. data/spec/shared-examples/settings/ancestry.rb +0 -44
  97. data/spec/shared-examples/subprocess-runner.rb +0 -89
  98. data/spec/spec_helper.rb +0 -41
  99. data/spec/unit/action/cri_runner_spec.rb +0 -72
  100. data/spec/unit/action/deploy/deploy_helpers_spec.rb +0 -38
  101. data/spec/unit/action/deploy/display_spec.rb +0 -61
  102. data/spec/unit/action/deploy/environment_spec.rb +0 -640
  103. data/spec/unit/action/deploy/module_spec.rb +0 -476
  104. data/spec/unit/action/puppetfile/check_spec.rb +0 -53
  105. data/spec/unit/action/puppetfile/cri_runner_spec.rb +0 -47
  106. data/spec/unit/action/puppetfile/install_spec.rb +0 -112
  107. data/spec/unit/action/puppetfile/purge_spec.rb +0 -60
  108. data/spec/unit/action/runner_spec.rb +0 -407
  109. data/spec/unit/action/visitor_spec.rb +0 -39
  110. data/spec/unit/cli_spec.rb +0 -9
  111. data/spec/unit/deployment/config_spec.rb +0 -33
  112. data/spec/unit/deployment_spec.rb +0 -162
  113. data/spec/unit/environment/bare_spec.rb +0 -13
  114. data/spec/unit/environment/base_spec.rb +0 -122
  115. data/spec/unit/environment/git_spec.rb +0 -114
  116. data/spec/unit/environment/name_spec.rb +0 -181
  117. data/spec/unit/environment/plain_spec.rb +0 -8
  118. data/spec/unit/environment/svn_spec.rb +0 -146
  119. data/spec/unit/environment/tarball_spec.rb +0 -45
  120. data/spec/unit/environment/with_modules_spec.rb +0 -75
  121. data/spec/unit/errors/formatting_spec.rb +0 -84
  122. data/spec/unit/feature_spec.rb +0 -50
  123. data/spec/unit/forge/module_release_spec.rb +0 -213
  124. data/spec/unit/git/alternates_spec.rb +0 -116
  125. data/spec/unit/git/cache_spec.rb +0 -66
  126. data/spec/unit/git/rugged/cache_spec.rb +0 -48
  127. data/spec/unit/git/rugged/credentials_spec.rb +0 -215
  128. data/spec/unit/git/shellgit/cache_spec.rb +0 -27
  129. data/spec/unit/git/stateful_repository_spec.rb +0 -45
  130. data/spec/unit/git_spec.rb +0 -102
  131. data/spec/unit/initializers_spec.rb +0 -68
  132. data/spec/unit/instance_cache_spec.rb +0 -78
  133. data/spec/unit/keyed_factory_spec.rb +0 -51
  134. data/spec/unit/logging/terminaloutputter_spec.rb +0 -53
  135. data/spec/unit/logging_spec.rb +0 -68
  136. data/spec/unit/module/base_spec.rb +0 -118
  137. data/spec/unit/module/forge_spec.rb +0 -271
  138. data/spec/unit/module/git_spec.rb +0 -387
  139. data/spec/unit/module/metadata_file_spec.rb +0 -68
  140. data/spec/unit/module/svn_spec.rb +0 -208
  141. data/spec/unit/module/tarball_spec.rb +0 -70
  142. data/spec/unit/module_loader/puppetfile_spec.rb +0 -421
  143. data/spec/unit/module_spec.rb +0 -114
  144. data/spec/unit/puppetfile_spec.rb +0 -304
  145. data/spec/unit/settings/collection_spec.rb +0 -123
  146. data/spec/unit/settings/container_spec.rb +0 -92
  147. data/spec/unit/settings/definition_spec.rb +0 -79
  148. data/spec/unit/settings/enum_definition_spec.rb +0 -20
  149. data/spec/unit/settings/inheritance_spec.rb +0 -38
  150. data/spec/unit/settings/list_spec.rb +0 -88
  151. data/spec/unit/settings/loader_spec.rb +0 -110
  152. data/spec/unit/settings/uri_definition_spec.rb +0 -23
  153. data/spec/unit/settings_spec.rb +0 -303
  154. data/spec/unit/source/base_spec.rb +0 -31
  155. data/spec/unit/source/exec_spec.rb +0 -81
  156. data/spec/unit/source/git_spec.rb +0 -233
  157. data/spec/unit/source/hash_spec.rb +0 -54
  158. data/spec/unit/source/svn_spec.rb +0 -196
  159. data/spec/unit/source/yaml_spec.rb +0 -42
  160. data/spec/unit/source_spec.rb +0 -10
  161. data/spec/unit/svn/remote_spec.rb +0 -21
  162. data/spec/unit/svn/working_dir_spec.rb +0 -56
  163. data/spec/unit/tarball_spec.rb +0 -57
  164. data/spec/unit/util/attempt_spec.rb +0 -82
  165. data/spec/unit/util/cacheable_spec.rb +0 -23
  166. data/spec/unit/util/commands_spec.rb +0 -61
  167. data/spec/unit/util/downloader_spec.rb +0 -98
  168. data/spec/unit/util/exec_env_spec.rb +0 -56
  169. data/spec/unit/util/purgeable_spec.rb +0 -267
  170. data/spec/unit/util/setopts_spec.rb +0 -83
  171. data/spec/unit/util/subprocess/result_spec.rb +0 -36
  172. data/spec/unit/util/subprocess/runner/posix_spec.rb +0 -7
  173. data/spec/unit/util/subprocess/runner/pump_spec.rb +0 -79
  174. data/spec/unit/util/subprocess/runner/windows_spec.rb +0 -7
  175. data/spec/unit/util/subprocess/subprocess_error_spec.rb +0 -26
  176. data/spec/unit/util/subprocess_spec.rb +0 -65
  177. data/spec/unit/util/symbolize_keys_spec.rb +0 -67
data/r10k.gemspec CHANGED
@@ -23,18 +23,16 @@ Gem::Specification.new do |s|
23
23
  s.license = 'Apache-2.0'
24
24
 
25
25
  s.add_dependency 'colored2', '3.1.2'
26
- s.add_dependency 'cri', '2.15.10'
26
+ s.add_dependency 'cri', '>= 2.15.10'
27
27
 
28
28
  s.add_dependency 'log4r', '1.1.10'
29
29
  s.add_dependency 'multi_json', '~> 1.10'
30
30
 
31
- s.add_dependency 'puppet_forge', '~> 2.3.0'
31
+ s.add_dependency 'puppet_forge', '>= 2.3.0'
32
32
 
33
33
  s.add_dependency 'gettext-setup', '~>0.24'
34
- # These two pins narrow what is allowed by gettext-setup,
35
- # to preserve compatability with Ruby 2.4
36
- s.add_dependency 'fast_gettext', '~> 1.1.0'
37
- s.add_dependency 'gettext', ['>= 3.0.2', '< 3.3.0']
34
+ s.add_dependency 'fast_gettext', ['>= 1.1.0', '< 3.0.0']
35
+ s.add_dependency 'gettext', ['>= 3.0.2', '< 4.0.0']
38
36
 
39
37
  s.add_dependency 'jwt', '~> 2.2.3'
40
38
  s.add_dependency 'minitar', '~> 0.9'
@@ -45,7 +43,7 @@ Gem::Specification.new do |s|
45
43
 
46
44
  s.add_development_dependency 'yard', '~> 0.9.11'
47
45
 
48
- s.files = %x[git ls-files].split($/)
46
+ s.files = %x[git ls-files].split($/).reject { |f| f.match(%r{^spec}) }
49
47
  s.require_path = 'lib'
50
48
  s.bindir = 'bin'
51
49
  s.executables = 'r10k'
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.14.1
4
+ version: 3.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-07 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: cri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.15.10
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.15.10
41
41
  - !ruby/object:Gem::Dependency
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: puppet_forge
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.3.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.3.0
83
83
  - !ruby/object:Gem::Dependency
@@ -98,16 +98,22 @@ dependencies:
98
98
  name: fast_gettext
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.1.0
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: 3.0.0
104
107
  type: :runtime
105
108
  prerelease: false
106
109
  version_requirements: !ruby/object:Gem::Requirement
107
110
  requirements:
108
- - - "~>"
111
+ - - ">="
109
112
  - !ruby/object:Gem::Version
110
113
  version: 1.1.0
114
+ - - "<"
115
+ - !ruby/object:Gem::Version
116
+ version: 3.0.0
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: gettext
113
119
  requirement: !ruby/object:Gem::Requirement
@@ -117,7 +123,7 @@ dependencies:
117
123
  version: 3.0.2
118
124
  - - "<"
119
125
  - !ruby/object:Gem::Version
120
- version: 3.3.0
126
+ version: 4.0.0
121
127
  type: :runtime
122
128
  prerelease: false
123
129
  version_requirements: !ruby/object:Gem::Requirement
@@ -127,7 +133,7 @@ dependencies:
127
133
  version: 3.0.2
128
134
  - - "<"
129
135
  - !ruby/object:Gem::Version
130
- version: 3.3.0
136
+ version: 4.0.0
131
137
  - !ruby/object:Gem::Dependency
132
138
  name: jwt
133
139
  requirement: !ruby/object:Gem::Requirement
@@ -215,7 +221,6 @@ files:
215
221
  - ".github/workflows/rspec_tests.yml"
216
222
  - ".github/workflows/stale.yml"
217
223
  - ".gitignore"
218
- - ".travis.yml"
219
224
  - CHANGELOG.mkd
220
225
  - CODEOWNERS
221
226
  - CONTRIBUTING.mkd
@@ -462,149 +467,6 @@ files:
462
467
  - locales/r10k.pot
463
468
  - r10k.gemspec
464
469
  - r10k.yaml.example
465
- - spec/fixtures/empty/.empty
466
- - spec/fixtures/integration/git/puppet-boolean-bare.tar
467
- - spec/fixtures/module/forge/bad_module/metadata.json
468
- - spec/fixtures/module/forge/eight_hundred/Modulefile
469
- - spec/fixtures/module/forge/eight_hundred/metadata.json
470
- - spec/fixtures/tarball/tarball.tar.gz
471
- - spec/fixtures/unit/action/r10k.yaml
472
- - spec/fixtures/unit/action/r10k_cachedir.yaml
473
- - spec/fixtures/unit/action/r10k_creds.yaml
474
- - spec/fixtures/unit/action/r10k_forge_auth.yaml
475
- - spec/fixtures/unit/action/r10k_forge_auth_no_url.yaml
476
- - spec/fixtures/unit/action/r10k_generate_types.yaml
477
- - spec/fixtures/unit/action/r10k_logging.yaml
478
- - spec/fixtures/unit/action/r10k_puppet_path.yaml
479
- - spec/fixtures/unit/puppetfile/argument-error/Puppetfile
480
- - spec/fixtures/unit/puppetfile/default-branch-override/Puppetfile
481
- - spec/fixtures/unit/puppetfile/duplicate-module-error/Puppetfile
482
- - spec/fixtures/unit/puppetfile/forge-override/Puppetfile
483
- - spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile
484
- - spec/fixtures/unit/puppetfile/load-error/Puppetfile
485
- - spec/fixtures/unit/puppetfile/name-error/Puppetfile
486
- - spec/fixtures/unit/puppetfile/valid-forge-with-version/Puppetfile
487
- - spec/fixtures/unit/puppetfile/valid-forge-without-version/Puppetfile
488
- - spec/fixtures/unit/puppetfile/various-modules/Puppetfile
489
- - spec/fixtures/unit/puppetfile/various-modules/Puppetfile.new
490
- - spec/fixtures/unit/util/purgeable/managed_one/expected_1
491
- - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/managed_symlink_file
492
- - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_allowlisted_2/ignored_1
493
- - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_expected_1
494
- - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/subdir_unmanaged_1
495
- - spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1/unmanaged_symlink_dir
496
- - spec/fixtures/unit/util/purgeable/managed_one/managed_symlink_dir
497
- - spec/fixtures/unit/util/purgeable/managed_one/unmanaged_1
498
- - spec/fixtures/unit/util/purgeable/managed_one/unmanaged_symlink_file
499
- - spec/fixtures/unit/util/purgeable/managed_two/.hidden/unmanaged_3
500
- - spec/fixtures/unit/util/purgeable/managed_two/expected_2
501
- - spec/fixtures/unit/util/purgeable/managed_two/unmanaged_2
502
- - spec/fixtures/unit/util/subprocess/runner/no-execute.sh
503
- - spec/integration/git/rugged/bare_repository_spec.rb
504
- - spec/integration/git/rugged/cache_spec.rb
505
- - spec/integration/git/rugged/thin_repository_spec.rb
506
- - spec/integration/git/rugged/working_repository_spec.rb
507
- - spec/integration/git/shellgit/bare_repository_spec.rb
508
- - spec/integration/git/shellgit/thin_repository_spec.rb
509
- - spec/integration/git/shellgit/working_repository_spec.rb
510
- - spec/integration/git/stateful_repository_spec.rb
511
- - spec/integration/util/purageable_spec.rb
512
- - spec/matchers/exit_with.rb
513
- - spec/matchers/match_realpath.rb
514
- - spec/r10k-mocks.rb
515
- - spec/r10k-mocks/mock_config.rb
516
- - spec/r10k-mocks/mock_env.rb
517
- - spec/r10k-mocks/mock_source.rb
518
- - spec/shared-contexts/git-fixtures.rb
519
- - spec/shared-contexts/tarball.rb
520
- - spec/shared-examples/deploy-actions.rb
521
- - spec/shared-examples/git-repository.rb
522
- - spec/shared-examples/git/bare_repository.rb
523
- - spec/shared-examples/git/thin_repository.rb
524
- - spec/shared-examples/git/working_repository.rb
525
- - spec/shared-examples/puppetfile-action.rb
526
- - spec/shared-examples/settings/ancestry.rb
527
- - spec/shared-examples/subprocess-runner.rb
528
- - spec/spec_helper.rb
529
- - spec/unit/action/cri_runner_spec.rb
530
- - spec/unit/action/deploy/deploy_helpers_spec.rb
531
- - spec/unit/action/deploy/display_spec.rb
532
- - spec/unit/action/deploy/environment_spec.rb
533
- - spec/unit/action/deploy/module_spec.rb
534
- - spec/unit/action/puppetfile/check_spec.rb
535
- - spec/unit/action/puppetfile/cri_runner_spec.rb
536
- - spec/unit/action/puppetfile/install_spec.rb
537
- - spec/unit/action/puppetfile/purge_spec.rb
538
- - spec/unit/action/runner_spec.rb
539
- - spec/unit/action/visitor_spec.rb
540
- - spec/unit/cli_spec.rb
541
- - spec/unit/deployment/config_spec.rb
542
- - spec/unit/deployment_spec.rb
543
- - spec/unit/environment/bare_spec.rb
544
- - spec/unit/environment/base_spec.rb
545
- - spec/unit/environment/git_spec.rb
546
- - spec/unit/environment/name_spec.rb
547
- - spec/unit/environment/plain_spec.rb
548
- - spec/unit/environment/svn_spec.rb
549
- - spec/unit/environment/tarball_spec.rb
550
- - spec/unit/environment/with_modules_spec.rb
551
- - spec/unit/errors/formatting_spec.rb
552
- - spec/unit/feature_spec.rb
553
- - spec/unit/forge/module_release_spec.rb
554
- - spec/unit/git/alternates_spec.rb
555
- - spec/unit/git/cache_spec.rb
556
- - spec/unit/git/rugged/cache_spec.rb
557
- - spec/unit/git/rugged/credentials_spec.rb
558
- - spec/unit/git/shellgit/cache_spec.rb
559
- - spec/unit/git/stateful_repository_spec.rb
560
- - spec/unit/git_spec.rb
561
- - spec/unit/initializers_spec.rb
562
- - spec/unit/instance_cache_spec.rb
563
- - spec/unit/keyed_factory_spec.rb
564
- - spec/unit/logging/terminaloutputter_spec.rb
565
- - spec/unit/logging_spec.rb
566
- - spec/unit/module/base_spec.rb
567
- - spec/unit/module/forge_spec.rb
568
- - spec/unit/module/git_spec.rb
569
- - spec/unit/module/metadata_file_spec.rb
570
- - spec/unit/module/svn_spec.rb
571
- - spec/unit/module/tarball_spec.rb
572
- - spec/unit/module_loader/puppetfile_spec.rb
573
- - spec/unit/module_spec.rb
574
- - spec/unit/puppetfile_spec.rb
575
- - spec/unit/settings/collection_spec.rb
576
- - spec/unit/settings/container_spec.rb
577
- - spec/unit/settings/definition_spec.rb
578
- - spec/unit/settings/enum_definition_spec.rb
579
- - spec/unit/settings/inheritance_spec.rb
580
- - spec/unit/settings/list_spec.rb
581
- - spec/unit/settings/loader_spec.rb
582
- - spec/unit/settings/uri_definition_spec.rb
583
- - spec/unit/settings_spec.rb
584
- - spec/unit/source/base_spec.rb
585
- - spec/unit/source/exec_spec.rb
586
- - spec/unit/source/git_spec.rb
587
- - spec/unit/source/hash_spec.rb
588
- - spec/unit/source/svn_spec.rb
589
- - spec/unit/source/yaml_spec.rb
590
- - spec/unit/source_spec.rb
591
- - spec/unit/svn/remote_spec.rb
592
- - spec/unit/svn/working_dir_spec.rb
593
- - spec/unit/tarball_spec.rb
594
- - spec/unit/util/attempt_spec.rb
595
- - spec/unit/util/cacheable_spec.rb
596
- - spec/unit/util/commands_spec.rb
597
- - spec/unit/util/downloader_spec.rb
598
- - spec/unit/util/exec_env_spec.rb
599
- - spec/unit/util/purgeable_spec.rb
600
- - spec/unit/util/setopts_spec.rb
601
- - spec/unit/util/subprocess/result_spec.rb
602
- - spec/unit/util/subprocess/runner/posix_spec.rb
603
- - spec/unit/util/subprocess/runner/pump_spec.rb
604
- - spec/unit/util/subprocess/runner/windows_spec.rb
605
- - spec/unit/util/subprocess/subprocess_error_spec.rb
606
- - spec/unit/util/subprocess_spec.rb
607
- - spec/unit/util/symbolize_keys_spec.rb
608
470
  homepage: https://github.com/puppetlabs/r10k
609
471
  licenses:
610
472
  - Apache-2.0
data/.travis.yml DELETED
@@ -1,42 +0,0 @@
1
- ---
2
- language: ruby
3
- bundler_args: "--without system"
4
- script: "bundle exec rspec --color --format documentation spec"
5
- notifications:
6
- email: false
7
- sudo: false
8
- jdk:
9
- - openjdk11
10
- before_install: gem install bundler -v '< 2' --no-document
11
- matrix:
12
- include:
13
- - stage: r10k tests
14
- rvm: 2.3.0
15
- - stage: r10k container tests
16
- dist: focal
17
- language: ruby
18
- services:
19
- - docker
20
- rvm: 2.6.6
21
- env:
22
- - DOCKER_COMPOSE_VERSION=1.28.6
23
- - DOCKER_BUILDX_VERSION=0.5.1
24
- # necessary to prevent overwhelming TravisCI build output limits
25
- - DOCKER_BUILD_FLAGS="--progress plain"
26
- before_install:
27
- - sudo rm /usr/local/bin/docker-compose
28
- - curl --location https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname --kernel-name`-`uname --machine` > docker-compose
29
- - chmod +x docker-compose
30
- - sudo mv docker-compose /usr/local/bin
31
- - mkdir -vp ~/.docker/cli-plugins
32
- - curl --location https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 > ~/.docker/cli-plugins/docker-buildx
33
- - chmod +x ~/.docker/cli-plugins/docker-buildx
34
- - docker buildx create --name travis_builder --use
35
- script:
36
- - set -e
37
- - cd docker
38
- - make lint
39
- - make build
40
- - make test
41
- after_script:
42
- - docker buildx rm travis_builder
File without changes
@@ -1 +0,0 @@
1
- I am bad JSON!
@@ -1,8 +0,0 @@
1
- name 'branan-eight_hundred'
2
- version '8.0.0'
3
- source 'https://github.com/branan/puppet-module-eight_hundred'
4
- author 'Branan Purvine-Riley'
5
- license 'Apache License 2.0'
6
- summary '800 modules! WOOOOOOO!'
7
- description '800 modules! WOOOOOOOOOOOOOOOOOO!'
8
- project_page 'https://github.com/branan/puppet-module-eight_hundred'
@@ -1,19 +0,0 @@
1
- {
2
- "checksums": {
3
- "Modulefile": "1e780d794bcd6629dc3006129fc02edf"
4
- },
5
- "license": "Apache License 2.0",
6
- "types": [
7
-
8
- ],
9
- "version": "8.0.0",
10
- "dependencies": [
11
-
12
- ],
13
- "summary": "800 modules! WOOOOOOO!",
14
- "source": "https://github.com/branan/puppet-module-eight_hundred",
15
- "description": "800 modules! WOOOOOOOOOOOOOOOOOO!",
16
- "author": "Branan Purvine-Riley",
17
- "name": "branan-eight_hundred",
18
- "project_page": "https://github.com/branan/puppet-module-eight_hundred"
19
- }
Binary file
@@ -1,5 +0,0 @@
1
- ---
2
- cachedir: /config_cachedir
3
- deploy:
4
- generate_types: /config_generate_types
5
- puppet_path: /config_puppet_path
@@ -1,2 +0,0 @@
1
- ---
2
- cachedir: /config_cachedir
@@ -1,9 +0,0 @@
1
- ---
2
- git:
3
- private_key: '/global/config/private/key'
4
- oauth_token: '/global/config/oauth/token'
5
- repositories:
6
- - remote: 'git@myfakegitserver.com:user/repo.git'
7
- private_key: '/config/private/key'
8
- - remote: 'https://myfakegitserver.com/user/repo.git'
9
- oauth_token: '/config/oauth/token'
@@ -1,4 +0,0 @@
1
- ---
2
- forge:
3
- baseurl: 'http://private-forge.com'
4
- authorization_token: 'faketoken'
@@ -1,3 +0,0 @@
1
- ---
2
- forge:
3
- authorization_token: 'faketoken'
@@ -1,3 +0,0 @@
1
- ---
2
- deploy:
3
- generate_types: /config_generate_types
@@ -1,12 +0,0 @@
1
- ---
2
- logging:
3
- level: FATAL
4
-
5
- outputs:
6
- - type: file
7
- parameters:
8
- filename: r10k.log
9
-
10
- - type: syslog
11
-
12
- disable_default_stderr: true
@@ -1,3 +0,0 @@
1
- ---
2
- deploy:
3
- puppet_path: /config_puppet_path
@@ -1 +0,0 @@
1
- mod 'branan/eight_hundred', '1.0.0', :git => 'https://github.com/branan/eight_hundred', :ref => 'master'
@@ -1,5 +0,0 @@
1
- mod 'cd4pe',
2
- :git => 'test@randomurl.com:something/some_module.git',
3
- :ref => 'expected_ref',
4
- :default_branch => 'here_lies_the_default_branch'
5
-
@@ -1,10 +0,0 @@
1
- forge "http://forge.puppetlabs.com"
2
-
3
- mod "puppetlabs/stdlib", '4.11.0'
4
- mod "puppetlabs/stdlib", '4.12.0'
5
- mod "puppetlabs/concat", '2.1.0'
6
- mod "otheruser/concat", '2.1.0'
7
-
8
- mod 'apache',
9
- :git => 'https://github.com/puppetlabs/puppetlabs-apache',
10
- :branch => 'docs_experiment'
@@ -1,8 +0,0 @@
1
- forge "my.custom.forge.com"
2
-
3
- mod "puppetlabs/stdlib", '4.12.0'
4
- mod "puppetlabs/concat", '2.1.0'
5
-
6
- mod 'apache',
7
- :git => 'https://github.com/puppetlabs/puppetlabs-apache',
8
- :branch => 'docs_experiment'
@@ -1 +0,0 @@
1
- mod 'branan/eight_hundred' :git => 'https://github.com/branan/eight_hundred'
@@ -1 +0,0 @@
1
- require 'a-shrubbery!'
@@ -1 +0,0 @@
1
- mod 'branan/eight_hundred', undefined_lookup_function('eight_hundred')
@@ -1 +0,0 @@
1
- mod 'puppetlabs/apt', '2.1.1'
@@ -1 +0,0 @@
1
- mod 'puppetlabs/apt'
@@ -1,10 +0,0 @@
1
- mod 'puppetlabs/apt', '2.1.1'
2
- mod 'puppetlabs/stdlib', :latest
3
- mod 'puppetlabs/concat'
4
- mod 'puppetlabs/rpm', '2.1.1-pre1'
5
- mod 'foo', git: 'this/remote', branch: 'main'
6
- mod 'bar', git: 'this/remote', tag: 'v1.2.3'
7
- mod 'baz', git: 'this/remote', commit: '123abc456'
8
- mod 'fizz', git: 'this/remote', ref: '1234567890abcdef1234567890abcdef12345678'
9
- mod 'buzz', git: 'this/remote', ref: 'refs/heads/main'
10
- mod 'canary', local: true
@@ -1,10 +0,0 @@
1
- mod 'puppetlabs/apt', '3.0.0'
2
- mod 'puppetlabs/stdlib', :latest
3
- mod 'puppetlabs/concat'
4
- mod 'puppetlabs/rpm', '2.1.1-pre1'
5
- mod 'foo', git: 'this/remote', branch: 'main'
6
- mod 'bar', git: 'this/remote', tag: 'v1.2.3'
7
- mod 'baz', git: 'this/remote', commit: '123abc456'
8
- mod 'fizz', git: 'this/remote', ref: '1234567890abcdef1234567890abcdef12345678'
9
- mod 'buzz', git: 'this/remote', ref: 'refs/heads/main'
10
- mod 'canary', local: true
@@ -1 +0,0 @@
1
- spec/fixtures/unit/util/purgeable/managed_one/managed_subdir_1
@@ -1 +0,0 @@
1
- spec/fixtures/unit/util/purgeable/managed_one/expected_1
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- echo "This was supposed to be non-executable..."
@@ -1,13 +0,0 @@
1
- require 'spec_helper'
2
- require 'r10k/git/rugged/bare_repository'
3
-
4
- describe R10K::Git::Rugged::BareRepository, :if => R10K::Features.available?(:rugged) do
5
- include_context 'Git integration'
6
-
7
- let(:dirname) { 'bare-repo.git' }
8
-
9
- subject { described_class.new(basedir, dirname) }
10
-
11
- it_behaves_like 'a git repository'
12
- it_behaves_like 'a git bare repository'
13
- end
@@ -1,33 +0,0 @@
1
- require 'spec_helper'
2
- require 'r10k/git/rugged/cache'
3
-
4
- describe R10K::Git::Rugged::Cache, :if => R10K::Features.available?(:rugged) do
5
- include_context 'Git integration'
6
-
7
- let(:dirname) { 'working-repo' }
8
- let(:remote_name) { 'origin' }
9
-
10
- subject { described_class.new(remote) }
11
-
12
- context "syncing with the remote" do
13
- before(:each) do
14
- subject.reset!
15
- end
16
-
17
- describe "with the correct configuration" do
18
- it "is able to sync with the remote" do
19
- subject.sync
20
- expect(subject.synced?).to eq(true)
21
- end
22
- end
23
-
24
- describe "with a out of date cached remote" do
25
- it "updates the cached remote configuration" do
26
- subject.repo.update_remote('foo', remote_name)
27
- expect(subject.repo.remotes[remote_name]).to eq('foo')
28
- subject.sync
29
- expect(subject.repo.remotes[remote_name]).to eq(remote)
30
- end
31
- end
32
- end
33
- end
@@ -1,14 +0,0 @@
1
- require 'spec_helper'
2
- require 'r10k/git/rugged/thin_repository'
3
-
4
- describe R10K::Git::Rugged::ThinRepository, :if => R10K::Features.available?(:rugged) do
5
- include_context 'Git integration'
6
-
7
- let(:dirname) { 'working-repo' }
8
-
9
- let(:cacherepo) { R10K::Git::Rugged::Cache.generate(remote) }
10
-
11
- subject { described_class.new(basedir, dirname, cacherepo) }
12
-
13
- it_behaves_like "a git thin repository"
14
- end
@@ -1,48 +0,0 @@
1
- require 'spec_helper'
2
- require 'r10k/git/rugged/working_repository'
3
-
4
- describe R10K::Git::Rugged::WorkingRepository, :if => R10K::Features.available?(:rugged) do
5
- include_context 'Git integration'
6
-
7
- let(:dirname) { 'working-repo' }
8
-
9
- subject { described_class.new(basedir, dirname) }
10
-
11
- it_behaves_like 'a git repository'
12
- it_behaves_like 'a git working repository'
13
-
14
- describe "checking out an unresolvable ref" do
15
- it "raises an error indicating that the ref was unresolvable" do
16
- expect(subject).to receive(:resolve).with("unresolvable")
17
- expect {
18
- subject.checkout("unresolvable")
19
- }.to raise_error(R10K::Git::GitError, /Unable to check out unresolvable ref 'unresolvable'/)
20
- end
21
- end
22
-
23
- context "checking out a specific SHA" do
24
- let(:_rugged_repo) { double("Repository") }
25
-
26
- before do
27
- subject.clone(remote)
28
- allow(subject).to receive(:with_repo).and_yield(_rugged_repo)
29
- allow(subject).to receive(:resolve).and_return("157011a4eaa27f1202a9d94335ee4876b26d377e")
30
- end
31
-
32
- describe "with force" do
33
- it "does not receive a checkout call" do
34
- expect(_rugged_repo).to_not receive(:checkout)
35
- expect(_rugged_repo).to receive(:reset)
36
- subject.checkout("157011a4eaa27f1202a9d94335ee4876b26d377e", {:force => true})
37
- end
38
- end
39
-
40
- describe "without force" do
41
- it "does receive a checkout call" do
42
- expect(_rugged_repo).to receive(:checkout)
43
- expect(_rugged_repo).to_not receive(:reset)
44
- subject.checkout("157011a4eaa27f1202a9d94335ee4876b26d377e", {:force => false})
45
- end
46
- end
47
- end
48
- end