r10k 1.4.2 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. data/.travis.yml +2 -0
  2. data/CHANGELOG.mkd +192 -0
  3. data/CONTRIBUTING.mkd +3 -3
  4. data/Gemfile +4 -0
  5. data/README.mkd +13 -6
  6. data/doc/dynamic-environments/configuration.mkd +77 -8
  7. data/doc/dynamic-environments/git-environments.mkd +12 -2
  8. data/doc/dynamic-environments/quickstart.mkd +6 -0
  9. data/doc/faq.mkd +6 -6
  10. data/doc/git/cloning-and-mirroring.mkd +60 -0
  11. data/doc/git/providers.mkd +68 -0
  12. data/integration/Gemfile +3 -0
  13. data/integration/README.mkd +29 -0
  14. data/integration/configs/README.mkd +7 -0
  15. data/integration/configs/pe/centos-6-64mda +25 -0
  16. data/integration/configs/pe/centos-7-64mda +25 -0
  17. data/integration/configs/pe/debian-6-64mda +25 -0
  18. data/integration/configs/pe/debian-7-64mda +25 -0
  19. data/integration/configs/pe/redhat-6-64mda +25 -0
  20. data/integration/configs/pe/redhat-7-64mda +25 -0
  21. data/integration/configs/pe/sles-11-64mda +25 -0
  22. data/integration/configs/pe/ubuntu-1004-64mda +25 -0
  23. data/integration/configs/pe/ubuntu-1204-64mda +25 -0
  24. data/integration/configs/pe/ubuntu-1404-64mda +25 -0
  25. data/integration/files/README.mkd +4 -0
  26. data/integration/files/hiera.yaml +8 -0
  27. data/integration/files/modules/helloworld/manifests/init.pp +3 -0
  28. data/integration/files/modules/hieratest/manifests/init.pp +3 -0
  29. data/integration/files/modules/unicode/files/pretend_unicode +1 -0
  30. data/integration/files/modules/unicode/manifests/init.pp +6 -0
  31. data/integration/files/pre-suite/prod_env.config +3 -0
  32. data/integration/files/r10k_conf.yaml.erb +9 -0
  33. data/integration/lib/README.mkd +4 -0
  34. data/integration/lib/git_utils.rb +205 -0
  35. data/integration/lib/master_manipulator.rb +205 -0
  36. data/integration/lib/r10k_utils.rb +166 -0
  37. data/integration/manifests/README.mkd +4 -0
  38. data/integration/pre-suite/00_pe_install.rb +4 -0
  39. data/integration/pre-suite/01_git_config.rb +59 -0
  40. data/integration/pre-suite/02_pe_r10k.rb +60 -0
  41. data/integration/pre-suite/03_test_utils.rb +17 -0
  42. data/integration/pre-suite/README.mkd +5 -0
  43. data/integration/test_run_scripts/README.mkd +5 -0
  44. data/integration/test_run_scripts/all_tests-rugged-pe-centos6.sh +20 -0
  45. data/integration/test_run_scripts/all_tests-rugged-pe-rhel7.sh +20 -0
  46. data/integration/test_run_scripts/all_tests-rugged-pe-sles11.sh +20 -0
  47. data/integration/test_run_scripts/all_tests-rugged-pe-ubuntu1204.sh +20 -0
  48. data/integration/test_run_scripts/all_tests-rugged-pe-ubuntu1404.sh +20 -0
  49. data/integration/test_run_scripts/all_tests-shellgit-pe-centos6.sh +20 -0
  50. data/integration/test_run_scripts/all_tests-shellgit-pe-rhel7.sh +20 -0
  51. data/integration/test_run_scripts/all_tests-shellgit-pe-sles11.sh +20 -0
  52. data/integration/test_run_scripts/all_tests-shellgit-pe-ubuntu1204.sh +20 -0
  53. data/integration/test_run_scripts/all_tests-shellgit-pe-ubuntu1404.sh +20 -0
  54. data/integration/test_run_scripts/basic_functionality/all_tests-pe-centos6.sh +20 -0
  55. data/integration/test_run_scripts/command_line/all_tests-pe-centos6.sh +20 -0
  56. data/integration/test_run_scripts/git_source/all_tests-pe-centos6.sh +20 -0
  57. data/integration/test_run_scripts/user_scenario/basic_workflow/all_tests-pe-centos6.sh +20 -0
  58. data/integration/test_run_scripts/user_scenario/complex_workflow/all_tests-pe-centos6.sh +20 -0
  59. data/integration/tests/README.mkd +4 -0
  60. data/integration/tests/basic_functionality/negative/neg_deploy_with_invalid_r10k_yaml.rb +46 -0
  61. data/integration/tests/basic_functionality/negative/neg_deploy_with_missing_r10k_yaml.rb +27 -0
  62. data/integration/tests/command_line/deploy_env_without_mod_update.rb +75 -0
  63. data/integration/tests/command_line/negative/neg_deploy_env_with_module_update.rb +76 -0
  64. data/integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb +22 -0
  65. data/integration/tests/command_line/negative/neg_invalid_cli_env_flag.rb +22 -0
  66. data/integration/tests/command_line/negative/neg_invalid_cmd_line_arg.rb +24 -0
  67. data/integration/tests/git_source/git_source_git.rb +123 -0
  68. data/integration/tests/git_source/git_source_ssh.rb +84 -0
  69. data/integration/tests/git_source/git_source_submodule.rb +69 -0
  70. data/integration/tests/git_source/negative/neg_git_broken_remote.rb +37 -0
  71. data/integration/tests/git_source/negative/neg_git_unauthorized_https.rb +45 -0
  72. data/integration/tests/git_source/negative/neg_git_unauthorized_ssh.rb +72 -0
  73. data/integration/tests/git_source/negative/neg_git_unicode_branch.rb +34 -0
  74. data/integration/tests/user_scenario/basic_workflow/multi_env_1000_branches.rb +66 -0
  75. data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module.rb +110 -0
  76. data/integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb +113 -0
  77. data/integration/tests/user_scenario/basic_workflow/multi_env_hiera.rb +93 -0
  78. data/integration/tests/user_scenario/basic_workflow/multi_env_multi_source.rb +132 -0
  79. data/integration/tests/user_scenario/basic_workflow/multi_source_custom_forge_git_module.rb +160 -0
  80. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_basedir.rb +45 -0
  81. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_forge_module.rb +43 -0
  82. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module.rb +40 -0
  83. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module_ref.rb +42 -0
  84. data/integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_remote.rb +44 -0
  85. data/integration/tests/user_scenario/basic_workflow/negative/neg_branch_name_collision.rb +63 -0
  86. data/integration/tests/user_scenario/basic_workflow/negative/neg_disk_full.rb +73 -0
  87. data/integration/tests/user_scenario/basic_workflow/negative/neg_duplicate_module_names.rb +45 -0
  88. data/integration/tests/user_scenario/basic_workflow/negative/neg_inaccessible_forge.rb +51 -0
  89. data/integration/tests/user_scenario/basic_workflow/negative/neg_invalid_env_name.rb +33 -0
  90. data/integration/tests/user_scenario/basic_workflow/negative/neg_invalid_puppet_file.rb +35 -0
  91. data/integration/tests/user_scenario/basic_workflow/negative/neg_module_specified_at_deleted_release.rb +44 -0
  92. data/integration/tests/user_scenario/basic_workflow/negative/neg_read_only.rb +57 -0
  93. data/integration/tests/user_scenario/basic_workflow/negative/neg_specify_deleted_forge_module.rb +44 -0
  94. data/integration/tests/user_scenario/basic_workflow/single_env_10000_files.rb +73 -0
  95. data/integration/tests/user_scenario/basic_workflow/single_env_custom_forge_git_module.rb +103 -0
  96. data/integration/tests/user_scenario/basic_workflow/single_env_custom_forge_module.rb +80 -0
  97. data/integration/tests/user_scenario/basic_workflow/single_env_custom_module.rb +48 -0
  98. data/integration/tests/user_scenario/basic_workflow/single_env_large_files.rb +73 -0
  99. data/integration/tests/user_scenario/basic_workflow/single_env_module_already_installed.rb +81 -0
  100. data/integration/tests/user_scenario/basic_workflow/single_env_module_last_release_deleted.rb +67 -0
  101. data/integration/tests/user_scenario/basic_workflow/single_env_non-existent_base_dir.rb +93 -0
  102. data/integration/tests/user_scenario/basic_workflow/single_env_purge_unmanaged_modules.rb +92 -0
  103. data/integration/tests/user_scenario/basic_workflow/single_env_switch_forge_git_module.rb +116 -0
  104. data/integration/tests/user_scenario/basic_workflow/single_env_unicode_paths.rb +59 -0
  105. data/integration/tests/user_scenario/basic_workflow/single_env_upgrade_forge_mod_revert_change.rb +165 -0
  106. data/integration/tests/user_scenario/complex_workflow/multi_env_add_change_remove.rb +162 -0
  107. data/integration/tests/user_scenario/complex_workflow/multi_env_remove_re-add.rb +110 -0
  108. data/lib/r10k/action/cri_runner.rb +10 -13
  109. data/lib/r10k/cli.rb +3 -8
  110. data/lib/r10k/cli/version.rb +10 -1
  111. data/lib/r10k/deployment/config.rb +26 -6
  112. data/lib/r10k/deployment/config/loader.rb +38 -29
  113. data/lib/r10k/deployment/source.rb +2 -4
  114. data/lib/r10k/environment/git.rb +10 -19
  115. data/lib/r10k/environment/name.rb +86 -0
  116. data/lib/r10k/errors.rb +8 -5
  117. data/lib/r10k/feature.rb +35 -0
  118. data/lib/r10k/feature/collection.rb +23 -0
  119. data/lib/r10k/features.rb +18 -0
  120. data/lib/r10k/git.rb +106 -12
  121. data/lib/r10k/git/alternates.rb +2 -2
  122. data/lib/r10k/git/cache.rb +43 -26
  123. data/lib/r10k/git/errors.rb +12 -6
  124. data/lib/r10k/git/head.rb +3 -0
  125. data/lib/r10k/git/ref.rb +3 -0
  126. data/lib/r10k/git/remote_head.rb +6 -0
  127. data/lib/r10k/git/repository.rb +6 -0
  128. data/lib/r10k/git/rugged.rb +17 -0
  129. data/lib/r10k/git/rugged/bare_repository.rb +86 -0
  130. data/lib/r10k/git/rugged/base_repository.rb +90 -0
  131. data/lib/r10k/git/rugged/cache.rb +11 -0
  132. data/lib/r10k/git/rugged/thin_repository.rb +72 -0
  133. data/lib/r10k/git/rugged/working_repository.rb +99 -0
  134. data/lib/r10k/git/shellgit.rb +9 -0
  135. data/lib/r10k/git/shellgit/bare_repository.rb +29 -0
  136. data/lib/r10k/git/shellgit/base_repository.rb +102 -0
  137. data/lib/r10k/git/shellgit/cache.rb +11 -0
  138. data/lib/r10k/git/shellgit/thin_repository.rb +56 -0
  139. data/lib/r10k/git/shellgit/working_repository.rb +73 -0
  140. data/lib/r10k/git/stateful_repository.rb +80 -0
  141. data/lib/r10k/git/tag.rb +3 -0
  142. data/lib/r10k/git/working_dir.rb +15 -2
  143. data/lib/r10k/logging.rb +73 -36
  144. data/lib/r10k/logging/terminaloutputter.rb +36 -0
  145. data/lib/r10k/module/forge.rb +10 -9
  146. data/lib/r10k/module/git.rb +14 -44
  147. data/lib/r10k/module/metadata_file.rb +31 -0
  148. data/lib/r10k/module/svn.rb +0 -1
  149. data/lib/r10k/module_repository/forge.rb +20 -7
  150. data/lib/r10k/puppetfile.rb +1 -1
  151. data/lib/r10k/settings/container.rb +6 -0
  152. data/lib/r10k/settings/mixin.rb +9 -0
  153. data/lib/r10k/source.rb +2 -3
  154. data/lib/r10k/source/base.rb +5 -5
  155. data/lib/r10k/source/git.rb +11 -86
  156. data/lib/r10k/source/svn.rb +8 -52
  157. data/lib/r10k/util/basedir.rb +4 -4
  158. data/lib/r10k/util/commands.rb +31 -0
  159. data/lib/r10k/util/exec_env.rb +36 -0
  160. data/lib/r10k/util/platform.rb +4 -0
  161. data/lib/r10k/util/purgeable.rb +2 -2
  162. data/lib/r10k/util/subprocess.rb +3 -7
  163. data/lib/r10k/util/subprocess/runner.rb +3 -28
  164. data/lib/r10k/util/subprocess/runner/posix.rb +103 -0
  165. data/lib/r10k/util/subprocess/runner/pump.rb +59 -0
  166. data/lib/r10k/util/subprocess/{windows/runner.rb → runner/windows.rb} +2 -11
  167. data/lib/r10k/util/symbolize_keys.rb +31 -0
  168. data/lib/r10k/version.rb +1 -1
  169. data/lib/shared/puppet/module_tool/metadata.rb +197 -0
  170. data/r10k.gemspec +7 -5
  171. data/spec/fixtures/integration/git/puppet-boolean-bare.tar +0 -0
  172. data/spec/fixtures/module/forge/bad_module/metadata.json +1 -0
  173. data/spec/fixtures/unit/util/subprocess/posix/runner/no-execute.sh +3 -0
  174. data/spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/can_fetch_all_versions_of_a_given_module.yml +171 -26
  175. data/spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/can_fetch_the_latest_version_of_a_given_module.yml +171 -26
  176. data/spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/ignores_deleted_releases.yml +190 -0
  177. data/spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/it_handles_errors_from_forgeapi_puppetlabs_com/raises_an_error_for_a_non-existant_module.yml +34 -0
  178. data/spec/fixtures/vcr/cassettes/R10K_Module_Forge/and_the_expected_version_is_latest/sets_the_expected_version_based_on_the_latest_forge_version.yml +87 -26
  179. data/spec/integration/git/rugged/bare_repository_spec.rb +13 -0
  180. data/spec/integration/git/rugged/thin_repository_spec.rb +14 -0
  181. data/spec/integration/git/rugged/working_repository_spec.rb +13 -0
  182. data/spec/integration/git/shellgit/bare_repository_spec.rb +13 -0
  183. data/spec/integration/git/shellgit/thin_repository_spec.rb +14 -0
  184. data/spec/integration/git/shellgit/working_repository_spec.rb +13 -0
  185. data/spec/integration/git/stateful_repository_spec.rb +104 -0
  186. data/spec/matchers/match_realpath.rb +18 -0
  187. data/spec/shared-contexts/git-fixtures.rb +55 -0
  188. data/spec/shared-examples/git-repository.rb +38 -0
  189. data/spec/shared-examples/git/bare_repository.rb +70 -0
  190. data/spec/shared-examples/git/thin_repository.rb +26 -0
  191. data/spec/shared-examples/git/working_repository.rb +115 -0
  192. data/spec/shared-examples/subprocess-runner.rb +83 -0
  193. data/spec/spec_helper.rb +13 -9
  194. data/spec/unit/action/cri_runner_spec.rb +0 -6
  195. data/spec/unit/action/puppetfile/{cri_action_spec.rb → cri_runner_spec.rb} +0 -0
  196. data/spec/unit/deployment/config/loader_spec.rb +48 -0
  197. data/spec/unit/deployment/config_spec.rb +49 -0
  198. data/spec/unit/environment/git_spec.rb +5 -39
  199. data/spec/unit/environment/name_spec.rb +135 -0
  200. data/spec/unit/feature_spec.rb +50 -0
  201. data/spec/unit/git/alternates_spec.rb +1 -1
  202. data/spec/unit/git/cache_spec.rb +32 -19
  203. data/spec/unit/git/commit_spec.rb +1 -0
  204. data/spec/unit/git/head_spec.rb +1 -6
  205. data/spec/unit/git/ref_spec.rb +0 -23
  206. data/spec/unit/git/rugged/cache_spec.rb +26 -0
  207. data/spec/unit/git/shellgit/cache_spec.rb +27 -0
  208. data/spec/unit/git/stateful_repository_spec.rb +43 -0
  209. data/spec/unit/git/tag_spec.rb +1 -0
  210. data/spec/unit/git/working_dir_spec.rb +1 -0
  211. data/spec/unit/git_spec.rb +74 -0
  212. data/spec/unit/logging/terminaloutputter_spec.rb +53 -0
  213. data/spec/unit/logging_spec.rb +68 -0
  214. data/spec/unit/module/forge_spec.rb +7 -38
  215. data/spec/unit/module/git_spec.rb +7 -38
  216. data/spec/unit/module/metadata_file_spec.rb +69 -0
  217. data/spec/unit/module/svn_spec.rb +0 -4
  218. data/spec/unit/module_repository/forge_spec.rb +22 -1
  219. data/spec/unit/puppet/module_tool/metadata_spec.rb +301 -0
  220. data/spec/unit/settings/container_spec.rb +17 -0
  221. data/spec/unit/source/git_spec.rb +0 -123
  222. data/spec/unit/source/svn_spec.rb +66 -0
  223. data/spec/unit/util/commands_spec.rb +61 -0
  224. data/spec/unit/util/exec_env_spec.rb +56 -0
  225. data/spec/unit/util/subprocess/runner/posix_spec.rb +7 -0
  226. data/spec/unit/util/subprocess/runner/pump_spec.rb +79 -0
  227. data/spec/unit/util/subprocess_spec.rb +3 -2
  228. data/spec/unit/util/symbolize_keys_spec.rb +51 -0
  229. metadata +226 -45
  230. data/lib/r10k/execution.rb +0 -47
  231. data/lib/r10k/module/metadata.rb +0 -47
  232. data/lib/r10k/util/core_ext/hash_ext.rb +0 -19
  233. data/lib/r10k/util/subprocess/io.rb +0 -7
  234. data/lib/r10k/util/subprocess/posix.rb +0 -4
  235. data/lib/r10k/util/subprocess/posix/io.rb +0 -7
  236. data/lib/r10k/util/subprocess/posix/runner.rb +0 -140
  237. data/lib/r10k/util/subprocess/windows.rb +0 -4
  238. data/lib/r10k/util/subprocess/windows/io.rb +0 -6
  239. data/spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions.yml +0 -42
  240. data/spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions/can_fetch_all_versions_of_a_given_module.yml +0 -42
  241. data/spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions/can_fetch_the_latest_version_of_a_given_module.yml +0 -42
  242. data/spec/unit/deployment/source_spec.rb +0 -24
  243. data/spec/unit/module/metadata_spec.rb +0 -68
  244. data/spec/unit/util/core_ext/hash_ext_spec.rb +0 -63
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r10k
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-13 00:00:00.000000000 Z
12
+ date: 2015-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colored
@@ -43,22 +43,6 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: 2.6.1
46
- - !ruby/object:Gem::Dependency
47
- name: systemu
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 2.5.2
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 2.5.2
62
46
  - !ruby/object:Gem::Dependency
63
47
  name: log4r
64
48
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +66,7 @@ dependencies:
82
66
  requirements:
83
67
  - - ~>
84
68
  - !ruby/object:Gem::Version
85
- version: 1.8.2
69
+ version: '1.10'
86
70
  type: :runtime
87
71
  prerelease: false
88
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +74,7 @@ dependencies:
90
74
  requirements:
91
75
  - - ~>
92
76
  - !ruby/object:Gem::Version
93
- version: 1.8.2
77
+ version: '1.10'
94
78
  - !ruby/object:Gem::Dependency
95
79
  name: json_pure
96
80
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +98,7 @@ dependencies:
114
98
  requirements:
115
99
  - - ~>
116
100
  - !ruby/object:Gem::Version
117
- version: 0.8.8
101
+ version: 0.9.0
118
102
  type: :runtime
119
103
  prerelease: false
120
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +106,7 @@ dependencies:
122
106
  requirements:
123
107
  - - ~>
124
108
  - !ruby/object:Gem::Version
125
- version: 0.8.8
109
+ version: 0.9.0
126
110
  - !ruby/object:Gem::Dependency
127
111
  name: faraday_middleware
128
112
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +130,7 @@ dependencies:
146
130
  requirements:
147
131
  - - ~>
148
132
  - !ruby/object:Gem::Version
149
- version: 0.0.5
133
+ version: 0.0.6
150
134
  type: :runtime
151
135
  prerelease: false
152
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,7 +138,23 @@ dependencies:
154
138
  requirements:
155
139
  - - ~>
156
140
  - !ruby/object:Gem::Version
157
- version: 0.0.5
141
+ version: 0.0.6
142
+ - !ruby/object:Gem::Dependency
143
+ name: semantic_puppet
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 0.1.0
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.1.0
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: rspec
160
160
  requirement: !ruby/object:Gem::Requirement
@@ -187,6 +187,22 @@ dependencies:
187
187
  - - ~>
188
188
  - !ruby/object:Gem::Version
189
189
  version: '2.9'
190
+ - !ruby/object:Gem::Dependency
191
+ name: minitar
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
190
206
  - !ruby/object:Gem::Dependency
191
207
  name: yard
192
208
  requirement: !ruby/object:Gem::Requirement
@@ -231,7 +247,105 @@ files:
231
247
  - doc/dynamic-environments/usage.mkd
232
248
  - doc/dynamic-environments/workflow-guide.mkd
233
249
  - doc/faq.mkd
250
+ - doc/git/cloning-and-mirroring.mkd
251
+ - doc/git/providers.mkd
234
252
  - doc/puppetfile.mkd
253
+ - integration/Gemfile
254
+ - integration/README.mkd
255
+ - integration/configs/README.mkd
256
+ - integration/configs/pe/centos-6-64mda
257
+ - integration/configs/pe/centos-7-64mda
258
+ - integration/configs/pe/debian-6-64mda
259
+ - integration/configs/pe/debian-7-64mda
260
+ - integration/configs/pe/redhat-6-64mda
261
+ - integration/configs/pe/redhat-7-64mda
262
+ - integration/configs/pe/sles-11-64mda
263
+ - integration/configs/pe/ubuntu-1004-64mda
264
+ - integration/configs/pe/ubuntu-1204-64mda
265
+ - integration/configs/pe/ubuntu-1404-64mda
266
+ - integration/files/README.mkd
267
+ - integration/files/hiera.yaml
268
+ - integration/files/modules/helloworld/manifests/init.pp
269
+ - integration/files/modules/hieratest/manifests/init.pp
270
+ - integration/files/modules/unicode/files/pretend_unicode
271
+ - integration/files/modules/unicode/manifests/init.pp
272
+ - integration/files/pre-suite/prod_env.config
273
+ - integration/files/r10k_conf.yaml.erb
274
+ - integration/lib/README.mkd
275
+ - integration/lib/git_utils.rb
276
+ - integration/lib/master_manipulator.rb
277
+ - integration/lib/r10k_utils.rb
278
+ - integration/manifests/README.mkd
279
+ - integration/pre-suite/00_pe_install.rb
280
+ - integration/pre-suite/01_git_config.rb
281
+ - integration/pre-suite/02_pe_r10k.rb
282
+ - integration/pre-suite/03_test_utils.rb
283
+ - integration/pre-suite/README.mkd
284
+ - integration/test_run_scripts/README.mkd
285
+ - integration/test_run_scripts/all_tests-rugged-pe-centos6.sh
286
+ - integration/test_run_scripts/all_tests-rugged-pe-rhel7.sh
287
+ - integration/test_run_scripts/all_tests-rugged-pe-sles11.sh
288
+ - integration/test_run_scripts/all_tests-rugged-pe-ubuntu1204.sh
289
+ - integration/test_run_scripts/all_tests-rugged-pe-ubuntu1404.sh
290
+ - integration/test_run_scripts/all_tests-shellgit-pe-centos6.sh
291
+ - integration/test_run_scripts/all_tests-shellgit-pe-rhel7.sh
292
+ - integration/test_run_scripts/all_tests-shellgit-pe-sles11.sh
293
+ - integration/test_run_scripts/all_tests-shellgit-pe-ubuntu1204.sh
294
+ - integration/test_run_scripts/all_tests-shellgit-pe-ubuntu1404.sh
295
+ - integration/test_run_scripts/basic_functionality/all_tests-pe-centos6.sh
296
+ - integration/test_run_scripts/command_line/all_tests-pe-centos6.sh
297
+ - integration/test_run_scripts/git_source/all_tests-pe-centos6.sh
298
+ - integration/test_run_scripts/user_scenario/basic_workflow/all_tests-pe-centos6.sh
299
+ - integration/test_run_scripts/user_scenario/complex_workflow/all_tests-pe-centos6.sh
300
+ - integration/tests/README.mkd
301
+ - integration/tests/basic_functionality/negative/neg_deploy_with_invalid_r10k_yaml.rb
302
+ - integration/tests/basic_functionality/negative/neg_deploy_with_missing_r10k_yaml.rb
303
+ - integration/tests/command_line/deploy_env_without_mod_update.rb
304
+ - integration/tests/command_line/negative/neg_deploy_env_with_module_update.rb
305
+ - integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
306
+ - integration/tests/command_line/negative/neg_invalid_cli_env_flag.rb
307
+ - integration/tests/command_line/negative/neg_invalid_cmd_line_arg.rb
308
+ - integration/tests/git_source/git_source_git.rb
309
+ - integration/tests/git_source/git_source_ssh.rb
310
+ - integration/tests/git_source/git_source_submodule.rb
311
+ - integration/tests/git_source/negative/neg_git_broken_remote.rb
312
+ - integration/tests/git_source/negative/neg_git_unauthorized_https.rb
313
+ - integration/tests/git_source/negative/neg_git_unauthorized_ssh.rb
314
+ - integration/tests/git_source/negative/neg_git_unicode_branch.rb
315
+ - integration/tests/user_scenario/basic_workflow/multi_env_1000_branches.rb
316
+ - integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module.rb
317
+ - integration/tests/user_scenario/basic_workflow/multi_env_custom_forge_git_module_static.rb
318
+ - integration/tests/user_scenario/basic_workflow/multi_env_hiera.rb
319
+ - integration/tests/user_scenario/basic_workflow/multi_env_multi_source.rb
320
+ - integration/tests/user_scenario/basic_workflow/multi_source_custom_forge_git_module.rb
321
+ - integration/tests/user_scenario/basic_workflow/negative/neg_bad_basedir.rb
322
+ - integration/tests/user_scenario/basic_workflow/negative/neg_bad_forge_module.rb
323
+ - integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module.rb
324
+ - integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_module_ref.rb
325
+ - integration/tests/user_scenario/basic_workflow/negative/neg_bad_git_remote.rb
326
+ - integration/tests/user_scenario/basic_workflow/negative/neg_branch_name_collision.rb
327
+ - integration/tests/user_scenario/basic_workflow/negative/neg_disk_full.rb
328
+ - integration/tests/user_scenario/basic_workflow/negative/neg_duplicate_module_names.rb
329
+ - integration/tests/user_scenario/basic_workflow/negative/neg_inaccessible_forge.rb
330
+ - integration/tests/user_scenario/basic_workflow/negative/neg_invalid_env_name.rb
331
+ - integration/tests/user_scenario/basic_workflow/negative/neg_invalid_puppet_file.rb
332
+ - integration/tests/user_scenario/basic_workflow/negative/neg_module_specified_at_deleted_release.rb
333
+ - integration/tests/user_scenario/basic_workflow/negative/neg_read_only.rb
334
+ - integration/tests/user_scenario/basic_workflow/negative/neg_specify_deleted_forge_module.rb
335
+ - integration/tests/user_scenario/basic_workflow/single_env_10000_files.rb
336
+ - integration/tests/user_scenario/basic_workflow/single_env_custom_forge_git_module.rb
337
+ - integration/tests/user_scenario/basic_workflow/single_env_custom_forge_module.rb
338
+ - integration/tests/user_scenario/basic_workflow/single_env_custom_module.rb
339
+ - integration/tests/user_scenario/basic_workflow/single_env_large_files.rb
340
+ - integration/tests/user_scenario/basic_workflow/single_env_module_already_installed.rb
341
+ - integration/tests/user_scenario/basic_workflow/single_env_module_last_release_deleted.rb
342
+ - integration/tests/user_scenario/basic_workflow/single_env_non-existent_base_dir.rb
343
+ - integration/tests/user_scenario/basic_workflow/single_env_purge_unmanaged_modules.rb
344
+ - integration/tests/user_scenario/basic_workflow/single_env_switch_forge_git_module.rb
345
+ - integration/tests/user_scenario/basic_workflow/single_env_unicode_paths.rb
346
+ - integration/tests/user_scenario/basic_workflow/single_env_upgrade_forge_mod_revert_change.rb
347
+ - integration/tests/user_scenario/complex_workflow/multi_env_add_change_remove.rb
348
+ - integration/tests/user_scenario/complex_workflow/multi_env_remove_re-add.rb
235
349
  - lib/r10k.rb
236
350
  - lib/r10k/action/cri_runner.rb
237
351
  - lib/r10k/action/deploy.rb
@@ -268,10 +382,13 @@ files:
268
382
  - lib/r10k/environment.rb
269
383
  - lib/r10k/environment/base.rb
270
384
  - lib/r10k/environment/git.rb
385
+ - lib/r10k/environment/name.rb
271
386
  - lib/r10k/environment/svn.rb
272
387
  - lib/r10k/errors.rb
273
388
  - lib/r10k/errors/formatting.rb
274
- - lib/r10k/execution.rb
389
+ - lib/r10k/feature.rb
390
+ - lib/r10k/feature/collection.rb
391
+ - lib/r10k/features.rb
275
392
  - lib/r10k/git.rb
276
393
  - lib/r10k/git/alternates.rb
277
394
  - lib/r10k/git/cache.rb
@@ -281,16 +398,30 @@ files:
281
398
  - lib/r10k/git/ref.rb
282
399
  - lib/r10k/git/remote_head.rb
283
400
  - lib/r10k/git/repository.rb
401
+ - lib/r10k/git/rugged.rb
402
+ - lib/r10k/git/rugged/bare_repository.rb
403
+ - lib/r10k/git/rugged/base_repository.rb
404
+ - lib/r10k/git/rugged/cache.rb
405
+ - lib/r10k/git/rugged/thin_repository.rb
406
+ - lib/r10k/git/rugged/working_repository.rb
407
+ - lib/r10k/git/shellgit.rb
408
+ - lib/r10k/git/shellgit/bare_repository.rb
409
+ - lib/r10k/git/shellgit/base_repository.rb
410
+ - lib/r10k/git/shellgit/cache.rb
411
+ - lib/r10k/git/shellgit/thin_repository.rb
412
+ - lib/r10k/git/shellgit/working_repository.rb
413
+ - lib/r10k/git/stateful_repository.rb
284
414
  - lib/r10k/git/tag.rb
285
415
  - lib/r10k/git/working_dir.rb
286
416
  - lib/r10k/instance_cache.rb
287
417
  - lib/r10k/keyed_factory.rb
288
418
  - lib/r10k/logging.rb
419
+ - lib/r10k/logging/terminaloutputter.rb
289
420
  - lib/r10k/module.rb
290
421
  - lib/r10k/module/base.rb
291
422
  - lib/r10k/module/forge.rb
292
423
  - lib/r10k/module/git.rb
293
- - lib/r10k/module/metadata.rb
424
+ - lib/r10k/module/metadata_file.rb
294
425
  - lib/r10k/module/svn.rb
295
426
  - lib/r10k/module_repository.rb
296
427
  - lib/r10k/module_repository/forge.rb
@@ -315,71 +446,96 @@ files:
315
446
  - lib/r10k/task_runner.rb
316
447
  - lib/r10k/util/attempt.rb
317
448
  - lib/r10k/util/basedir.rb
318
- - lib/r10k/util/core_ext/hash_ext.rb
449
+ - lib/r10k/util/commands.rb
450
+ - lib/r10k/util/exec_env.rb
319
451
  - lib/r10k/util/monkey_patches.rb
320
452
  - lib/r10k/util/platform.rb
321
453
  - lib/r10k/util/purgeable.rb
322
454
  - lib/r10k/util/setopts.rb
323
455
  - lib/r10k/util/subprocess.rb
324
- - lib/r10k/util/subprocess/io.rb
325
- - lib/r10k/util/subprocess/posix.rb
326
- - lib/r10k/util/subprocess/posix/io.rb
327
- - lib/r10k/util/subprocess/posix/runner.rb
328
456
  - lib/r10k/util/subprocess/result.rb
329
457
  - lib/r10k/util/subprocess/runner.rb
458
+ - lib/r10k/util/subprocess/runner/posix.rb
459
+ - lib/r10k/util/subprocess/runner/pump.rb
460
+ - lib/r10k/util/subprocess/runner/windows.rb
330
461
  - lib/r10k/util/subprocess/subprocess_error.rb
331
- - lib/r10k/util/subprocess/windows.rb
332
- - lib/r10k/util/subprocess/windows/io.rb
333
- - lib/r10k/util/subprocess/windows/runner.rb
462
+ - lib/r10k/util/symbolize_keys.rb
334
463
  - lib/r10k/version.rb
464
+ - lib/shared/puppet/module_tool/metadata.rb
335
465
  - r10k.gemspec
336
466
  - r10k.yaml.example
337
467
  - spec/fixtures/empty/.empty
468
+ - spec/fixtures/integration/git/puppet-boolean-bare.tar
469
+ - spec/fixtures/module/forge/bad_module/metadata.json
338
470
  - spec/fixtures/module/forge/eight_hundred/Modulefile
339
471
  - spec/fixtures/module/forge/eight_hundred/metadata.json
340
472
  - spec/fixtures/unit/puppetfile/invalid-syntax/Puppetfile
341
473
  - spec/fixtures/unit/puppetfile/load-error/Puppetfile
474
+ - spec/fixtures/unit/util/subprocess/posix/runner/no-execute.sh
342
475
  - spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/can_fetch_all_versions_of_a_given_module.yml
343
476
  - spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/can_fetch_the_latest_version_of_a_given_module.yml
344
- - spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions.yml
345
- - spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions/can_fetch_all_versions_of_a_given_module.yml
346
- - spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/looking_up_versions/can_fetch_the_latest_version_of_a_given_module.yml
477
+ - spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/and_the_expected_version_is_latest/ignores_deleted_releases.yml
478
+ - spec/fixtures/vcr/cassettes/R10K_ModuleRepository_Forge/it_handles_errors_from_forgeapi_puppetlabs_com/raises_an_error_for_a_non-existant_module.yml
347
479
  - spec/fixtures/vcr/cassettes/R10K_Module_Forge/and_the_expected_version_is_latest/sets_the_expected_version_based_on_the_latest_forge_version.yml
480
+ - spec/integration/git/rugged/bare_repository_spec.rb
481
+ - spec/integration/git/rugged/thin_repository_spec.rb
482
+ - spec/integration/git/rugged/working_repository_spec.rb
483
+ - spec/integration/git/shellgit/bare_repository_spec.rb
484
+ - spec/integration/git/shellgit/thin_repository_spec.rb
485
+ - spec/integration/git/shellgit/working_repository_spec.rb
486
+ - spec/integration/git/stateful_repository_spec.rb
348
487
  - spec/matchers/exit_with.rb
488
+ - spec/matchers/match_realpath.rb
349
489
  - spec/r10k-mocks.rb
350
490
  - spec/r10k-mocks/mock_config.rb
351
491
  - spec/r10k-mocks/mock_env.rb
352
492
  - spec/r10k-mocks/mock_source.rb
493
+ - spec/shared-contexts/git-fixtures.rb
353
494
  - spec/shared-examples/git-ref.rb
495
+ - spec/shared-examples/git-repository.rb
496
+ - spec/shared-examples/git/bare_repository.rb
497
+ - spec/shared-examples/git/thin_repository.rb
498
+ - spec/shared-examples/git/working_repository.rb
499
+ - spec/shared-examples/subprocess-runner.rb
354
500
  - spec/spec_helper.rb
355
501
  - spec/unit/action/cri_runner_spec.rb
356
- - spec/unit/action/puppetfile/cri_action_spec.rb
502
+ - spec/unit/action/puppetfile/cri_runner_spec.rb
357
503
  - spec/unit/action/runner_spec.rb
358
504
  - spec/unit/action/visitor_spec.rb
505
+ - spec/unit/deployment/config/loader_spec.rb
506
+ - spec/unit/deployment/config_spec.rb
359
507
  - spec/unit/deployment/environment_spec.rb
360
- - spec/unit/deployment/source_spec.rb
361
508
  - spec/unit/deployment_spec.rb
362
509
  - spec/unit/environment/base_spec.rb
363
510
  - spec/unit/environment/git_spec.rb
511
+ - spec/unit/environment/name_spec.rb
364
512
  - spec/unit/environment/svn_spec.rb
365
513
  - spec/unit/errors/formatting_spec.rb
514
+ - spec/unit/feature_spec.rb
366
515
  - spec/unit/git/alternates_spec.rb
367
516
  - spec/unit/git/cache_spec.rb
368
517
  - spec/unit/git/commit_spec.rb
369
518
  - spec/unit/git/head_spec.rb
370
519
  - spec/unit/git/ref_spec.rb
371
520
  - spec/unit/git/repository_spec.rb
521
+ - spec/unit/git/rugged/cache_spec.rb
522
+ - spec/unit/git/shellgit/cache_spec.rb
523
+ - spec/unit/git/stateful_repository_spec.rb
372
524
  - spec/unit/git/tag_spec.rb
373
525
  - spec/unit/git/working_dir_spec.rb
526
+ - spec/unit/git_spec.rb
374
527
  - spec/unit/instance_cache_spec.rb
375
528
  - spec/unit/keyed_factory_spec.rb
529
+ - spec/unit/logging/terminaloutputter_spec.rb
530
+ - spec/unit/logging_spec.rb
376
531
  - spec/unit/module/base_spec.rb
377
532
  - spec/unit/module/forge_spec.rb
378
533
  - spec/unit/module/git_spec.rb
379
- - spec/unit/module/metadata_spec.rb
534
+ - spec/unit/module/metadata_file_spec.rb
380
535
  - spec/unit/module/svn_spec.rb
381
536
  - spec/unit/module_repository/forge_spec.rb
382
537
  - spec/unit/module_spec.rb
538
+ - spec/unit/puppet/module_tool/metadata_spec.rb
383
539
  - spec/unit/puppetfile_spec.rb
384
540
  - spec/unit/settings/container_spec.rb
385
541
  - spec/unit/source/base_spec.rb
@@ -389,12 +545,16 @@ files:
389
545
  - spec/unit/svn/remote_spec.rb
390
546
  - spec/unit/svn/working_dir_spec.rb
391
547
  - spec/unit/util/attempt_spec.rb
392
- - spec/unit/util/core_ext/hash_ext_spec.rb
548
+ - spec/unit/util/commands_spec.rb
549
+ - spec/unit/util/exec_env_spec.rb
393
550
  - spec/unit/util/monkey_patches_spec.rb
394
551
  - spec/unit/util/setopts_spec.rb
395
552
  - spec/unit/util/subprocess/result_spec.rb
553
+ - spec/unit/util/subprocess/runner/posix_spec.rb
554
+ - spec/unit/util/subprocess/runner/pump_spec.rb
396
555
  - spec/unit/util/subprocess/subprocess_error_spec.rb
397
556
  - spec/unit/util/subprocess_spec.rb
557
+ - spec/unit/util/symbolize_keys_spec.rb
398
558
  homepage: http://github.com/adrienthebo/r10k
399
559
  licenses:
400
560
  - Apache-2.0
@@ -421,47 +581,68 @@ signing_key:
421
581
  specification_version: 3
422
582
  summary: Puppet environment and module deployment
423
583
  test_files:
584
+ - spec/integration/git/stateful_repository_spec.rb
585
+ - spec/integration/git/shellgit/bare_repository_spec.rb
586
+ - spec/integration/git/shellgit/thin_repository_spec.rb
587
+ - spec/integration/git/shellgit/working_repository_spec.rb
588
+ - spec/integration/git/rugged/bare_repository_spec.rb
589
+ - spec/integration/git/rugged/thin_repository_spec.rb
590
+ - spec/integration/git/rugged/working_repository_spec.rb
591
+ - spec/unit/environment/name_spec.rb
424
592
  - spec/unit/environment/base_spec.rb
425
593
  - spec/unit/environment/svn_spec.rb
426
594
  - spec/unit/environment/git_spec.rb
427
595
  - spec/unit/module_spec.rb
428
596
  - spec/unit/module_repository/forge_spec.rb
429
597
  - spec/unit/git/ref_spec.rb
598
+ - spec/unit/git/stateful_repository_spec.rb
430
599
  - spec/unit/git/working_dir_spec.rb
431
600
  - spec/unit/git/cache_spec.rb
432
601
  - spec/unit/git/commit_spec.rb
433
602
  - spec/unit/git/repository_spec.rb
434
603
  - spec/unit/git/head_spec.rb
604
+ - spec/unit/git/shellgit/cache_spec.rb
435
605
  - spec/unit/git/alternates_spec.rb
436
606
  - spec/unit/git/tag_spec.rb
607
+ - spec/unit/git/rugged/cache_spec.rb
437
608
  - spec/unit/keyed_factory_spec.rb
609
+ - spec/unit/puppet/module_tool/metadata_spec.rb
610
+ - spec/unit/deployment/config/loader_spec.rb
438
611
  - spec/unit/deployment/environment_spec.rb
439
- - spec/unit/deployment/source_spec.rb
612
+ - spec/unit/deployment/config_spec.rb
613
+ - spec/unit/feature_spec.rb
440
614
  - spec/unit/source_spec.rb
441
615
  - spec/unit/puppetfile_spec.rb
442
616
  - spec/unit/util/monkey_patches_spec.rb
617
+ - spec/unit/util/exec_env_spec.rb
443
618
  - spec/unit/util/attempt_spec.rb
444
619
  - spec/unit/util/setopts_spec.rb
620
+ - spec/unit/util/subprocess/runner/posix_spec.rb
621
+ - spec/unit/util/subprocess/runner/pump_spec.rb
445
622
  - spec/unit/util/subprocess/result_spec.rb
446
623
  - spec/unit/util/subprocess/subprocess_error_spec.rb
447
624
  - spec/unit/util/subprocess_spec.rb
448
- - spec/unit/util/core_ext/hash_ext_spec.rb
625
+ - spec/unit/util/symbolize_keys_spec.rb
626
+ - spec/unit/util/commands_spec.rb
449
627
  - spec/unit/errors/formatting_spec.rb
450
628
  - spec/unit/instance_cache_spec.rb
451
629
  - spec/unit/action/visitor_spec.rb
452
630
  - spec/unit/action/cri_runner_spec.rb
453
- - spec/unit/action/puppetfile/cri_action_spec.rb
631
+ - spec/unit/action/puppetfile/cri_runner_spec.rb
454
632
  - spec/unit/action/runner_spec.rb
455
633
  - spec/unit/settings/container_spec.rb
634
+ - spec/unit/git_spec.rb
456
635
  - spec/unit/svn/working_dir_spec.rb
457
636
  - spec/unit/svn/remote_spec.rb
458
637
  - spec/unit/source/base_spec.rb
459
638
  - spec/unit/source/svn_spec.rb
460
639
  - spec/unit/source/git_spec.rb
640
+ - spec/unit/logging/terminaloutputter_spec.rb
461
641
  - spec/unit/deployment_spec.rb
642
+ - spec/unit/module/metadata_file_spec.rb
462
643
  - spec/unit/module/forge_spec.rb
463
644
  - spec/unit/module/base_spec.rb
464
645
  - spec/unit/module/svn_spec.rb
465
646
  - spec/unit/module/git_spec.rb
466
- - spec/unit/module/metadata_spec.rb
647
+ - spec/unit/logging_spec.rb
467
648
  has_rdoc: