puppet 3.0.0.rc8 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (560) hide show
  1. data/ext/packaging/tasks/00_utils.rb +57 -3
  2. data/ext/packaging/tasks/10_setupvars.rake +32 -30
  3. data/ext/packaging/tasks/apple.rake +1 -1
  4. data/ext/packaging/tasks/deb.rake +9 -11
  5. data/ext/packaging/tasks/gem.rake +6 -3
  6. data/ext/packaging/tasks/ips.rake +66 -64
  7. data/ext/packaging/tasks/mock.rake +2 -2
  8. data/ext/packaging/tasks/release.rake +52 -16
  9. data/ext/packaging/tasks/ship.rake +9 -7
  10. data/ext/packaging/tasks/sign.rake +9 -6
  11. data/ext/packaging/tasks/tag.rake +8 -0
  12. data/ext/packaging/tasks/version.rake +20 -0
  13. data/lib/puppet/reports/http.rb +4 -3
  14. data/lib/puppet/version.rb +1 -1
  15. data/spec/integration/application/apply_spec.rb +1 -1
  16. data/spec/integration/application/doc_spec.rb +1 -1
  17. data/spec/integration/configurer_spec.rb +1 -1
  18. data/spec/integration/defaults_spec.rb +1 -1
  19. data/spec/integration/faces/ca_spec.rb +1 -1
  20. data/spec/integration/faces/documentation_spec.rb +1 -1
  21. data/spec/integration/file_bucket/file_spec.rb +1 -1
  22. data/spec/integration/file_serving/content_spec.rb +1 -1
  23. data/spec/integration/file_serving/fileset_spec.rb +1 -1
  24. data/spec/integration/file_serving/metadata_spec.rb +1 -1
  25. data/spec/integration/file_serving/terminus_helper_spec.rb +1 -1
  26. data/spec/integration/indirector/catalog/compiler_spec.rb +1 -1
  27. data/spec/integration/indirector/catalog/queue_spec.rb +1 -1
  28. data/spec/integration/indirector/direct_file_server_spec.rb +1 -1
  29. data/spec/integration/indirector/facts/facter_spec.rb +1 -1
  30. data/spec/integration/indirector/file_content/file_server_spec.rb +1 -1
  31. data/spec/integration/indirector/file_metadata/file_server_spec.rb +1 -1
  32. data/spec/integration/indirector/node/ldap_spec.rb +1 -1
  33. data/spec/integration/network/formats_spec.rb +1 -1
  34. data/spec/integration/network/server/mongrel_spec.rb +1 -1
  35. data/spec/integration/network/server/webrick_spec.rb +1 -1
  36. data/spec/integration/node/environment_spec.rb +1 -1
  37. data/spec/integration/node/facts_spec.rb +1 -1
  38. data/spec/integration/node_spec.rb +1 -1
  39. data/spec/integration/parser/collector_spec.rb +1 -1
  40. data/spec/integration/parser/compiler_spec.rb +1 -1
  41. data/spec/integration/parser/functions/require_spec.rb +1 -1
  42. data/spec/integration/parser/functions_spec.rb +1 -1
  43. data/spec/integration/parser/parser_spec.rb +1 -1
  44. data/spec/integration/parser/ruby_manifest_spec.rb +1 -1
  45. data/spec/integration/provider/mailalias/aliases_spec.rb +1 -1
  46. data/spec/integration/provider/package_spec.rb +1 -1
  47. data/spec/integration/provider/service/init_spec.rb +1 -1
  48. data/spec/integration/provider/ssh_authorized_key_spec.rb +1 -1
  49. data/spec/integration/reference/providers_spec.rb +1 -1
  50. data/spec/integration/reports_spec.rb +1 -1
  51. data/spec/integration/resource/catalog_spec.rb +1 -1
  52. data/spec/integration/resource/type_collection_spec.rb +1 -1
  53. data/spec/integration/ssl/certificate_authority_spec.rb +1 -1
  54. data/spec/integration/ssl/certificate_request_spec.rb +1 -1
  55. data/spec/integration/ssl/certificate_revocation_list_spec.rb +1 -1
  56. data/spec/integration/ssl/host_spec.rb +1 -1
  57. data/spec/integration/transaction/report_spec.rb +1 -1
  58. data/spec/integration/transaction_spec.rb +1 -1
  59. data/spec/integration/type/exec_spec.rb +1 -1
  60. data/spec/integration/type/file_spec.rb +1 -1
  61. data/spec/integration/type/package_spec.rb +1 -1
  62. data/spec/integration/type/tidy_spec.rb +1 -1
  63. data/spec/integration/type_spec.rb +1 -1
  64. data/spec/integration/util/autoload_spec.rb +1 -1
  65. data/spec/integration/util/feature_spec.rb +1 -1
  66. data/spec/integration/util/rdoc/parser_spec.rb +1 -1
  67. data/spec/integration/util/settings_spec.rb +1 -1
  68. data/spec/integration/util/windows/user_spec.rb +1 -1
  69. data/spec/shared_behaviours/file_server_terminus.rb +1 -1
  70. data/spec/shared_behaviours/file_serving.rb +1 -1
  71. data/spec/shared_behaviours/file_serving_model.rb +1 -1
  72. data/spec/unit/agent/disabler_spec.rb +1 -1
  73. data/spec/unit/agent/locker_spec.rb +1 -1
  74. data/spec/unit/agent_spec.rb +1 -1
  75. data/spec/unit/application/agent_spec.rb +1 -1
  76. data/spec/unit/application/apply_spec.rb +1 -1
  77. data/spec/unit/application/cert_spec.rb +1 -1
  78. data/spec/unit/application/certificate_spec.rb +1 -1
  79. data/spec/unit/application/config_spec.rb +1 -1
  80. data/spec/unit/application/describe_spec.rb +1 -1
  81. data/spec/unit/application/device_spec.rb +1 -1
  82. data/spec/unit/application/doc_spec.rb +1 -1
  83. data/spec/unit/application/face_base_spec.rb +1 -1
  84. data/spec/unit/application/facts_spec.rb +1 -1
  85. data/spec/unit/application/filebucket_spec.rb +1 -1
  86. data/spec/unit/application/indirection_base_spec.rb +1 -1
  87. data/spec/unit/application/inspect_spec.rb +1 -1
  88. data/spec/unit/application/kick_spec.rb +1 -1
  89. data/spec/unit/application/master_spec.rb +1 -1
  90. data/spec/unit/application/queue_spec.rb +1 -1
  91. data/spec/unit/application/resource_spec.rb +1 -1
  92. data/spec/unit/application/secret_agent_spec.rb +1 -1
  93. data/spec/unit/application_spec.rb +1 -1
  94. data/spec/unit/configurer/downloader_spec.rb +1 -1
  95. data/spec/unit/configurer/fact_handler_spec.rb +1 -1
  96. data/spec/unit/configurer/plugin_handler_spec.rb +1 -1
  97. data/spec/unit/configurer_spec.rb +1 -1
  98. data/spec/unit/daemon_spec.rb +1 -1
  99. data/spec/unit/dsl/resource_api_spec.rb +1 -1
  100. data/spec/unit/dsl/resource_type_api_spec.rb +1 -1
  101. data/spec/unit/face/catalog_spec.rb +1 -1
  102. data/spec/unit/face/certificate_request_spec.rb +1 -1
  103. data/spec/unit/face/certificate_revocation_list_spec.rb +1 -1
  104. data/spec/unit/face/certificate_spec.rb +1 -1
  105. data/spec/unit/face/config_spec.rb +1 -1
  106. data/spec/unit/face/facts_spec.rb +1 -1
  107. data/spec/unit/face/file_spec.rb +1 -1
  108. data/spec/unit/face/help_spec.rb +1 -1
  109. data/spec/unit/face/instrumentation_data_spec.rb +1 -1
  110. data/spec/unit/face/instrumentation_listener_spec.rb +1 -1
  111. data/spec/unit/face/instrumentation_probe_spec.rb +1 -1
  112. data/spec/unit/face/key_spec.rb +1 -1
  113. data/spec/unit/face/node_spec.rb +1 -1
  114. data/spec/unit/face/plugin_spec.rb +1 -1
  115. data/spec/unit/face/report_spec.rb +1 -1
  116. data/spec/unit/face/resource_spec.rb +1 -1
  117. data/spec/unit/face/resource_type_spec.rb +1 -1
  118. data/spec/unit/face/secret_agent_spec.rb +1 -1
  119. data/spec/unit/file_bucket/dipper_spec.rb +1 -1
  120. data/spec/unit/file_bucket/file_spec.rb +1 -1
  121. data/spec/unit/file_serving/base_spec.rb +1 -1
  122. data/spec/unit/file_serving/configuration/parser_spec.rb +1 -1
  123. data/spec/unit/file_serving/configuration_spec.rb +1 -1
  124. data/spec/unit/file_serving/content_spec.rb +1 -1
  125. data/spec/unit/file_serving/fileset_spec.rb +1 -1
  126. data/spec/unit/file_serving/metadata_spec.rb +1 -1
  127. data/spec/unit/file_serving/mount/file_spec.rb +1 -1
  128. data/spec/unit/file_serving/mount/modules_spec.rb +1 -1
  129. data/spec/unit/file_serving/mount/plugins_spec.rb +1 -1
  130. data/spec/unit/file_serving/mount_spec.rb +1 -1
  131. data/spec/unit/file_serving/terminus_helper_spec.rb +1 -1
  132. data/spec/unit/file_serving/terminus_selector_spec.rb +1 -1
  133. data/spec/unit/indirector/active_record_spec.rb +1 -1
  134. data/spec/unit/indirector/catalog/active_record_spec.rb +1 -1
  135. data/spec/unit/indirector/catalog/compiler_spec.rb +1 -1
  136. data/spec/unit/indirector/catalog/json_spec.rb +1 -1
  137. data/spec/unit/indirector/catalog/queue_spec.rb +1 -1
  138. data/spec/unit/indirector/catalog/rest_spec.rb +1 -1
  139. data/spec/unit/indirector/catalog/static_compiler_spec.rb +1 -1
  140. data/spec/unit/indirector/catalog/store_configs_spec.rb +1 -1
  141. data/spec/unit/indirector/catalog/yaml_spec.rb +1 -1
  142. data/spec/unit/indirector/certificate/ca_spec.rb +1 -1
  143. data/spec/unit/indirector/certificate/disabled_ca_spec.rb +1 -1
  144. data/spec/unit/indirector/certificate/file_spec.rb +1 -1
  145. data/spec/unit/indirector/certificate/rest_spec.rb +1 -1
  146. data/spec/unit/indirector/certificate_request/ca_spec.rb +1 -1
  147. data/spec/unit/indirector/certificate_request/disabled_ca_spec.rb +1 -1
  148. data/spec/unit/indirector/certificate_request/file_spec.rb +1 -1
  149. data/spec/unit/indirector/certificate_request/rest_spec.rb +1 -1
  150. data/spec/unit/indirector/certificate_revocation_list/ca_spec.rb +1 -1
  151. data/spec/unit/indirector/certificate_revocation_list/disabled_ca_spec.rb +1 -1
  152. data/spec/unit/indirector/certificate_revocation_list/file_spec.rb +1 -1
  153. data/spec/unit/indirector/certificate_revocation_list/rest_spec.rb +1 -1
  154. data/spec/unit/indirector/certificate_status/file_spec.rb +1 -1
  155. data/spec/unit/indirector/certificate_status/rest_spec.rb +1 -1
  156. data/spec/unit/indirector/code_spec.rb +1 -1
  157. data/spec/unit/indirector/direct_file_server_spec.rb +1 -1
  158. data/spec/unit/indirector/envelope_spec.rb +1 -1
  159. data/spec/unit/indirector/exec_spec.rb +1 -1
  160. data/spec/unit/indirector/face_spec.rb +1 -1
  161. data/spec/unit/indirector/facts/active_record_spec.rb +1 -1
  162. data/spec/unit/indirector/facts/couch_spec.rb +1 -1
  163. data/spec/unit/indirector/facts/facter_spec.rb +1 -1
  164. data/spec/unit/indirector/facts/inventory_active_record_spec.rb +1 -1
  165. data/spec/unit/indirector/facts/inventory_service_spec.rb +1 -1
  166. data/spec/unit/indirector/facts/network_device_spec.rb +1 -1
  167. data/spec/unit/indirector/facts/rest_spec.rb +1 -1
  168. data/spec/unit/indirector/facts/store_configs_spec.rb +1 -1
  169. data/spec/unit/indirector/facts/yaml_spec.rb +1 -1
  170. data/spec/unit/indirector/file_bucket_file/file_spec.rb +1 -1
  171. data/spec/unit/indirector/file_bucket_file/rest_spec.rb +1 -1
  172. data/spec/unit/indirector/file_bucket_file/selector_spec.rb +1 -1
  173. data/spec/unit/indirector/file_content/file_server_spec.rb +1 -1
  174. data/spec/unit/indirector/file_content/file_spec.rb +1 -1
  175. data/spec/unit/indirector/file_content/rest_spec.rb +1 -1
  176. data/spec/unit/indirector/file_content/selector_spec.rb +1 -1
  177. data/spec/unit/indirector/file_metadata/file_server_spec.rb +1 -1
  178. data/spec/unit/indirector/file_metadata/file_spec.rb +1 -1
  179. data/spec/unit/indirector/file_metadata/rest_spec.rb +1 -1
  180. data/spec/unit/indirector/file_metadata/selector_spec.rb +1 -1
  181. data/spec/unit/indirector/file_server_spec.rb +1 -1
  182. data/spec/unit/indirector/indirection_spec.rb +1 -1
  183. data/spec/unit/indirector/instrumentation_data/local_spec.rb +1 -1
  184. data/spec/unit/indirector/instrumentation_data/rest_spec.rb +1 -1
  185. data/spec/unit/indirector/instrumentation_listener/local_spec.rb +1 -1
  186. data/spec/unit/indirector/instrumentation_listener/rest_spec.rb +1 -1
  187. data/spec/unit/indirector/instrumentation_probe/local_spec.rb +1 -1
  188. data/spec/unit/indirector/instrumentation_probe/rest_spec.rb +1 -1
  189. data/spec/unit/indirector/json_spec.rb +1 -1
  190. data/spec/unit/indirector/key/ca_spec.rb +1 -1
  191. data/spec/unit/indirector/key/disabled_ca_spec.rb +1 -1
  192. data/spec/unit/indirector/key/file_spec.rb +1 -1
  193. data/spec/unit/indirector/ldap_spec.rb +1 -1
  194. data/spec/unit/indirector/memory_spec.rb +1 -1
  195. data/spec/unit/indirector/node/active_record_spec.rb +1 -1
  196. data/spec/unit/indirector/node/exec_spec.rb +1 -1
  197. data/spec/unit/indirector/node/ldap_spec.rb +1 -1
  198. data/spec/unit/indirector/node/memory_spec.rb +1 -1
  199. data/spec/unit/indirector/node/plain_spec.rb +1 -1
  200. data/spec/unit/indirector/node/rest_spec.rb +1 -1
  201. data/spec/unit/indirector/node/store_configs_spec.rb +1 -1
  202. data/spec/unit/indirector/node/yaml_spec.rb +1 -1
  203. data/spec/unit/indirector/plain_spec.rb +1 -1
  204. data/spec/unit/indirector/queue_spec.rb +1 -1
  205. data/spec/unit/indirector/report/processor_spec.rb +1 -1
  206. data/spec/unit/indirector/report/rest_spec.rb +1 -1
  207. data/spec/unit/indirector/report/yaml_spec.rb +1 -1
  208. data/spec/unit/indirector/request_spec.rb +1 -1
  209. data/spec/unit/indirector/resource/active_record_spec.rb +1 -1
  210. data/spec/unit/indirector/resource/ral_spec.rb +1 -1
  211. data/spec/unit/indirector/resource/rest_spec.rb +1 -1
  212. data/spec/unit/indirector/resource/store_configs_spec.rb +1 -1
  213. data/spec/unit/indirector/resource_type/parser_spec.rb +1 -1
  214. data/spec/unit/indirector/resource_type/rest_spec.rb +1 -1
  215. data/spec/unit/indirector/rest_spec.rb +1 -1
  216. data/spec/unit/indirector/run/local_spec.rb +1 -1
  217. data/spec/unit/indirector/run/rest_spec.rb +1 -1
  218. data/spec/unit/indirector/ssl_file_spec.rb +1 -1
  219. data/spec/unit/indirector/status/rest_spec.rb +1 -1
  220. data/spec/unit/indirector/store_configs_spec.rb +1 -1
  221. data/spec/unit/indirector/terminus_spec.rb +1 -1
  222. data/spec/unit/indirector/yaml_spec.rb +1 -1
  223. data/spec/unit/indirector_spec.rb +1 -1
  224. data/spec/unit/interface/action_builder_spec.rb +1 -1
  225. data/spec/unit/interface/action_manager_spec.rb +1 -1
  226. data/spec/unit/interface/action_spec.rb +1 -1
  227. data/spec/unit/interface/documentation_spec.rb +1 -1
  228. data/spec/unit/interface/face_collection_spec.rb +1 -1
  229. data/spec/unit/module_spec.rb +1 -1
  230. data/spec/unit/module_tool_spec.rb +1 -1
  231. data/spec/unit/network/auth_config_parser_spec.rb +1 -1
  232. data/spec/unit/network/authconfig_spec.rb +1 -1
  233. data/spec/unit/network/authentication_spec.rb +1 -1
  234. data/spec/unit/network/authorization_spec.rb +1 -1
  235. data/spec/unit/network/authstore_spec.rb +1 -1
  236. data/spec/unit/network/format_handler_spec.rb +1 -1
  237. data/spec/unit/network/format_spec.rb +1 -1
  238. data/spec/unit/network/formats_spec.rb +1 -1
  239. data/spec/unit/network/http/api/v1_spec.rb +1 -1
  240. data/spec/unit/network/http/compression_spec.rb +1 -1
  241. data/spec/unit/network/http/connection_spec.rb +1 -1
  242. data/spec/unit/network/http/handler_spec.rb +1 -1
  243. data/spec/unit/network/http/rack/rest_spec.rb +1 -1
  244. data/spec/unit/network/http/rack_spec.rb +1 -1
  245. data/spec/unit/network/http/webrick/rest_spec.rb +1 -1
  246. data/spec/unit/network/http/webrick_spec.rb +1 -1
  247. data/spec/unit/network/http_pool_spec.rb +1 -1
  248. data/spec/unit/network/rights_spec.rb +1 -1
  249. data/spec/unit/network/server_spec.rb +1 -1
  250. data/spec/unit/node/environment_spec.rb +1 -1
  251. data/spec/unit/node/facts_spec.rb +1 -1
  252. data/spec/unit/node_spec.rb +1 -1
  253. data/spec/unit/other/selinux_spec.rb +1 -1
  254. data/spec/unit/parameter/package_options_spec.rb +1 -1
  255. data/spec/unit/parameter/path_spec.rb +1 -1
  256. data/spec/unit/parameter/value_collection_spec.rb +1 -1
  257. data/spec/unit/parameter/value_spec.rb +1 -1
  258. data/spec/unit/parameter_spec.rb +1 -1
  259. data/spec/unit/parser/ast/arithmetic_operator_spec.rb +1 -1
  260. data/spec/unit/parser/ast/astarray_spec.rb +1 -1
  261. data/spec/unit/parser/ast/asthash_spec.rb +1 -1
  262. data/spec/unit/parser/ast/boolean_operator_spec.rb +1 -1
  263. data/spec/unit/parser/ast/casestatement_spec.rb +1 -1
  264. data/spec/unit/parser/ast/collection_spec.rb +1 -1
  265. data/spec/unit/parser/ast/collexpr_spec.rb +1 -1
  266. data/spec/unit/parser/ast/comparison_operator_spec.rb +1 -1
  267. data/spec/unit/parser/ast/definition_spec.rb +1 -1
  268. data/spec/unit/parser/ast/function_spec.rb +1 -1
  269. data/spec/unit/parser/ast/hostclass_spec.rb +1 -1
  270. data/spec/unit/parser/ast/ifstatement_spec.rb +1 -1
  271. data/spec/unit/parser/ast/in_operator_spec.rb +1 -1
  272. data/spec/unit/parser/ast/leaf_spec.rb +1 -1
  273. data/spec/unit/parser/ast/match_operator_spec.rb +1 -1
  274. data/spec/unit/parser/ast/minus_spec.rb +1 -1
  275. data/spec/unit/parser/ast/node_spec.rb +1 -1
  276. data/spec/unit/parser/ast/nop_spec.rb +1 -1
  277. data/spec/unit/parser/ast/not_spec.rb +1 -1
  278. data/spec/unit/parser/ast/relationship_spec.rb +1 -1
  279. data/spec/unit/parser/ast/resource_defaults_spec.rb +1 -1
  280. data/spec/unit/parser/ast/resource_override_spec.rb +1 -1
  281. data/spec/unit/parser/ast/resource_reference_spec.rb +1 -1
  282. data/spec/unit/parser/ast/resource_spec.rb +1 -1
  283. data/spec/unit/parser/ast/selector_spec.rb +1 -1
  284. data/spec/unit/parser/ast/vardef_spec.rb +1 -1
  285. data/spec/unit/parser/ast_spec.rb +1 -1
  286. data/spec/unit/parser/collector_spec.rb +1 -1
  287. data/spec/unit/parser/compiler_spec.rb +1 -1
  288. data/spec/unit/parser/files_spec.rb +1 -1
  289. data/spec/unit/parser/functions/defined_spec.rb +1 -1
  290. data/spec/unit/parser/functions/extlookup_spec.rb +1 -1
  291. data/spec/unit/parser/functions/fail_spec.rb +1 -1
  292. data/spec/unit/parser/functions/file_spec.rb +1 -1
  293. data/spec/unit/parser/functions/fqdn_rand_spec.rb +1 -1
  294. data/spec/unit/parser/functions/generate_spec.rb +1 -1
  295. data/spec/unit/parser/functions/hiera_spec.rb +1 -1
  296. data/spec/unit/parser/functions/include_spec.rb +1 -1
  297. data/spec/unit/parser/functions/inline_template_spec.rb +1 -1
  298. data/spec/unit/parser/functions/realize_spec.rb +1 -1
  299. data/spec/unit/parser/functions/regsubst_spec.rb +1 -1
  300. data/spec/unit/parser/functions/require_spec.rb +1 -1
  301. data/spec/unit/parser/functions/search_spec.rb +1 -1
  302. data/spec/unit/parser/functions/shellquote_spec.rb +1 -1
  303. data/spec/unit/parser/functions/split_spec.rb +1 -1
  304. data/spec/unit/parser/functions/sprintf_spec.rb +1 -1
  305. data/spec/unit/parser/functions/tag_spec.rb +1 -1
  306. data/spec/unit/parser/functions/template_spec.rb +1 -1
  307. data/spec/unit/parser/functions/versioncmp_spec.rb +1 -1
  308. data/spec/unit/parser/functions_spec.rb +1 -1
  309. data/spec/unit/parser/lexer_spec.rb +1 -1
  310. data/spec/unit/parser/parser_spec.rb +1 -1
  311. data/spec/unit/parser/relationship_spec.rb +1 -1
  312. data/spec/unit/parser/resource_spec.rb +1 -1
  313. data/spec/unit/parser/scope_spec.rb +1 -1
  314. data/spec/unit/parser/templatewrapper_spec.rb +1 -1
  315. data/spec/unit/parser/type_loader_spec.rb +1 -1
  316. data/spec/unit/property/ensure_spec.rb +1 -1
  317. data/spec/unit/property/keyvalue_spec.rb +1 -1
  318. data/spec/unit/property/list_spec.rb +1 -1
  319. data/spec/unit/property/ordered_list_spec.rb +1 -1
  320. data/spec/unit/property_spec.rb +1 -1
  321. data/spec/unit/provider/augeas/augeas_spec.rb +1 -1
  322. data/spec/unit/provider/cisco_spec.rb +1 -1
  323. data/spec/unit/provider/confine/exists_spec.rb +1 -1
  324. data/spec/unit/provider/confine/false_spec.rb +1 -1
  325. data/spec/unit/provider/confine/feature_spec.rb +1 -1
  326. data/spec/unit/provider/confine/true_spec.rb +1 -1
  327. data/spec/unit/provider/confine/variable_spec.rb +1 -1
  328. data/spec/unit/provider/confine_collection_spec.rb +1 -1
  329. data/spec/unit/provider/confine_spec.rb +1 -1
  330. data/spec/unit/provider/confiner_spec.rb +1 -1
  331. data/spec/unit/provider/cron/crontab_spec.rb +1 -1
  332. data/spec/unit/provider/exec/posix_spec.rb +1 -1
  333. data/spec/unit/provider/exec/shell_spec.rb +1 -1
  334. data/spec/unit/provider/exec/windows_spec.rb +1 -1
  335. data/spec/unit/provider/exec_spec.rb +1 -1
  336. data/spec/unit/provider/file/posix_spec.rb +1 -1
  337. data/spec/unit/provider/file/windows_spec.rb +1 -1
  338. data/spec/unit/provider/group/groupadd_spec.rb +1 -1
  339. data/spec/unit/provider/group/ldap_spec.rb +1 -1
  340. data/spec/unit/provider/group/pw_spec.rb +1 -1
  341. data/spec/unit/provider/host/parsed_spec.rb +1 -1
  342. data/spec/unit/provider/interface/cisco_spec.rb +1 -1
  343. data/spec/unit/provider/ldap_spec.rb +1 -1
  344. data/spec/unit/provider/macauthorization_spec.rb +1 -1
  345. data/spec/unit/provider/mcx/mcxcontent_spec.rb +1 -1
  346. data/spec/unit/provider/mount/parsed_spec.rb +1 -1
  347. data/spec/unit/provider/mount_spec.rb +1 -1
  348. data/spec/unit/provider/naginator_spec.rb +1 -1
  349. data/spec/unit/provider/nameservice/directoryservice_spec.rb +1 -1
  350. data/spec/unit/provider/network_device_spec.rb +1 -1
  351. data/spec/unit/provider/package/aix_spec.rb +1 -1
  352. data/spec/unit/provider/package/appdmg_spec.rb +1 -1
  353. data/spec/unit/provider/package/apt_spec.rb +1 -1
  354. data/spec/unit/provider/package/aptitude_spec.rb +1 -1
  355. data/spec/unit/provider/package/aptrpm_spec.rb +1 -1
  356. data/spec/unit/provider/package/dpkg_spec.rb +1 -1
  357. data/spec/unit/provider/package/freebsd_spec.rb +1 -1
  358. data/spec/unit/provider/package/gem_spec.rb +1 -1
  359. data/spec/unit/provider/package/hpux_spec.rb +1 -1
  360. data/spec/unit/provider/package/msi_spec.rb +1 -1
  361. data/spec/unit/provider/package/nim_spec.rb +1 -1
  362. data/spec/unit/provider/package/openbsd_spec.rb +1 -1
  363. data/spec/unit/provider/package/pacman_spec.rb +1 -1
  364. data/spec/unit/provider/package/pip_spec.rb +1 -1
  365. data/spec/unit/provider/package/pkg_spec.rb +1 -1
  366. data/spec/unit/provider/package/pkgdmg_spec.rb +1 -1
  367. data/spec/unit/provider/package/pkgutil_spec.rb +1 -1
  368. data/spec/unit/provider/package/rpm_spec.rb +1 -1
  369. data/spec/unit/provider/package/sun_spec.rb +1 -1
  370. data/spec/unit/provider/package/windows/exe_package_spec.rb +1 -1
  371. data/spec/unit/provider/package/windows/msi_package_spec.rb +1 -1
  372. data/spec/unit/provider/package/windows/package_spec.rb +1 -1
  373. data/spec/unit/provider/package/windows_spec.rb +1 -1
  374. data/spec/unit/provider/package/yum_spec.rb +1 -1
  375. data/spec/unit/provider/package/zypper_spec.rb +1 -1
  376. data/spec/unit/provider/parsedfile_spec.rb +1 -1
  377. data/spec/unit/provider/scheduled_task/win32_taskscheduler_spec.rb +1 -1
  378. data/spec/unit/provider/selboolean_spec.rb +1 -1
  379. data/spec/unit/provider/selmodule_spec.rb +1 -1
  380. data/spec/unit/provider/service/base_spec.rb +1 -1
  381. data/spec/unit/provider/service/daemontools_spec.rb +1 -1
  382. data/spec/unit/provider/service/debian_spec.rb +1 -1
  383. data/spec/unit/provider/service/freebsd_spec.rb +1 -1
  384. data/spec/unit/provider/service/gentoo_spec.rb +1 -1
  385. data/spec/unit/provider/service/init_spec.rb +1 -1
  386. data/spec/unit/provider/service/openrc_spec.rb +1 -1
  387. data/spec/unit/provider/service/redhat_spec.rb +1 -1
  388. data/spec/unit/provider/service/runit_spec.rb +1 -1
  389. data/spec/unit/provider/service/smf_spec.rb +1 -1
  390. data/spec/unit/provider/service/src_spec.rb +1 -1
  391. data/spec/unit/provider/service/systemd_spec.rb +1 -1
  392. data/spec/unit/provider/service/upstart_spec.rb +1 -1
  393. data/spec/unit/provider/service/windows_spec.rb +1 -1
  394. data/spec/unit/provider/ssh_authorized_key/parsed_spec.rb +1 -1
  395. data/spec/unit/provider/sshkey/parsed_spec.rb +1 -1
  396. data/spec/unit/provider/user/hpux_spec.rb +1 -1
  397. data/spec/unit/provider/user/ldap_spec.rb +1 -1
  398. data/spec/unit/provider/user/pw_spec.rb +1 -1
  399. data/spec/unit/provider/user/useradd_spec.rb +1 -1
  400. data/spec/unit/provider/vlan/cisco_spec.rb +1 -1
  401. data/spec/unit/provider/zfs/zfs_spec.rb +1 -1
  402. data/spec/unit/provider/zone/solaris_spec.rb +1 -1
  403. data/spec/unit/provider/zpool/zpool_spec.rb +1 -1
  404. data/spec/unit/provider_spec.rb +1 -1
  405. data/spec/unit/puppet_spec.rb +1 -1
  406. data/spec/unit/rails/host_spec.rb +1 -1
  407. data/spec/unit/rails/param_value_spec.rb +1 -1
  408. data/spec/unit/rails/resource_spec.rb +1 -1
  409. data/spec/unit/rails_spec.rb +1 -1
  410. data/spec/unit/relationship_spec.rb +1 -1
  411. data/spec/unit/reports/http_spec.rb +1 -1
  412. data/spec/unit/reports/rrdgraph_spec.rb +1 -1
  413. data/spec/unit/reports/store_spec.rb +1 -1
  414. data/spec/unit/reports/tagmail_spec.rb +1 -1
  415. data/spec/unit/reports_spec.rb +1 -1
  416. data/spec/unit/resource/catalog_spec.rb +1 -1
  417. data/spec/unit/resource/status_spec.rb +1 -1
  418. data/spec/unit/resource/type_collection_helper_spec.rb +1 -1
  419. data/spec/unit/resource/type_collection_spec.rb +1 -1
  420. data/spec/unit/resource/type_spec.rb +1 -1
  421. data/spec/unit/resource_spec.rb +1 -1
  422. data/spec/unit/run_spec.rb +1 -1
  423. data/spec/unit/settings/directory_setting_spec.rb +1 -1
  424. data/spec/unit/settings/file_setting_spec.rb +1 -1
  425. data/spec/unit/settings/path_setting_spec.rb +1 -1
  426. data/spec/unit/settings/string_setting_spec.rb +1 -1
  427. data/spec/unit/settings/terminus_setting_spec.rb +1 -1
  428. data/spec/unit/settings_spec.rb +1 -1
  429. data/spec/unit/simple_graph_spec.rb +1 -1
  430. data/spec/unit/ssl/base_spec.rb +1 -1
  431. data/spec/unit/ssl/certificate_authority/interface_spec.rb +1 -1
  432. data/spec/unit/ssl/certificate_authority_spec.rb +1 -1
  433. data/spec/unit/ssl/certificate_factory_spec.rb +1 -1
  434. data/spec/unit/ssl/certificate_request_spec.rb +1 -1
  435. data/spec/unit/ssl/certificate_revocation_list_spec.rb +1 -1
  436. data/spec/unit/ssl/certificate_spec.rb +1 -1
  437. data/spec/unit/ssl/configuration_spec.rb +1 -1
  438. data/spec/unit/ssl/digest_spec.rb +1 -1
  439. data/spec/unit/ssl/host_spec.rb +1 -1
  440. data/spec/unit/ssl/inventory_spec.rb +1 -1
  441. data/spec/unit/ssl/key_spec.rb +1 -1
  442. data/spec/unit/status_spec.rb +1 -1
  443. data/spec/unit/transaction/event_manager_spec.rb +1 -1
  444. data/spec/unit/transaction/event_spec.rb +1 -1
  445. data/spec/unit/transaction/report_spec.rb +1 -1
  446. data/spec/unit/transaction/resource_harness_spec.rb +1 -1
  447. data/spec/unit/transaction_spec.rb +1 -1
  448. data/spec/unit/type/augeas_spec.rb +1 -1
  449. data/spec/unit/type/component_spec.rb +1 -1
  450. data/spec/unit/type/computer_spec.rb +1 -1
  451. data/spec/unit/type/cron_spec.rb +1 -1
  452. data/spec/unit/type/exec_spec.rb +1 -1
  453. data/spec/unit/type/file/checksum_spec.rb +1 -1
  454. data/spec/unit/type/file/content_spec.rb +1 -1
  455. data/spec/unit/type/file/ctime_spec.rb +1 -1
  456. data/spec/unit/type/file/ensure_spec.rb +1 -1
  457. data/spec/unit/type/file/group_spec.rb +1 -1
  458. data/spec/unit/type/file/mode_spec.rb +1 -1
  459. data/spec/unit/type/file/mtime_spec.rb +1 -1
  460. data/spec/unit/type/file/owner_spec.rb +1 -1
  461. data/spec/unit/type/file/selinux_spec.rb +1 -1
  462. data/spec/unit/type/file/source_spec.rb +1 -1
  463. data/spec/unit/type/file/type_spec.rb +1 -1
  464. data/spec/unit/type/file_spec.rb +1 -1
  465. data/spec/unit/type/filebucket_spec.rb +1 -1
  466. data/spec/unit/type/group_spec.rb +1 -1
  467. data/spec/unit/type/host_spec.rb +1 -1
  468. data/spec/unit/type/interface_spec.rb +1 -1
  469. data/spec/unit/type/macauthorization_spec.rb +1 -1
  470. data/spec/unit/type/mailalias_spec.rb +1 -1
  471. data/spec/unit/type/maillist_spec.rb +1 -1
  472. data/spec/unit/type/mcx_spec.rb +1 -1
  473. data/spec/unit/type/mount_spec.rb +1 -1
  474. data/spec/unit/type/nagios_spec.rb +1 -1
  475. data/spec/unit/type/noop_metaparam_spec.rb +1 -1
  476. data/spec/unit/type/package_spec.rb +1 -1
  477. data/spec/unit/type/resources_spec.rb +1 -1
  478. data/spec/unit/type/schedule_spec.rb +1 -1
  479. data/spec/unit/type/scheduled_task_spec.rb +1 -1
  480. data/spec/unit/type/selboolean_spec.rb +1 -1
  481. data/spec/unit/type/selmodule_spec.rb +1 -1
  482. data/spec/unit/type/service_spec.rb +1 -1
  483. data/spec/unit/type/ssh_authorized_key_spec.rb +1 -1
  484. data/spec/unit/type/sshkey_spec.rb +1 -1
  485. data/spec/unit/type/stage_spec.rb +1 -1
  486. data/spec/unit/type/tidy_spec.rb +1 -1
  487. data/spec/unit/type/user_spec.rb +1 -1
  488. data/spec/unit/type/vlan_spec.rb +1 -1
  489. data/spec/unit/type/whit_spec.rb +1 -1
  490. data/spec/unit/type/yumrepo_spec.rb +1 -1
  491. data/spec/unit/type/zfs_spec.rb +1 -1
  492. data/spec/unit/type/zone_spec.rb +1 -1
  493. data/spec/unit/type/zpool_spec.rb +1 -1
  494. data/spec/unit/type_spec.rb +1 -1
  495. data/spec/unit/util/autoload_spec.rb +1 -1
  496. data/spec/unit/util/backups_spec.rb +1 -1
  497. data/spec/unit/util/cache_accumulator_spec.rb +1 -1
  498. data/spec/unit/util/cacher_spec.rb +1 -1
  499. data/spec/unit/util/checksums_spec.rb +1 -1
  500. data/spec/unit/util/command_line_spec.rb +1 -1
  501. data/spec/unit/util/constant_inflector_spec.rb +1 -1
  502. data/spec/unit/util/diff_spec.rb +1 -1
  503. data/spec/unit/util/errors_spec.rb +1 -1
  504. data/spec/unit/util/execution_spec.rb +1 -1
  505. data/spec/unit/util/execution_stub_spec.rb +1 -1
  506. data/spec/unit/util/feature_spec.rb +1 -1
  507. data/spec/unit/util/filetype_spec.rb +1 -1
  508. data/spec/unit/util/inline_docs_spec.rb +1 -1
  509. data/spec/unit/util/instrumentation/data_spec.rb +1 -1
  510. data/spec/unit/util/instrumentation/indirection_probe_spec.rb +1 -1
  511. data/spec/unit/util/instrumentation/instrumentable_spec.rb +1 -1
  512. data/spec/unit/util/instrumentation/listener_spec.rb +1 -1
  513. data/spec/unit/util/instrumentation_spec.rb +1 -1
  514. data/spec/unit/util/json_lockfile_spec.rb +1 -1
  515. data/spec/unit/util/ldap/connection_spec.rb +1 -1
  516. data/spec/unit/util/ldap/generator_spec.rb +1 -1
  517. data/spec/unit/util/ldap/manager_spec.rb +1 -1
  518. data/spec/unit/util/loadedfile_spec.rb +1 -1
  519. data/spec/unit/util/lockfile_spec.rb +1 -1
  520. data/spec/unit/util/log/destinations_spec.rb +1 -1
  521. data/spec/unit/util/log/rate_limited_logger_spec.rb +1 -1
  522. data/spec/unit/util/log_spec.rb +1 -1
  523. data/spec/unit/util/logging_spec.rb +1 -1
  524. data/spec/unit/util/metric_spec.rb +1 -1
  525. data/spec/unit/util/monkey_patches/lines_spec.rb +1 -1
  526. data/spec/unit/util/monkey_patches_spec.rb +1 -1
  527. data/spec/unit/util/nagios_maker_spec.rb +1 -1
  528. data/spec/unit/util/network_device/cisco/device_spec.rb +1 -1
  529. data/spec/unit/util/network_device/cisco/facts_spec.rb +1 -1
  530. data/spec/unit/util/network_device/cisco/interface_spec.rb +1 -1
  531. data/spec/unit/util/network_device/config_spec.rb +1 -1
  532. data/spec/unit/util/network_device/ipcalc_spec.rb +1 -1
  533. data/spec/unit/util/network_device/transport/base_spec.rb +1 -1
  534. data/spec/unit/util/network_device/transport/ssh_spec.rb +1 -1
  535. data/spec/unit/util/network_device/transport/telnet_spec.rb +1 -1
  536. data/spec/unit/util/network_device_spec.rb +1 -1
  537. data/spec/unit/util/package_spec.rb +1 -1
  538. data/spec/unit/util/pidlock_spec.rb +1 -1
  539. data/spec/unit/util/posix_spec.rb +1 -1
  540. data/spec/unit/util/pson_spec.rb +1 -1
  541. data/spec/unit/util/queue/stomp_spec.rb +1 -1
  542. data/spec/unit/util/queue_spec.rb +1 -1
  543. data/spec/unit/util/rdoc/parser_spec.rb +1 -1
  544. data/spec/unit/util/rdoc_spec.rb +1 -1
  545. data/spec/unit/util/reference_serializer_spec.rb +1 -1
  546. data/spec/unit/util/reference_spec.rb +1 -1
  547. data/spec/unit/util/resource_template_spec.rb +1 -1
  548. data/spec/unit/util/retryaction_spec.rb +1 -1
  549. data/spec/unit/util/run_mode_spec.rb +1 -1
  550. data/spec/unit/util/selinux_spec.rb +1 -1
  551. data/spec/unit/util/storage_spec.rb +1 -1
  552. data/spec/unit/util/suidmanager_spec.rb +1 -1
  553. data/spec/unit/util/symbolic_file_mode_spec.rb +1 -1
  554. data/spec/unit/util/tagging_spec.rb +1 -1
  555. data/spec/unit/util/terminal_spec.rb +1 -1
  556. data/spec/unit/util/user_attr_spec.rb +1 -1
  557. data/spec/unit/util/warnings_spec.rb +1 -1
  558. data/spec/unit/util/windows/registry_spec.rb +1 -1
  559. data/spec/unit/util/zaml_spec.rb +1 -1
  560. metadata +2224 -2226
@@ -8,6 +8,11 @@ def check_tool(tool)
8
8
  end
9
9
  end
10
10
 
11
+ def has_tool(tool)
12
+ %x{which #{tool}}
13
+ return $?.success?
14
+ end
15
+
11
16
  def find_tool(tool)
12
17
  location = %x{which #{tool}}.chomp
13
18
  location if $?.success?
@@ -163,9 +168,12 @@ def get_rpmrelease
163
168
  end
164
169
  end
165
170
 
166
- def restart_keychain
167
- kill_keychain
168
- start_keychain
171
+ def load_keychain
172
+ unless @keychain_loaded
173
+ kill_keychain
174
+ start_keychain
175
+ @keychain_loaded = TRUE
176
+ end
169
177
  end
170
178
 
171
179
  def kill_keychain
@@ -234,3 +242,49 @@ def x(v)
234
242
  print %x[#{v}]
235
243
  end
236
244
 
245
+ def ask_yes_or_no
246
+ answer = STDIN.gets.downcase.chomp
247
+ return TRUE if answer =~ /^y$|^yes$/
248
+ return FALSE if answer =~ /^n$|^no$/
249
+ puts "Nope, try something like yes or no or y or n, etc:"
250
+ ask_yes_or_no
251
+ end
252
+
253
+ def handle_method_failure(method, args)
254
+ STDERR.puts "There was an error running the method #{method} with the arguments:"
255
+ args.each { |param, arg| STDERR.puts "\t#{param} => #{arg}\n" }
256
+ STDERR.puts "The rake session is paused. Would you like to retry #{method} with these args and continue where you left off? [y,n]"
257
+ if ask_yes_or_no
258
+ send(method, args)
259
+ else
260
+ exit 1
261
+ end
262
+ end
263
+
264
+ def invoke_task(task, args=nil)
265
+ Rake::Task[task].reenable
266
+ Rake::Task[task].invoke(args)
267
+ end
268
+
269
+ def confirm_ship(files)
270
+ STDOUT.puts "The following files have been built and are ready to ship:"
271
+ files.each { |file| STDOUT.puts "\t#{file}\n" unless File.directory?(file) }
272
+ STDOUT.puts "Ship these files?? [y,n]"
273
+ ask_yes_or_no
274
+ end
275
+
276
+ def boolean_value(var)
277
+ return TRUE if (var == TRUE || ( var.is_a?(String) && var.downcase == 'true' ))
278
+ FALSE
279
+ end
280
+
281
+ def git_tag(version)
282
+ begin
283
+ sh "git tag -s -u #{@gpg_key} -m '#{version}' #{version}"
284
+ rescue Exception => e
285
+ STDERR.puts e
286
+ STDERR.puts "Unable to tag repo at #{version}"
287
+ exit 1
288
+ end
289
+ end
290
+
@@ -25,38 +25,40 @@ rescue
25
25
  end
26
26
 
27
27
  begin
28
- @pkg_defaults ||= YAML.load_file('ext/build_defaults.yaml')
29
- @default_cow = ENV['COW'] || @pkg_defaults['default_cow']
30
- @cows = ENV['COW'] || @pkg_defaults['cows']
31
- @pbuild_conf = ENV['PBUILDCONF'] || @pkg_defaults['pbuild_conf']
32
- @packager = ENV['PACKAGER'] || @pkg_defaults['packager']
33
- @sign_tar = ENV['SIGN_TAR'] || @pkg_defaults['sign_tar']
34
- @final_mocks = ENV['MOCK'] || @pkg_defaults['final_mocks']
35
- @rc_mocks = ENV['MOCK'] || @pkg_defaults['rc_mocks']
36
- @gpg_name = ENV['GPG_NAME'] || @pkg_defaults['gpg_name']
37
- @gpg_key = ENV['GPG_KEY'] || @pkg_defaults['gpg_key']
38
- @certificate_pem= ENV['CERT_PEM'] || @pkg_defaults['certificate_pem']
39
- @privatekey_pem = ENV['PRIVATE_PEM'] || @pkg_defaults['privatekey_pem']
40
- @build_gem = ENV['GEM'] || @pkg_defaults['build_gem']
41
- @build_dmg = ENV['DMG'] || @pkg_defaults['build_dmg']
42
- @yum_host = @pkg_defaults['yum_host']
43
- @yum_repo_path = @pkg_defaults['yum_repo_path']
44
- @apt_host = @pkg_defaults['apt_host']
45
- @apt_repo_url = @pkg_defaults['apt_repo_url']
46
- @apt_repo_path = @pkg_defaults['apt_repo_path']
47
- @ips_repo = @pkg_defaults['ips_repo']
48
- @ips_store = @pkg_defaults['ips_store']
49
- @ips_host = @pkg_defaults['ips_host']
28
+ @pkg_defaults ||= YAML.load_file('ext/build_defaults.yaml')
29
+ @sign_tar = boolean_value( ENV['SIGN_TAR'] || @pkg_defaults['sign_tar'] )
30
+ @build_gem = boolean_value( ENV['GEM'] || @pkg_defaults['build_gem'] )
31
+ @build_dmg = boolean_value( ENV['DMG'] || @pkg_defaults['build_dmg'] )
32
+ @build_ips = boolean_value( ENV['IPS'] || @pkg_defaults['build_ips'] )
33
+ @default_cow = ENV['COW'] || @pkg_defaults['default_cow']
34
+ @cows = ENV['COW'] || @pkg_defaults['cows']
35
+ @pbuild_conf = ENV['PBUILDCONF'] || @pkg_defaults['pbuild_conf']
36
+ @packager = ENV['PACKAGER'] || @pkg_defaults['packager']
37
+ @final_mocks = ENV['MOCK'] || @pkg_defaults['final_mocks']
38
+ @rc_mocks = ENV['MOCK'] || @pkg_defaults['rc_mocks']
39
+ @gpg_name = ENV['GPG_NAME'] || @pkg_defaults['gpg_name']
40
+ @gpg_key = ENV['GPG_KEY'] || @pkg_defaults['gpg_key']
41
+ @certificate_pem = ENV['CERT_PEM'] || @pkg_defaults['certificate_pem']
42
+ @privatekey_pem = ENV['PRIVATE_PEM'] || @pkg_defaults['privatekey_pem']
43
+ @yum_host = @pkg_defaults['yum_host']
44
+ @yum_repo_path = @pkg_defaults['yum_repo_path']
45
+ @apt_host = @pkg_defaults['apt_host']
46
+ @apt_repo_url = @pkg_defaults['apt_repo_url']
47
+ @apt_repo_path = @pkg_defaults['apt_repo_path']
48
+ @ips_repo = @pkg_defaults['ips_repo']
49
+ @ips_store = @pkg_defaults['ips_store']
50
+ @ips_host = @pkg_defaults['ips_host']
50
51
  rescue
51
52
  STDERR.puts "There was an error loading the packaging defaults from the 'ext/build_defaults.yaml' file."
52
53
  exit 1
53
54
  end
54
55
 
55
- @build_root ||= Dir.pwd
56
- @version ||= get_dash_version
57
- @gemversion ||= get_dot_version
58
- @ipsversion ||= get_ips_version
59
- @debversion ||= get_debversion
60
- @origversion ||= get_origversion
61
- @rpmversion ||= get_rpmversion
62
- @rpmrelease ||= get_rpmrelease
56
+ @build_root ||= Dir.pwd
57
+ @version ||= get_dash_version
58
+ @gemversion ||= get_dot_version
59
+ @ipsversion ||= get_ips_version
60
+ @debversion ||= get_debversion
61
+ @origversion ||= get_origversion
62
+ @rpmversion ||= get_rpmversion
63
+ @rpmrelease ||= get_rpmrelease
64
+ @keychain_loaded ||= FALSE
@@ -182,7 +182,7 @@ def pack_source
182
182
  end
183
183
  end
184
184
 
185
- if @build_dmg or @build_dmg == 'TRUE' or @build_dmg == 'true'
185
+ if @build_dmg
186
186
  namespace :package do
187
187
  desc "Task for building an Apple Package"
188
188
  task :apple => [:setup] do
@@ -5,17 +5,18 @@ def pdebuild args
5
5
  set_cow_envs(cow)
6
6
  begin
7
7
  sh "pdebuild --configfile #{@pbuild_conf} --buildresult #{results_dir} --pbuilder cowbuilder -- --override-config --othermirror=\"deb #{@apt_repo_url} #{ENV['DIST']} main dependencies #{devel_repo}\" --basepath /var/cache/pbuilder/#{cow}/"
8
- rescue
9
- STDERR.puts "Something went wrong. Hopefully the backscroll or #{results_dir}/#{@name}_#{@debversion}.build file has a clue."
10
- exit 1
8
+ rescue Exception => e
9
+ puts e
10
+ handle_method_failure('pdebuild', args)
11
11
  end
12
12
  end
13
13
 
14
14
  def update_cow(cow, is_rc = nil)
15
15
  ENV['FOSS_DEVEL'] = is_rc
16
+ ENV['PATH'] = "/usr/sbin:#{ENV['PATH']}"
16
17
  set_cow_envs(cow)
17
18
  begin
18
- sh "sudo cowbuilder --update --override-config --configfile #{@pbuild_conf} --basepath /var/cache/pbuilder/#{cow} --distribution #{ENV['DIST']} --architecture #{ENV['ARCH']}"
19
+ sh "sudo -E /usr/sbin/cowbuilder --update --override-config --configfile #{@pbuild_conf} --basepath /var/cache/pbuilder/#{cow} --distribution #{ENV['DIST']} --architecture #{ENV['ARCH']}"
19
20
  rescue
20
21
  STDERR.puts "Couldn't update the cow #{cow}. Perhaps you don't have sudo?"
21
22
  exit 1
@@ -49,19 +50,16 @@ task :build_deb, :deb_command, :cow, :devel do |t,args|
49
50
  work_dir = get_temp
50
51
  dest_dir = "#{@build_root}/pkg/deb/#{cow.split('-')[1] unless cow.nil?}"
51
52
  check_tool(deb_build)
53
+ update_cow(cow, devel)
52
54
  mkdir_p dest_dir
53
55
  deb_args = { :work_dir => work_dir, :cow => cow, :devel => devel}
54
56
  Rake::Task[:prep_deb_tars].reenable
55
57
  Rake::Task[:prep_deb_tars].invoke(work_dir)
56
58
  cd "#{work_dir}/#{@name}-#{@debversion}" do
57
59
  mv 'ext/debian', '.'
58
- begin
59
- send(deb_build, deb_args)
60
- cp FileList["#{work_dir}/*.deb", "#{work_dir}/*.dsc", "#{work_dir}/*.changes", "#{work_dir}/*.debian.tar.gz", "#{work_dir}/*.orig.tar.gz"], dest_dir
61
- rm_rf "#{work_dir}/#{@name}-#{@debversion}"
62
- rescue
63
- STDERR.puts "Something went wrong. Hopefully the backscroll or #{work_dir}/#{@name}_#{@debversion}.build file has a clue."
64
- end
60
+ send(deb_build, deb_args)
61
+ cp FileList["#{work_dir}/*.deb", "#{work_dir}/*.dsc", "#{work_dir}/*.changes", "#{work_dir}/*.debian.tar.gz", "#{work_dir}/*.orig.tar.gz"], dest_dir
62
+ rm_rf "#{work_dir}/#{@name}-#{@debversion}"
65
63
  rm_rf work_dir
66
64
  end
67
65
  end
@@ -1,4 +1,4 @@
1
- if @build_gem == TRUE or @build_gem == 'true' or @build_gem == 'TRUE'
1
+ if @build_gem
2
2
  require 'rubygems/package_task'
3
3
 
4
4
  def glob_gem_files
@@ -44,8 +44,11 @@ if @build_gem == TRUE or @build_gem == 'true' or @build_gem == 'TRUE'
44
44
  end
45
45
 
46
46
  namespace :package do
47
- Gem::PackageTask.new(spec) do |pkg|
48
- pkg.need_tar_gz = true
47
+ gem_task = Gem::PackageTask.new(spec)
48
+ desc "Build a gem"
49
+ task :gem => [ "clean" ] do
50
+ gem_task.define
51
+ Rake::Task[:gem].invoke
49
52
  end
50
53
  end
51
54
  end
@@ -1,78 +1,80 @@
1
- require 'erb'
2
- namespace :package do
3
- namespace :ips do
4
- workdir = "pkg/ips"
5
- proto = workdir + '/proto'
6
- repo = workdir + '/repo'
7
- pkgs = workdir + '/pkgs'
8
- repouri = "file://#{`pwd`.strip + '/' + repo}"
9
- artifact = "#{pkgs}/#{@name}@#{@ipsversion}.p5p"
1
+ if @build_ips
2
+ require 'erb'
3
+ namespace :package do
4
+ namespace :ips do
5
+ workdir = "pkg/ips"
6
+ proto = workdir + '/proto'
7
+ repo = workdir + '/repo'
8
+ pkgs = workdir + '/pkgs'
9
+ repouri = "file://#{`pwd`.strip + '/' + repo}"
10
+ artifact = "#{pkgs}/#{@name}@#{@ipsversion}.p5p"
10
11
 
11
- # Create a source repo
12
- # We dont clean the base pkg directory only ips work dir.
13
- task :clean do
14
- %x[rm -rf #{workdir}]
15
- end
12
+ # Create a source repo
13
+ # We dont clean the base pkg directory only ips work dir.
14
+ task :clean do
15
+ %x[rm -rf #{workdir}]
16
+ end
16
17
 
17
- # Create an installation image at ips/proto
18
- task :prepare => :clean do
19
- check_tool('pkgsend')
20
- x %[mkdir -p #{workdir}]
21
- x %[gmake -f ext/ips/rules DESTDIR=#{proto} 2>#{workdir}/build.out ]
22
- end
18
+ # Create an installation image at ips/proto
19
+ task :prepare => :clean do
20
+ check_tool('pkgsend')
21
+ x %[mkdir -p #{workdir}]
22
+ x %[gmake -f ext/ips/rules DESTDIR=#{proto} 2>#{workdir}/build.out ]
23
+ end
23
24
 
24
- # Process templates and write the initial manifest
25
- task :prototmpl do
26
- erb("ext/ips/#{@name}.p5m.erb", workdir + '/' + @name + '.p5m.x')
27
- end
25
+ # Process templates and write the initial manifest
26
+ task :prototmpl do
27
+ erb("ext/ips/#{@name}.p5m.erb", workdir + '/' + @name + '.p5m.x')
28
+ end
28
29
 
29
- # Update manifest to include the installation image information.
30
- task :protogen => :prototmpl do
31
- x %[pkgsend generate #{proto} >> #{workdir}/#{@name}.p5m.x ]
32
- os=%x[uname -p].chomp
33
- end
30
+ # Update manifest to include the installation image information.
31
+ task :protogen => :prototmpl do
32
+ x %[pkgsend generate #{proto} >> #{workdir}/#{@name}.p5m.x ]
33
+ os=%x[uname -p].chomp
34
+ end
34
35
 
35
- # Generate and resolve dependency list
36
- task :protodeps => :protogen do
37
- x %[pkgdepend generate -d #{proto} #{workdir}/#{@name}.p5m.x > #{workdir}/#{@name}.depends ]
38
- x %[pkgdepend resolve -m #{workdir}/#{@name}.depends ]
39
- x %[cat #{workdir}/#{@name}.depends.res >> #{workdir}/#{@name}.p5m.x]
40
- end
36
+ # Generate and resolve dependency list
37
+ task :protodeps => :protogen do
38
+ x %[pkgdepend generate -d #{proto} #{workdir}/#{@name}.p5m.x > #{workdir}/#{@name}.depends ]
39
+ x %[pkgdepend resolve -m #{workdir}/#{@name}.depends ]
40
+ x %[cat #{workdir}/#{@name}.depends.res >> #{workdir}/#{@name}.p5m.x]
41
+ end
41
42
 
42
- # Mogrify manifest to remove unncecessary info, and other kinds of transforms.
43
- task :protomogrify => :protodeps do
44
- x %[pkgmogrify ./ext/ips/transforms ./#{workdir}/#{@name}.p5m.x| pkgfmt >> #{workdir}/#{@name}.p5m ]
45
- end
43
+ # Mogrify manifest to remove unncecessary info, and other kinds of transforms.
44
+ task :protomogrify => :protodeps do
45
+ x %[pkgmogrify ./ext/ips/transforms ./#{workdir}/#{@name}.p5m.x| pkgfmt >> #{workdir}/#{@name}.p5m ]
46
+ end
46
47
 
47
- # Generate and resolve dependency list
48
- task :license => :protomogrify do
49
- x %[cp LICENSE #{proto}/#{@name}.license]
50
- end
48
+ # Generate and resolve dependency list
49
+ task :license => :protomogrify do
50
+ x %[cp LICENSE #{proto}/#{@name}.license]
51
+ end
51
52
 
52
- # Ensure that our manifest is sane.
53
- task :lint => :license do
54
- x %[pkglint #{workdir}/#{@name}.p5m]
55
- end
53
+ # Ensure that our manifest is sane.
54
+ task :lint => :license do
55
+ x %[pkglint #{workdir}/#{@name}.p5m]
56
+ end
56
57
 
57
- task :package => :lint do
58
- x %[rm -rf #{pkgs}]
59
- x %[mkdir -p #{pkgs}]
60
- x %[pkgrepo create #{repo}]
61
- x %[pkgrepo set -s #{repo} publisher/prefix=puppetlabs.com]
62
- x %[pkgsend -s #{repouri} publish -d #{proto} --fmri-in-manifest #{workdir}/#{@name}.p5m]
63
- x %[rm -f #{artifact}]
64
- x %[pkgrecv -s #{repouri} -a -d #{artifact} #{@name}@#{@ipsversion}]
65
- end
58
+ task :package => :lint do
59
+ x %[rm -rf #{pkgs}]
60
+ x %[mkdir -p #{pkgs}]
61
+ x %[pkgrepo create #{repo}]
62
+ x %[pkgrepo set -s #{repo} publisher/prefix=puppetlabs.com]
63
+ x %[pkgsend -s #{repouri} publish -d #{proto} --fmri-in-manifest #{workdir}/#{@name}.p5m]
64
+ x %[rm -f #{artifact}]
65
+ x %[pkgrecv -s #{repouri} -a -d #{artifact} #{@name}@#{@ipsversion}]
66
+ end
66
67
 
67
- task :dry_install do
68
- x %[pkg install -nv -g #{artifact} #{@name}@#{@ipsversion}]
68
+ task :dry_install do
69
+ x %[pkg install -nv -g #{artifact} #{@name}@#{@ipsversion}]
70
+ end
69
71
  end
70
- end
71
72
 
72
- desc "Creates an ips version"
73
- task :ips do
74
- Rake::Task['package:ips:prepare'].invoke
75
- Rake::Task['package:ips:package'].invoke
76
- end
73
+ desc "Creates an ips version"
74
+ task :ips do
75
+ Rake::Task['package:ips:prepare'].invoke
76
+ Rake::Task['package:ips:package'].invoke
77
+ end
77
78
 
79
+ end
78
80
  end
@@ -49,7 +49,7 @@ def build_rpm_with_mock(is_rc, subdir)
49
49
  end
50
50
  end
51
51
 
52
- case rpm
52
+ case File.basename(rpm)
53
53
  when /debuginfo/
54
54
  rm_rf(rpm)
55
55
  when /src\.rpm/
@@ -60,7 +60,7 @@ def build_rpm_with_mock(is_rc, subdir)
60
60
  cp_pr(rpm, "pkg/#{family}/#{version}/#{subdir}/x86_64")
61
61
  when /noarch/
62
62
  cp_pr(rpm, "pkg/#{family}/#{version}/#{subdir}/i386")
63
- ln("pkg/#{family}/#{version}/#{subdir}/i386/#{File.basename rpm}", "pkg/#{family}/#{version}/#{subdir}/x86_64/")
63
+ ln("pkg/#{family}/#{version}/#{subdir}/i386/#{File.basename(rpm)}", "pkg/#{family}/#{version}/#{subdir}/x86_64/")
64
64
  end
65
65
  end
66
66
  end
@@ -1,20 +1,56 @@
1
- namespace :package do
2
- desc "Update the version in #{@version_file} to current and commit."
3
- task :versionbump do
4
- old_version = get_version_file_version
5
- contents = IO.read(@version_file)
6
- new_version = '"' + @version.to_s.strip + '"'
7
- if contents.match("VERSION = #{old_version}")
8
- contents.gsub!("VERSION = #{old_version}", "VERSION = #{new_version}")
9
- elsif contents.match("#{@name.upcase}VERSION = #{old_version}")
10
- contents.gsub!("#{@name.upcase}VERSION = #{old_version}", "#{@name.upcase}VERSION = #{new_version}")
11
- else
12
- contents.gsub!(old_version, @version)
1
+ # These tasks are "release" chains that couple as much of the release process for a package as possible
2
+
3
+ namespace :pl do
4
+ if @build_gem
5
+ desc "Build and ship a gem"
6
+ task :release_gem do
7
+ invoke_task("package:gem")
8
+ if confirm_ship(FileList["pkg/*.gem"])
9
+ invoke_task("pl:ship_gem")
10
+ end
11
+ end
12
+ end
13
+
14
+ desc "Release deb RCs, e.g. package:tar, pl:{deb_all_rc, sign_deb_changes, ship_debs}"
15
+ task :release_deb_rc do
16
+ load_keychain if has_tool('keychain')
17
+ invoke_task("pl:deb_all_rc")
18
+ invoke_task("pl:sign_deb_changes")
19
+ if confirm_ship(FileList["pkg/deb/**/*"])
20
+ invoke_task("pl:ship_debs")
21
+ end
22
+ end
23
+
24
+ desc "Release deb FINALs, e.g. package:tar, pl:{deb_all, sign_deb_changes, ship_debs}"
25
+ task :release_deb_final do
26
+ load_keychain if has_tool('keychain')
27
+ invoke_task("pl:deb_all")
28
+ invoke_task("pl:sign_deb_changes")
29
+ if confirm_ship(FileList["pkg/deb/**/*"])
30
+ invoke_task("pl:ship_debs")
31
+ end
32
+ end
33
+
34
+ desc "Release rpm RCs, e.g. package:tar, pl:{mock_rc, sign_rpms, ship_rpms, update_yum_repo}"
35
+ task :release_rpm_rc do
36
+ invoke_task("pl:mock_rc")
37
+ invoke_task("pl:sign_rpms")
38
+ if confirm_ship(FileList["pkg/el/**/*", "pkg/fedora/**/*"])
39
+ invoke_task("pl:ship_rpms")
40
+ invoke_task("pl:update_yum_repo")
41
+ end
42
+ end
43
+
44
+ desc "Release rpm FINALs, e.g. package:tar, pl:{mock_final, sign_rpms, ship_rpms, update_yum_repo}"
45
+ task :release_rpm_final do
46
+ invoke_task("pl:mock_final")
47
+ invoke_task("pl:sign_rpms")
48
+ if confirm_ship(FileList["pkg/el/**/*", "pkg/fedora/**/*"])
49
+ invoke_task("pl:ship_rpms")
50
+ invoke_task("pl:update_yum_repo")
13
51
  end
14
- file = File.open(@version_file, 'w')
15
- file.write contents
16
- file.close
17
- git_commit_file(@version_file)
18
52
  end
19
53
  end
20
54
 
55
+
56
+