pdk 1.14.1 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/lib/pdk/answer_file.rb +5 -7
  4. data/lib/pdk/cli.rb +1 -0
  5. data/lib/pdk/cli/console.rb +1 -1
  6. data/lib/pdk/cli/convert.rb +10 -2
  7. data/lib/pdk/cli/exec.rb +2 -1
  8. data/lib/pdk/cli/module/build.rb +1 -1
  9. data/lib/pdk/cli/module/generate.rb +1 -1
  10. data/lib/pdk/cli/release.rb +192 -0
  11. data/lib/pdk/cli/release/prep.rb +39 -0
  12. data/lib/pdk/cli/release/publish.rb +40 -0
  13. data/lib/pdk/cli/update.rb +12 -0
  14. data/lib/pdk/config.rb +1 -1
  15. data/lib/pdk/config/namespace.rb +1 -1
  16. data/lib/pdk/generate/module.rb +11 -17
  17. data/lib/pdk/generate/puppet_object.rb +1 -2
  18. data/lib/pdk/generate/task.rb +1 -1
  19. data/lib/pdk/module.rb +2 -1
  20. data/lib/pdk/module/build.rb +15 -25
  21. data/lib/pdk/module/convert.rb +4 -9
  22. data/lib/pdk/module/metadata.rb +1 -3
  23. data/lib/pdk/module/release.rb +260 -0
  24. data/lib/pdk/module/template_dir.rb +115 -0
  25. data/lib/pdk/module/template_dir/base.rb +268 -0
  26. data/lib/pdk/module/template_dir/git.rb +91 -0
  27. data/lib/pdk/module/template_dir/local.rb +21 -0
  28. data/lib/pdk/module/update.rb +17 -5
  29. data/lib/pdk/module/update_manager.rb +1 -1
  30. data/lib/pdk/report.rb +18 -12
  31. data/lib/pdk/report/event.rb +6 -3
  32. data/lib/pdk/template_file.rb +2 -2
  33. data/lib/pdk/util.rb +17 -6
  34. data/lib/pdk/util/bundler.rb +8 -9
  35. data/lib/pdk/util/changelog_generator.rb +115 -0
  36. data/lib/pdk/util/filesystem.rb +62 -2
  37. data/lib/pdk/util/git.rb +60 -8
  38. data/lib/pdk/util/puppet_version.rb +4 -5
  39. data/lib/pdk/util/ruby_version.rb +3 -3
  40. data/lib/pdk/util/template_uri.rb +49 -40
  41. data/lib/pdk/util/version.rb +4 -4
  42. data/lib/pdk/validate/metadata/metadata_syntax.rb +2 -2
  43. data/lib/pdk/validate/puppet/puppet_epp.rb +2 -4
  44. data/lib/pdk/validate/puppet/puppet_syntax.rb +2 -4
  45. data/lib/pdk/validate/tasks/metadata_lint.rb +2 -2
  46. data/lib/pdk/validate/yaml/syntax.rb +3 -3
  47. data/lib/pdk/version.rb +1 -1
  48. data/locales/pdk.pot +401 -149
  49. metadata +11 -3
  50. data/lib/pdk/module/templatedir.rb +0 -391
@@ -19,6 +19,8 @@ module PDK
19
19
  end
20
20
 
21
21
  module Git
22
+ GIT_QUERY_CACHE_TTL ||= 10
23
+
22
24
  def self.git_bindir
23
25
  @git_dir ||= File.join('private', 'git', Gem.win_platform? ? 'cmd' : 'bin')
24
26
  end
@@ -63,9 +65,16 @@ module PDK
63
65
  end
64
66
 
65
67
  def self.repo?(maybe_repo)
66
- return bare_repo?(maybe_repo) if File.directory?(maybe_repo)
67
-
68
- remote_repo?(maybe_repo)
68
+ result = cached_git_query(maybe_repo, :repo?)
69
+ return result unless result.nil?
70
+ result = if PDK::Util::Filesystem.directory?(maybe_repo)
71
+ # Use boolean shortcircuiting here. The mostly likely type of git repo
72
+ # is a "normal" repo with a working tree. Bare repos do not have work tree
73
+ work_tree?(maybe_repo) || bare_repo?(maybe_repo)
74
+ else
75
+ remote_repo?(maybe_repo)
76
+ end
77
+ cache_query_result(maybe_repo, :repo?, result)
69
78
  end
70
79
 
71
80
  def self.bare_repo?(maybe_repo)
@@ -80,23 +89,25 @@ module PDK
80
89
  end
81
90
 
82
91
  def self.work_tree?(path)
83
- return false unless File.directory?(path)
92
+ return false unless PDK::Util::Filesystem.directory?(path)
93
+ result = cached_git_query(path, :work_tree?)
94
+ return result unless result.nil?
84
95
 
85
96
  Dir.chdir(path) do
86
97
  rev_parse = git('rev-parse', '--is-inside-work-tree')
87
- rev_parse[:exit_code].zero? && rev_parse[:stdout].strip == 'true'
98
+ cache_query_result(path, :work_tree?, rev_parse[:exit_code].zero? && rev_parse[:stdout].strip == 'true')
88
99
  end
89
100
  end
90
101
 
91
102
  def self.work_dir_clean?(repo)
92
- raise PDK::CLI::ExitWithError, _('Unable to locate git work dir "%{workdir}"') % { workdir: repo } unless File.directory?(repo)
93
- raise PDK::CLI::ExitWithError, _('Unable to locate git dir "%{gitdir}"') % { gitdir: repo } unless File.directory?(File.join(repo, '.git'))
103
+ raise PDK::CLI::ExitWithError, _('Unable to locate git work dir "%{workdir}"') % { workdir: repo } unless PDK::Util::Filesystem.directory?(repo)
104
+ raise PDK::CLI::ExitWithError, _('Unable to locate git dir "%{gitdir}"') % { gitdir: repo } unless PDK::Util::Filesystem.directory?(File.join(repo, '.git'))
94
105
 
95
106
  git('--work-tree', repo, '--git-dir', File.join(repo, '.git'), 'status', '--untracked-files=no', '--porcelain', repo)[:stdout].empty?
96
107
  end
97
108
 
98
109
  def self.ls_remote(repo, ref)
99
- if File.directory?(repo)
110
+ if PDK::Util::Filesystem.directory?(repo)
100
111
  repo = 'file://' + repo
101
112
  end
102
113
 
@@ -122,6 +133,47 @@ module PDK
122
133
  raise PDK::Util::GitError, args, result unless result[:exit_code].zero?
123
134
  result[:stdout].strip
124
135
  end
136
+
137
+ def self.tag?(git_remote, tag_name)
138
+ git('ls-remote', '--tags', '--exit-code', git_remote, tag_name)[:exit_code].zero?
139
+ end
140
+
141
+ # Clears any cached information for git queries
142
+ # Should only be used during testing
143
+ # @api private
144
+ def self.clear_cached_information
145
+ @git_repo_expire_cache = nil
146
+ @git_repo_cache = nil
147
+ end
148
+
149
+ def self.cached_git_query(repo, query)
150
+ # TODO: Not thread safe
151
+ if @git_repo_expire_cache.nil?
152
+ @git_repo_expire_cache = Time.now + GIT_QUERY_CACHE_TTL # Expire the cache every GIT_QUERY_CACHE_TTL seconds
153
+ @git_repo_cache = {}
154
+ elsif Time.now > @git_repo_expire_cache
155
+ @git_repo_expire_cache = Time.now + GIT_QUERY_CACHE_TTL
156
+ @git_repo_cache = {}
157
+ end
158
+ return nil if @git_repo_cache[repo].nil?
159
+ @git_repo_cache[repo][query]
160
+ end
161
+ private_class_method :cached_git_query
162
+
163
+ def self.cache_query_result(repo, query, result)
164
+ # TODO: Not thread safe?
165
+ if @git_repo_expire_cache.nil?
166
+ @git_repo_expire_cache = Time.now + GIT_QUERY_CACHE_TTL
167
+ @git_repo_cache = {}
168
+ end
169
+ if @git_repo_cache[repo].nil?
170
+ @git_repo_cache[repo] = { query => result }
171
+ else
172
+ @git_repo_cache[repo][query] = result
173
+ end
174
+ result
175
+ end
176
+ private_class_method :cache_query_result
125
177
  end
126
178
  end
127
179
  end
@@ -52,17 +52,16 @@ module PDK
52
52
  return if options[:run] == :once && puppet_dev_fetched?
53
53
 
54
54
  require 'pdk/util/git'
55
- require 'fileutils'
56
55
 
57
56
  # Check if the source is cloned and is a readable git repo
58
57
  unless PDK::Util::Git.remote_repo? puppet_dev_path
59
58
  # Check if the path has something in it already. Delete it and prepare for clone if so.
60
- if File.exist? puppet_dev_path
61
- File.delete(puppet_dev_path) if File.file? puppet_dev_path
62
- FileUtils.rm_rf(puppet_dev_path) if File.directory? puppet_dev_path
59
+ if PDK::Util::Filesystem.exist? puppet_dev_path
60
+ PDK::Util::Filesystem.delete(puppet_dev_path) if PDK::Util::Filesystem.file? puppet_dev_path
61
+ PDK::Util::Filesystem.rm_rf(puppet_dev_path) if PDK::Util::Filesystem.directory? puppet_dev_path
63
62
  end
64
63
 
65
- FileUtils.mkdir_p puppet_dev_path
64
+ PDK::Util::Filesystem.mkdir_p puppet_dev_path
66
65
  clone_result = PDK::Util::Git.git('clone', DEFAULT_PUPPET_DEV_URL, puppet_dev_path)
67
66
  return if clone_result[:exit_code].zero?
68
67
 
@@ -44,7 +44,7 @@ module PDK
44
44
  require 'pdk/util'
45
45
 
46
46
  ruby_basedir = File.join(PDK::Util.pdk_package_basedir, 'private', 'ruby', '*')
47
- Dir[ruby_basedir].sort.map { |ruby_dir|
47
+ PDK::Util::Filesystem.glob(ruby_basedir).sort.map { |ruby_dir|
48
48
  version = File.basename(ruby_dir)
49
49
  [version, version.split('.').take(2).concat(['0']).join('.')]
50
50
  }.reverse.to_h
@@ -142,10 +142,10 @@ module PDK
142
142
  def available_puppet_versions
143
143
  return @available_puppet_versions unless @available_puppet_versions.nil?
144
144
 
145
- puppet_spec_files = Dir[File.join(gem_home, 'specifications', '**', 'puppet*.gemspec')]
145
+ puppet_spec_files = PDK::Util::Filesystem.glob(File.join(gem_home, 'specifications', '**', 'puppet*.gemspec'))
146
146
 
147
147
  gem_path.split(File::PATH_SEPARATOR).each do |path|
148
- puppet_spec_files += Dir[File.join(path, 'specifications', '**', 'puppet*.gemspec')]
148
+ puppet_spec_files += PDK::Util::Filesystem.glob(File.join(path, 'specifications', '**', 'puppet*.gemspec'))
149
149
  end
150
150
 
151
151
  puppet_specs = []
@@ -7,6 +7,7 @@ module PDK
7
7
 
8
8
  PACKAGED_TEMPLATE_KEYWORD = 'pdk-default'.freeze
9
9
  DEPRECATED_TEMPLATE_URL = 'https://github.com/puppetlabs/pdk-module-template'.freeze
10
+ PDK_TEMPLATE_URL = 'https://github.com/puppetlabs/pdk-templates'.freeze
10
11
 
11
12
  LEGACY_PACKAGED_TEMPLATE_PATHS = {
12
13
  'windows' => 'file:///C:/Program Files/Puppet Labs/DevelopmentKit/share/cache/pdk-templates.git',
@@ -35,15 +36,14 @@ module PDK
35
36
  #
36
37
  def initialize(opts_or_uri)
37
38
  require 'addressable'
38
-
39
39
  # If a uri string is passed, skip the valid uri finding code.
40
40
  @uri = if opts_or_uri.is_a?(self.class)
41
41
  opts_or_uri.uri
42
42
  elsif opts_or_uri.is_a?(String)
43
43
  begin
44
44
  uri, ref = opts_or_uri.split('#', 2)
45
- if self.class.packaged_template?(uri)
46
- self.class.default_template_uri(ref).uri
45
+ if PDK::Util::TemplateURI.packaged_template?(uri)
46
+ PDK::Util::TemplateURI.default_template_addressable_uri.tap { |default| default.fragment = ref unless ref.nil? || ref.empty? }
47
47
  else
48
48
  Addressable::URI.parse(opts_or_uri)
49
49
  end
@@ -53,7 +53,7 @@ module PDK
53
53
  elsif opts_or_uri.is_a?(Addressable::URI)
54
54
  opts_or_uri.dup
55
55
  else
56
- self.class.first_valid_uri(self.class.templates(opts_or_uri))
56
+ PDK::Util::TemplateURI.first_valid_uri(PDK::Util::TemplateURI.templates(opts_or_uri))
57
57
  end
58
58
  end
59
59
 
@@ -61,28 +61,48 @@ module PDK
61
61
  @uri == other.uri
62
62
  end
63
63
 
64
+ def bare_uri
65
+ PDK::Util::TemplateURI.bare_uri(@uri)
66
+ end
67
+
64
68
  # This is the URI represented in a format suitable for writing to
65
69
  # metadata.
66
70
  #
67
71
  # @returns String
68
72
  def metadata_format
69
- if self.class.packaged_template?(git_remote)
70
- self.class.human_readable("pdk-default##{git_ref}")
71
- else
72
- self.class.human_readable(@uri.to_s)
73
- end
73
+ @metadata_format ||= if PDK::Util::TemplateURI.packaged_template?(bare_uri)
74
+ PDK::Util::TemplateURI.human_readable("pdk-default##{uri_fragment}")
75
+ else
76
+ PDK::Util::TemplateURI.human_readable(@uri.to_s)
77
+ end
74
78
  end
75
79
  alias to_s metadata_format
76
80
  alias to_str metadata_format
77
81
 
78
- # This is the url without a fragment, suitable for git clones.
79
- #
82
+ # Returns the fragment of the URI, of the default template's ref if one does not exist
80
83
  # @returns String
81
- def git_remote
82
- self.class.git_remote(@uri)
84
+ # @api private
85
+ def uri_fragment
86
+ @uri.fragment || self.class.default_template_ref(self)
83
87
  end
84
88
 
85
- def self.git_remote(uri)
89
+ def uri_fragment=(fragment)
90
+ @uri.fragment = fragment
91
+ end
92
+
93
+ def default?
94
+ bare_uri == PDK::Util::TemplateURI.bare_uri(PDK::Util::TemplateURI.default_template_addressable_uri)
95
+ end
96
+
97
+ def puppetlabs_template?
98
+ self.class.packaged_template?(bare_uri) || bare_uri == PDK_TEMPLATE_URL
99
+ end
100
+
101
+ # Class Methods
102
+
103
+ # Remove the fragment off of URI. Useful for removing the branch
104
+ # for Git based URIs
105
+ def self.bare_uri(uri)
86
106
  require 'addressable'
87
107
 
88
108
  if uri.is_a?(Addressable::URI) && uri.fragment
@@ -98,37 +118,27 @@ module PDK
98
118
  self.class.human_readable(@uri.path)
99
119
  end
100
120
 
101
- # @returns String
102
- def git_ref
103
- @uri.fragment || self.class.default_template_ref(self)
104
- end
121
+ # @returns PDK::Util::TemplateURI
122
+ def self.default_template_uri
123
+ require 'pdk/util'
124
+ require 'addressable'
105
125
 
106
- def git_ref=(ref)
107
- @uri.fragment = ref
126
+ PDK::Util::TemplateURI.new(default_template_addressable_uri)
108
127
  end
109
128
 
110
- # @returns PDK::Util::TemplateURI
111
- def self.default_template_uri(ref = nil)
129
+ # @returns Addressable::URI
130
+ # @api private
131
+ def self.default_template_addressable_uri
112
132
  require 'pdk/util'
113
133
  require 'addressable'
114
134
 
115
135
  if PDK::Util.package_install?
116
- PDK::Util::TemplateURI.new(Addressable::URI.new(scheme: 'file', host: '', path: File.join(PDK::Util.package_cachedir, 'pdk-templates.git'), fragment: ref))
136
+ Addressable::URI.new(scheme: 'file', host: '', path: File.join(PDK::Util.package_cachedir, 'pdk-templates.git'))
117
137
  else
118
- PDK::Util::TemplateURI.new(Addressable::URI.new(scheme: 'https', host: 'github.com', path: '/puppetlabs/pdk-templates', fragment: ref))
138
+ Addressable::URI.parse(PDK_TEMPLATE_URL)
119
139
  end
120
140
  end
121
141
 
122
- def default?
123
- git_remote == self.class.default_template_uri.git_remote
124
- end
125
-
126
- def ref_is_tag?
127
- require 'pdk/util/git'
128
-
129
- PDK::Util::Git.git('ls-remote', '--tags', '--exit-code', git_remote, git_ref)[:exit_code].zero?
130
- end
131
-
132
142
  # `C:...` urls are not URI-safe. They should be of the form `/C:...` to
133
143
  # be URI-safe. scp-like urls like `user@host:/path` are not URI-safe
134
144
  # either and so are subsequently converted to ssh:// URIs.
@@ -195,7 +205,7 @@ module PDK
195
205
  else
196
206
  explicit_uri = nil
197
207
  end
198
- metadata_uri = if PDK::Util.module_root && File.file?(File.join(PDK::Util.module_root, 'metadata.json'))
208
+ metadata_uri = if PDK::Util.module_root && PDK::Util::Filesystem.file?(File.join(PDK::Util.module_root, 'metadata.json'))
199
209
  if PDK::Util.module_metadata['template-url']
200
210
  new(uri_safe(PDK::Util.module_metadata['template-url'])).uri
201
211
  else
@@ -248,18 +258,17 @@ module PDK
248
258
 
249
259
  def self.valid_template?(template)
250
260
  require 'addressable'
251
- require 'pdk/util/git'
252
- require 'pdk/module/templatedir'
253
261
 
254
262
  return false if template.nil? || !template.is_a?(Hash)
255
263
  return false if template[:uri].nil? || !template[:uri].is_a?(Addressable::URI)
256
264
 
257
- return true if PDK::Util::Git.repo?(git_remote(template[:uri]))
265
+ return true if PDK::Util::Git.repo?(bare_uri(template[:uri]))
258
266
 
259
267
  path = human_readable(template[:uri].path)
260
- if File.directory?(path)
268
+ if PDK::Util::Filesystem.directory?(path)
269
+ # We know that it's not a git repository, but it's a valid path on disk
261
270
  begin
262
- PDK::Module::TemplateDir.new(path) {}
271
+ PDK::Module::TemplateDir.validate_module_template!(path)
263
272
  return true
264
273
  rescue ArgumentError
265
274
  nil
@@ -15,8 +15,8 @@ module PDK
15
15
  end
16
16
 
17
17
  def self.pkg_sha
18
- if version_file && File.exist?(version_file)
19
- ver = File.read(version_file)
18
+ if version_file && PDK::Util::Filesystem.exist?(version_file)
19
+ ver = PDK::Util::Filesystem.read_file(version_file)
20
20
  sha = ver.strip.split('.')[5] unless ver.nil?
21
21
  end
22
22
 
@@ -25,9 +25,9 @@ module PDK
25
25
 
26
26
  def self.git_ref
27
27
  require 'pdk/util/git'
28
- source_git_dir = File.join(File.expand_path('../../..', File.dirname(__FILE__)), '.git')
28
+ source_git_dir = File.join(PDK::Util::Filesystem.expand_path('../../..', File.dirname(__FILE__)), '.git')
29
29
 
30
- return unless File.directory?(source_git_dir)
30
+ return unless PDK::Util::Filesystem.directory?(source_git_dir)
31
31
 
32
32
  PDK::Util::Git.describe(source_git_dir)
33
33
  end
@@ -62,7 +62,7 @@ module PDK
62
62
  JSON.parser = JSON::Pure::Parser
63
63
 
64
64
  targets.each do |target|
65
- unless File.readable?(target)
65
+ unless PDK::Util::Filesystem.readable?(target)
66
66
  report.add_event(
67
67
  file: target,
68
68
  source: name,
@@ -75,7 +75,7 @@ module PDK
75
75
  end
76
76
 
77
77
  begin
78
- JSON.parse(File.read(target))
78
+ JSON.parse(PDK::Util::Filesystem.read_file(target))
79
79
 
80
80
  report.add_event(
81
81
  file: target,
@@ -66,11 +66,9 @@ module PDK
66
66
 
67
67
  def self.remove_validate_tmpdir
68
68
  return unless @validate_tmpdir
69
- return unless File.directory?(@validate_tmpdir)
69
+ return unless PDK::Util::Filesystem.directory?(@validate_tmpdir)
70
70
 
71
- require 'fileutils'
72
-
73
- FileUtils.remove_entry_secure(@validate_tmpdir)
71
+ PDK::Util::Filesystem.remove_entry_secure(@validate_tmpdir)
74
72
  @validate_tmpdir = nil
75
73
  end
76
74
 
@@ -66,11 +66,9 @@ module PDK
66
66
 
67
67
  def self.remove_validate_tmpdir
68
68
  return unless @validate_tmpdir
69
- return unless File.directory?(@validate_tmpdir)
69
+ return unless PDK::Util::Filesystem.directory?(@validate_tmpdir)
70
70
 
71
- require 'fileutils'
72
-
73
- FileUtils.remove_entry_secure(@validate_tmpdir)
71
+ PDK::Util::Filesystem.remove_entry_secure(@validate_tmpdir)
74
72
  @validate_tmpdir = nil
75
73
  end
76
74
 
@@ -72,7 +72,7 @@ module PDK
72
72
  require 'json-schema'
73
73
 
74
74
  targets.each do |target|
75
- unless File.readable?(target)
75
+ unless PDK::Util::Filesystem.readable?(target)
76
76
  report.add_event(
77
77
  file: target,
78
78
  source: name,
@@ -91,7 +91,7 @@ module PDK
91
91
  JSON.generator = JSON::Ext::Generator
92
92
 
93
93
  begin
94
- errors = JSON::Validator.fully_validate(schema_file, File.read(target)) || []
94
+ errors = JSON::Validator.fully_validate(schema_file, PDK::Util::Filesystem.read_file(target)) || []
95
95
  rescue JSON::Schema::SchemaError => e
96
96
  raise PDK::CLI::FatalError, _('Unable to validate Task Metadata. %{error}.') % { error: e.message }
97
97
  end
@@ -65,9 +65,9 @@ module PDK
65
65
  PDK.logger.debug(_('Validating yaml content of %{parsed_targets}') % { parsed_targets: targets.to_s })
66
66
 
67
67
  targets.each do |target|
68
- next unless File.file?(target)
68
+ next unless PDK::Util::Filesystem.file?(target)
69
69
 
70
- unless File.readable?(target)
70
+ unless PDK::Util::Filesystem.readable?(target)
71
71
  report.add_event(
72
72
  file: target,
73
73
  source: name,
@@ -80,7 +80,7 @@ module PDK
80
80
  end
81
81
 
82
82
  begin
83
- ::YAML.safe_load(File.read(target), YAML_WHITELISTED_CLASSES, [], true)
83
+ ::YAML.safe_load(PDK::Util::Filesystem.read_file(target), YAML_WHITELISTED_CLASSES, [], true)
84
84
 
85
85
  report.add_event(
86
86
  file: target,
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.14.1'.freeze
2
+ VERSION = '1.15.0'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  end
@@ -6,11 +6,11 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: puppet development kit v1.14.0-110-gcedef59\n"
9
+ "Project-Id-Version: puppet development kit v1.14.1-59-gac5bc75\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
- "POT-Creation-Date: 2019-11-01 11:14+1100\n"
13
- "PO-Revision-Date: 2019-11-01 11:14+1100\n"
12
+ "POT-Creation-Date: 2019-12-13 13:31+1100\n"
13
+ "PO-Revision-Date: 2019-12-13 13:31+1100\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -23,23 +23,23 @@ msgstr ""
23
23
  msgid "Unknown analytics key '%{key}'"
24
24
  msgstr ""
25
25
 
26
- #: ../lib/pdk/answer_file.rb:43
26
+ #: ../lib/pdk/answer_file.rb:41
27
27
  msgid "Answer file can be updated only with a Hash"
28
28
  msgstr ""
29
29
 
30
- #: ../lib/pdk/answer_file.rb:70
30
+ #: ../lib/pdk/answer_file.rb:68
31
31
  msgid "Unable to open '%{file}' for reading"
32
32
  msgstr ""
33
33
 
34
- #: ../lib/pdk/answer_file.rb:79
34
+ #: ../lib/pdk/answer_file.rb:77
35
35
  msgid "Answer file '%{path}' did not contain a valid set of answers, recreating it"
36
36
  msgstr ""
37
37
 
38
- #: ../lib/pdk/answer_file.rb:85
38
+ #: ../lib/pdk/answer_file.rb:83
39
39
  msgid "Answer file '%{path}' did not contain valid JSON, recreating it"
40
40
  msgstr ""
41
41
 
42
- #: ../lib/pdk/answer_file.rb:99
42
+ #: ../lib/pdk/answer_file.rb:97
43
43
  msgid "Unable to write '%{file}': %{msg}"
44
44
  msgstr ""
45
45
 
@@ -127,7 +127,7 @@ msgstr ""
127
127
  msgid "`pdk build` can only be run from inside a valid module with a metadata.json."
128
128
  msgstr ""
129
129
 
130
- #: ../lib/pdk/cli/build.rb:33
130
+ #: ../lib/pdk/cli/build.rb:33 ../lib/pdk/cli/release.rb:59
131
131
  msgid "This module is missing the following fields in the metadata.json: %{fields}. These missing fields may affect the visibility of the module on the Forge."
132
132
  msgstr ""
133
133
 
@@ -139,15 +139,15 @@ msgstr ""
139
139
  msgid "Overwrite?"
140
140
  msgstr ""
141
141
 
142
- #: ../lib/pdk/cli/build.rb:52 ../lib/pdk/cli/build.rb:63
142
+ #: ../lib/pdk/cli/build.rb:52 ../lib/pdk/cli/build.rb:63 ../lib/pdk/cli/release.rb:79
143
143
  msgid "Build cancelled; exiting."
144
144
  msgstr ""
145
145
 
146
- #: ../lib/pdk/cli/build.rb:58
146
+ #: ../lib/pdk/cli/build.rb:58 ../lib/pdk/cli/release.rb:75
147
147
  msgid "This module is not compatible with PDK, so PDK can not validate or test this build. Unvalidated modules may have errors when uploading to the Forge. To make this module PDK compatible and use validate features, cancel the build and run `pdk convert`."
148
148
  msgstr ""
149
149
 
150
- #: ../lib/pdk/cli/build.rb:62
150
+ #: ../lib/pdk/cli/build.rb:62 ../lib/pdk/cli/release.rb:78
151
151
  msgid "Continue build without converting?"
152
152
  msgstr ""
153
153
 
@@ -249,19 +249,27 @@ msgstr ""
249
249
  msgid "Add any missing tests while converting the module."
250
250
  msgstr ""
251
251
 
252
- #: ../lib/pdk/cli/convert.rb:21
252
+ #: ../lib/pdk/cli/convert.rb:14
253
+ msgid "Convert the module to use the default PDK template."
254
+ msgstr ""
255
+
256
+ #: ../lib/pdk/cli/convert.rb:22
253
257
  msgid "`pdk convert` can only be run from inside a valid module directory."
254
258
  msgstr ""
255
259
 
256
- #: ../lib/pdk/cli/convert.rb:28
260
+ #: ../lib/pdk/cli/convert.rb:27
257
261
  msgid "You can not specify --noop and --force when converting a module"
258
262
  msgstr ""
259
263
 
260
- #: ../lib/pdk/cli/convert.rb:34 ../lib/pdk/cli/new/module.rb:27
264
+ #: ../lib/pdk/cli/convert.rb:31
265
+ msgid "You can not specify --template-url and --default-template."
266
+ msgstr ""
267
+
268
+ #: ../lib/pdk/cli/convert.rb:42 ../lib/pdk/cli/new/module.rb:27
261
269
  msgid "Ignoring --full-interview and continuing with --skip-interview."
262
270
  msgstr ""
263
271
 
264
- #: ../lib/pdk/cli/convert.rb:39
272
+ #: ../lib/pdk/cli/convert.rb:47
265
273
  msgid "Ignoring --full-interview and continuing with --force."
266
274
  msgstr ""
267
275
 
@@ -277,11 +285,11 @@ msgstr ""
277
285
  msgid "PDK package installation not found. Trying '%{fallback}' from the system PATH instead."
278
286
  msgstr ""
279
287
 
280
- #: ../lib/pdk/cli/exec.rb:71
288
+ #: ../lib/pdk/cli/exec.rb:72
281
289
  msgid "Could not find '%{vendored_bin}' in PDK package. Trying '%{fallback}' from the system PATH instead."
282
290
  msgstr ""
283
291
 
284
- #: ../lib/pdk/cli/exec.rb:78
292
+ #: ../lib/pdk/cli/exec.rb:79
285
293
  msgid "Using '%{vendored_bin}' from PDK package."
286
294
  msgstr ""
287
295
 
@@ -364,7 +372,7 @@ msgid "This command is now 'pdk build'."
364
372
  msgstr ""
365
373
 
366
374
  #: ../lib/pdk/cli/module/build.rb:8
367
- msgid "Modules are built using the pdk build command."
375
+ msgid "Modules are built using the 'pdk build' command."
368
376
  msgstr ""
369
377
 
370
378
  #: ../lib/pdk/cli/module/generate.rb:4
@@ -376,7 +384,7 @@ msgid "This command is now 'pdk new module'."
376
384
  msgstr ""
377
385
 
378
386
  #: ../lib/pdk/cli/module/generate.rb:24
379
- msgid "New modules are created using the pdk new module command."
387
+ msgid "New modules are created using the 'pdk new module' command."
380
388
  msgstr ""
381
389
 
382
390
  #: ../lib/pdk/cli/module/generate.rb:40 ../lib/pdk/cli/new/module.rb:49
@@ -519,6 +527,138 @@ msgstr ""
519
527
  msgid "'%{name}' is not a valid transport name"
520
528
  msgstr ""
521
529
 
530
+ #: ../lib/pdk/cli/release.rb:11
531
+ msgid "release [options]"
532
+ msgstr ""
533
+
534
+ #: ../lib/pdk/cli/release.rb:12
535
+ msgid "(Experimental) Release a module to the Puppet Forge."
536
+ msgstr ""
537
+
538
+ #: ../lib/pdk/cli/release.rb:14
539
+ msgid "Release the module automatically, with no prompts."
540
+ msgstr ""
541
+
542
+ #: ../lib/pdk/cli/release.rb:15 ../lib/pdk/cli/release/prep.rb:10
543
+ msgid "Skips the module validation check."
544
+ msgstr ""
545
+
546
+ #: ../lib/pdk/cli/release.rb:16 ../lib/pdk/cli/release/prep.rb:11
547
+ msgid "Skips the automatic changelog generation."
548
+ msgstr ""
549
+
550
+ #: ../lib/pdk/cli/release.rb:17 ../lib/pdk/cli/release/prep.rb:12
551
+ msgid "Skips the module dependency check."
552
+ msgstr ""
553
+
554
+ #: ../lib/pdk/cli/release.rb:18 ../lib/pdk/cli/release/prep.rb:13
555
+ msgid "Skips the documentation update."
556
+ msgstr ""
557
+
558
+ #: ../lib/pdk/cli/release.rb:19
559
+ msgid "Skips module build."
560
+ msgstr ""
561
+
562
+ #: ../lib/pdk/cli/release.rb:20
563
+ msgid "Skips publishing the module to the forge."
564
+ msgstr ""
565
+
566
+ #: ../lib/pdk/cli/release.rb:22 ../lib/pdk/cli/release/publish.rb:11
567
+ msgid "Set forge upload url path."
568
+ msgstr ""
569
+
570
+ #: ../lib/pdk/cli/release.rb:25 ../lib/pdk/cli/release/publish.rb:14
571
+ msgid "Set Forge API token."
572
+ msgstr ""
573
+
574
+ #: ../lib/pdk/cli/release.rb:27 ../lib/pdk/cli/release/prep.rb:15
575
+ msgid "Update the module to the specified version prior to release. When not specified, the new version will be computed from the Changelog where possible."
576
+ msgstr ""
577
+
578
+ #: ../lib/pdk/cli/release.rb:30
579
+ msgid "Path to the built module to push to the Forge. This option can only be used when --skip-build is also used. Defaults to pkg/<module version>.tar.gz"
580
+ msgstr ""
581
+
582
+ #: ../lib/pdk/cli/release.rb:36
583
+ msgid "`pdk release` can only be run from inside a valid module with a metadata.json."
584
+ msgstr ""
585
+
586
+ #: ../lib/pdk/cli/release.rb:73
587
+ msgid "This module is not compatible with PDK, so PDK can not validate or test this build."
588
+ msgstr ""
589
+
590
+ #: ../lib/pdk/cli/release.rb:98
591
+ msgid "Do you want to run the module validation ?"
592
+ msgstr ""
593
+
594
+ #: ../lib/pdk/cli/release.rb:105
595
+ msgid "Do you want to run the automatic changelog generation ?"
596
+ msgstr ""
597
+
598
+ #: ../lib/pdk/cli/release.rb:112
599
+ msgid "Do you want to set the module version ?"
600
+ msgstr ""
601
+
602
+ #: ../lib/pdk/cli/release.rb:119
603
+ msgid "Do you want to run the dependency-checker on this module?"
604
+ msgstr ""
605
+
606
+ #: ../lib/pdk/cli/release.rb:126
607
+ msgid "Do you want to update the documentation for this module?"
608
+ msgstr ""
609
+
610
+ #: ../lib/pdk/cli/release.rb:133
611
+ msgid "Do you want to publish the module on the Puppet Forge?"
612
+ msgstr ""
613
+
614
+ #: ../lib/pdk/cli/release.rb:160
615
+ msgid "Please set the module version"
616
+ msgstr ""
617
+
618
+ #: ../lib/pdk/cli/release.rb:161
619
+ msgid "This value is the version that will be used in the changelog generator and building of the module."
620
+ msgstr ""
621
+
622
+ #: ../lib/pdk/cli/release.rb:164
623
+ msgid "The version format should be in the format x.y.z where x represents the major version, y the minor version and z the build number."
624
+ msgstr ""
625
+
626
+ #: ../lib/pdk/cli/release.rb:178
627
+ msgid "Please set the api key(authorization token) to upload on the Puppet Forge"
628
+ msgstr ""
629
+
630
+ #: ../lib/pdk/cli/release.rb:179
631
+ msgid "This value is used for authentication on the Puppet Forge to upload your module tarball."
632
+ msgstr ""
633
+
634
+ #: ../lib/pdk/cli/release/prep.rb:6
635
+ msgid "prep [options]"
636
+ msgstr ""
637
+
638
+ #: ../lib/pdk/cli/release/prep.rb:7
639
+ msgid "(Experimental) Performs all the pre-release checks to ensure module is ready to be released"
640
+ msgstr ""
641
+
642
+ #: ../lib/pdk/cli/release/prep.rb:9
643
+ msgid "Prepare the module automatically, with no prompts."
644
+ msgstr ""
645
+
646
+ #: ../lib/pdk/cli/release/prep.rb:21 ../lib/pdk/cli/release/publish.rb:19
647
+ msgid "`pdk release #{cmd.name}` can only be run from inside a valid module with a metadata.json."
648
+ msgstr ""
649
+
650
+ #: ../lib/pdk/cli/release/publish.rb:6
651
+ msgid "publish [options] <tarball>"
652
+ msgstr ""
653
+
654
+ #: ../lib/pdk/cli/release/publish.rb:7
655
+ msgid "(Experimental) Publishes the module <tarball> to the Forge."
656
+ msgstr ""
657
+
658
+ #: ../lib/pdk/cli/release/publish.rb:9
659
+ msgid "Publish the module automatically, with no prompts."
660
+ msgstr ""
661
+
522
662
  #: ../lib/pdk/cli/test.rb:4
523
663
  msgid "test [subcommand] [options]"
524
664
  msgstr ""
@@ -607,6 +747,10 @@ msgstr ""
607
747
  msgid "Please update your PDK installation and try again. You may also use the --force flag to override this and continue at your own risk."
608
748
  msgstr ""
609
749
 
750
+ #: ../lib/pdk/cli/update.rb:52
751
+ msgid "This module is currently pinned to version %{current_version} of the default template. If you would like to update your module to the latest version of the template, please run `pdk update --template-ref %{new_version}`."
752
+ msgstr ""
753
+
610
754
  #: ../lib/pdk/cli/util.rb:25
611
755
  msgid "This command must be run from inside a valid module (no metadata.json found)."
612
756
  msgstr ""
@@ -728,24 +872,24 @@ msgstr ""
728
872
  msgid "Validating module using %{num_of_threads} threads"
729
873
  msgstr ""
730
874
 
731
- #: ../lib/pdk/config.rb:46
875
+ #: ../lib/pdk/config.rb:53
732
876
  msgid "Unable to load %{file}: %{message}"
733
877
  msgstr ""
734
878
 
735
- #: ../lib/pdk/config.rb:79
879
+ #: ../lib/pdk/config.rb:86
736
880
  msgid ""
737
881
  "PDK collects anonymous usage information to help us understand how it is being used and make decisions on how to improve it. You can find out more about what data we collect and how it is used in the PDK documentation at %{url}.\n"
738
882
  msgstr ""
739
883
 
740
- #: ../lib/pdk/config.rb:85
884
+ #: ../lib/pdk/config.rb:92
741
885
  msgid "You can opt in or out of the usage data collection at any time by editing the analytics configuration file at %{path} and changing the '%{key}' value."
742
886
  msgstr ""
743
887
 
744
- #: ../lib/pdk/config.rb:97
888
+ #: ../lib/pdk/config.rb:104
745
889
  msgid "Do you consent to the collection of anonymous PDK usage information?"
746
890
  msgstr ""
747
891
 
748
- #: ../lib/pdk/config.rb:111
892
+ #: ../lib/pdk/config.rb:118
749
893
  msgid "No answer given, opting out of analytics collection."
750
894
  msgstr ""
751
895
 
@@ -801,6 +945,14 @@ msgstr ""
801
945
  msgid "must be passed a block"
802
946
  msgstr ""
803
947
 
948
+ #: ../lib/pdk/config/validator.rb:16
949
+ msgid "must be a boolean: true or false"
950
+ msgstr ""
951
+
952
+ #: ../lib/pdk/config/validator.rb:26
953
+ msgid "must be a version 4 UUID"
954
+ msgstr ""
955
+
804
956
  #: ../lib/pdk/config/yaml.rb:21 ../lib/pdk/config/yaml_with_schema.rb:39
805
957
  msgid "Syntax error when loading %{file}: %{error}"
806
958
  msgstr ""
@@ -809,159 +961,159 @@ msgstr ""
809
961
  msgid "Unsupported class in %{file}: %{error}"
810
962
  msgstr ""
811
963
 
812
- #: ../lib/pdk/generate/module.rb:12
964
+ #: ../lib/pdk/generate/module.rb:10
813
965
  msgid ""
814
966
  "'%{module_name}' is not a valid module name.\n"
815
967
  "Module names must begin with a lowercase letter and can only include lowercase letters, digits, and underscores."
816
968
  msgstr ""
817
969
 
818
- #: ../lib/pdk/generate/module.rb:20
970
+ #: ../lib/pdk/generate/module.rb:18
819
971
  msgid "The destination directory '%{dir}' already exists"
820
972
  msgstr ""
821
973
 
822
- #: ../lib/pdk/generate/module.rb:42
974
+ #: ../lib/pdk/generate/module.rb:38
823
975
  msgid "You do not have permission to write to '%{parent_dir}'"
824
976
  msgstr ""
825
977
 
826
- #: ../lib/pdk/generate/module.rb:94
978
+ #: ../lib/pdk/generate/module.rb:90
827
979
  msgid "Module '%{name}' generated at path '%{path}', from template '%{url}'."
828
980
  msgstr ""
829
981
 
830
- #: ../lib/pdk/generate/module.rb:95
982
+ #: ../lib/pdk/generate/module.rb:91
831
983
  msgid "In your module directory, add classes with the 'pdk new class' command."
832
984
  msgstr ""
833
985
 
834
- #: ../lib/pdk/generate/module.rb:98
986
+ #: ../lib/pdk/generate/module.rb:94
835
987
  msgid "Failed to move '%{source}' to '%{target}': %{message}"
836
988
  msgstr ""
837
989
 
838
- #: ../lib/pdk/generate/module.rb:114
990
+ #: ../lib/pdk/generate/module.rb:110
839
991
  msgid "Your username is not a valid Forge username. Proceeding with the username %{username}. You can fix this later in metadata.json."
840
992
  msgstr ""
841
993
 
842
- #: ../lib/pdk/generate/module.rb:154
994
+ #: ../lib/pdk/generate/module.rb:148
843
995
  msgid "Unable to create directory '%{dir}': %{message}"
844
996
  msgstr ""
845
997
 
846
- #: ../lib/pdk/generate/module.rb:169
998
+ #: ../lib/pdk/generate/module.rb:163
847
999
  msgid "If you have a name for your module, add it here."
848
1000
  msgstr ""
849
1001
 
850
- #: ../lib/pdk/generate/module.rb:170
1002
+ #: ../lib/pdk/generate/module.rb:164
851
1003
  msgid "This is the name that will be associated with your module, it should be relevant to the modules content."
852
1004
  msgstr ""
853
1005
 
854
- #: ../lib/pdk/generate/module.rb:173
1006
+ #: ../lib/pdk/generate/module.rb:167
855
1007
  msgid "Module names must begin with a lowercase letter and can only include lowercase letters, numbers, and underscores."
856
1008
  msgstr ""
857
1009
 
858
- #: ../lib/pdk/generate/module.rb:177
1010
+ #: ../lib/pdk/generate/module.rb:171
859
1011
  msgid "If you have a Puppet Forge username, add it here."
860
1012
  msgstr ""
861
1013
 
862
- #: ../lib/pdk/generate/module.rb:178
1014
+ #: ../lib/pdk/generate/module.rb:172
863
1015
  msgid "We can use this to upload your module to the Forge when it's complete."
864
1016
  msgstr ""
865
1017
 
866
- #: ../lib/pdk/generate/module.rb:181
1018
+ #: ../lib/pdk/generate/module.rb:175
867
1019
  msgid "Forge usernames can only contain lowercase letters and numbers"
868
1020
  msgstr ""
869
1021
 
870
- #: ../lib/pdk/generate/module.rb:186
1022
+ #: ../lib/pdk/generate/module.rb:180
871
1023
  msgid "What version is this module?"
872
1024
  msgstr ""
873
1025
 
874
- #: ../lib/pdk/generate/module.rb:187
1026
+ #: ../lib/pdk/generate/module.rb:181
875
1027
  msgid "Puppet uses Semantic Versioning (semver.org) to version modules."
876
1028
  msgstr ""
877
1029
 
878
- #: ../lib/pdk/generate/module.rb:190
1030
+ #: ../lib/pdk/generate/module.rb:184
879
1031
  msgid "Semantic Version numbers must be in the form MAJOR.MINOR.PATCH"
880
1032
  msgstr ""
881
1033
 
882
- #: ../lib/pdk/generate/module.rb:196
1034
+ #: ../lib/pdk/generate/module.rb:190
883
1035
  msgid "Who wrote this module?"
884
1036
  msgstr ""
885
1037
 
886
- #: ../lib/pdk/generate/module.rb:197
1038
+ #: ../lib/pdk/generate/module.rb:191
887
1039
  msgid "This is used to credit the module's author."
888
1040
  msgstr ""
889
1041
 
890
- #: ../lib/pdk/generate/module.rb:203
1042
+ #: ../lib/pdk/generate/module.rb:197
891
1043
  msgid "What license does this module code fall under?"
892
1044
  msgstr ""
893
1045
 
894
- #: ../lib/pdk/generate/module.rb:204
1046
+ #: ../lib/pdk/generate/module.rb:198
895
1047
  msgid "This should be an identifier from https://spdx.org/licenses/. Common values are \"Apache-2.0\", \"MIT\", or \"proprietary\"."
896
1048
  msgstr ""
897
1049
 
898
- #: ../lib/pdk/generate/module.rb:210
1050
+ #: ../lib/pdk/generate/module.rb:204
899
1051
  msgid "What operating systems does this module support?"
900
1052
  msgstr ""
901
1053
 
902
- #: ../lib/pdk/generate/module.rb:211
1054
+ #: ../lib/pdk/generate/module.rb:205
903
1055
  msgid "Use the up and down keys to move between the choices, space to select and enter to continue."
904
1056
  msgstr ""
905
1057
 
906
- #: ../lib/pdk/generate/module.rb:222
1058
+ #: ../lib/pdk/generate/module.rb:216
907
1059
  msgid "Summarize the purpose of this module in a single sentence."
908
1060
  msgstr ""
909
1061
 
910
- #: ../lib/pdk/generate/module.rb:223
1062
+ #: ../lib/pdk/generate/module.rb:217
911
1063
  msgid "This helps other Puppet users understand what the module does."
912
1064
  msgstr ""
913
1065
 
914
- #: ../lib/pdk/generate/module.rb:230
1066
+ #: ../lib/pdk/generate/module.rb:224
915
1067
  msgid "If there is a source code repository for this module, enter the URL here."
916
1068
  msgstr ""
917
1069
 
918
- #: ../lib/pdk/generate/module.rb:231
1070
+ #: ../lib/pdk/generate/module.rb:225
919
1071
  msgid "Skip this if no repository exists yet. You can update this later in the metadata.json."
920
1072
  msgstr ""
921
1073
 
922
- #: ../lib/pdk/generate/module.rb:238
1074
+ #: ../lib/pdk/generate/module.rb:232
923
1075
  msgid "If there is a URL where others can learn more about this module, enter it here."
924
1076
  msgstr ""
925
1077
 
926
- #: ../lib/pdk/generate/module.rb:239 ../lib/pdk/generate/module.rb:246
1078
+ #: ../lib/pdk/generate/module.rb:233 ../lib/pdk/generate/module.rb:240
927
1079
  msgid "Optional. You can update this later in the metadata.json."
928
1080
  msgstr ""
929
1081
 
930
- #: ../lib/pdk/generate/module.rb:245
1082
+ #: ../lib/pdk/generate/module.rb:239
931
1083
  msgid "If there is a public issue tracker for this module, enter its URL here."
932
1084
  msgstr ""
933
1085
 
934
- #: ../lib/pdk/generate/module.rb:273
1086
+ #: ../lib/pdk/generate/module.rb:267
935
1087
  msgid ""
936
1088
  "\n"
937
1089
  "We need to update the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
938
1090
  msgstr ""
939
1091
 
940
- #: ../lib/pdk/generate/module.rb:280
1092
+ #: ../lib/pdk/generate/module.rb:274
941
1093
  msgid ""
942
1094
  "\n"
943
1095
  "We need to create the metadata.json file for this module, so we\\'re going to ask you %{count} questions.\n"
944
1096
  msgstr ""
945
1097
 
946
- #: ../lib/pdk/generate/module.rb:288
1098
+ #: ../lib/pdk/generate/module.rb:282
947
1099
  msgid ""
948
1100
  "If the question is not applicable to this module, accept the default option shown after each question. You can modify any answers at any time by manually updating the metadata.json file.\n"
949
1101
  "\n"
950
1102
  msgstr ""
951
1103
 
952
- #: ../lib/pdk/generate/module.rb:297
1104
+ #: ../lib/pdk/generate/module.rb:291
953
1105
  msgid "No answers given, interview cancelled."
954
1106
  msgstr ""
955
1107
 
956
- #: ../lib/pdk/generate/module.rb:323
1108
+ #: ../lib/pdk/generate/module.rb:317
957
1109
  msgid "Metadata will be generated based on this information, continue?"
958
1110
  msgstr ""
959
1111
 
960
- #: ../lib/pdk/generate/module.rb:325
1112
+ #: ../lib/pdk/generate/module.rb:319
961
1113
  msgid "Interview cancelled; exiting."
962
1114
  msgstr ""
963
1115
 
964
- #: ../lib/pdk/generate/module.rb:329
1116
+ #: ../lib/pdk/generate/module.rb:323
965
1117
  msgid "Process cancelled; exiting."
966
1118
  msgstr ""
967
1119
 
@@ -1021,15 +1173,15 @@ msgstr ""
1021
1173
  msgid "Unable to write to file '%{path}': %{message}"
1022
1174
  msgstr ""
1023
1175
 
1024
- #: ../lib/pdk/generate/puppet_object.rb:268
1176
+ #: ../lib/pdk/generate/puppet_object.rb:267
1025
1177
  msgid "No %{dir_type} template found; trying next template directory."
1026
1178
  msgstr ""
1027
1179
 
1028
- #: ../lib/pdk/generate/puppet_object.rb:281
1180
+ #: ../lib/pdk/generate/puppet_object.rb:280
1029
1181
  msgid "Unable to find a %{type} template in %{url}; trying next template directory."
1030
1182
  msgstr ""
1031
1183
 
1032
- #: ../lib/pdk/generate/puppet_object.rb:283
1184
+ #: ../lib/pdk/generate/puppet_object.rb:282
1033
1185
  msgid "Unable to find the %{type} template in %{url}."
1034
1186
  msgstr ""
1035
1187
 
@@ -1041,23 +1193,23 @@ msgstr ""
1041
1193
  msgid "%{error}: Creating a transport needs some local configuration in your module. Please follow the docs at https://github.com/puppetlabs/puppet-resource_api#getting-started."
1042
1194
  msgstr ""
1043
1195
 
1044
- #: ../lib/pdk/module/build.rb:132
1196
+ #: ../lib/pdk/module/build.rb:127
1045
1197
  msgid "%{message} Rename the file or exclude it from the package by adding it to the .pdkignore file in your module."
1046
1198
  msgstr ""
1047
1199
 
1048
- #: ../lib/pdk/module/build.rb:162
1200
+ #: ../lib/pdk/module/build.rb:157
1049
1201
  msgid "Symlinks in modules are not supported and will not be included in the package. Please investigate symlink %{from} -> %{to}."
1050
1202
  msgstr ""
1051
1203
 
1052
- #: ../lib/pdk/module/build.rb:189
1204
+ #: ../lib/pdk/module/build.rb:184
1053
1205
  msgid "The path '%{path}' is longer than 256 bytes."
1054
1206
  msgstr ""
1055
1207
 
1056
- #: ../lib/pdk/module/build.rb:213
1208
+ #: ../lib/pdk/module/build.rb:208
1057
1209
  msgid "'%{path}' could not be split at a directory separator into two parts, the first having a maximum length of 155 bytes and the second having a maximum length of 100 bytes."
1058
1210
  msgstr ""
1059
1211
 
1060
- #: ../lib/pdk/module/build.rb:249
1212
+ #: ../lib/pdk/module/build.rb:243
1061
1213
  msgid "Updated permissions of packaged '%{entry}' to %{new_mode}"
1062
1214
  msgstr ""
1063
1215
 
@@ -1073,141 +1225,221 @@ msgstr ""
1073
1225
  msgid "Do you want to continue and make these changes to your module?"
1074
1226
  msgstr ""
1075
1227
 
1076
- #: ../lib/pdk/module/convert.rb:135
1228
+ #: ../lib/pdk/module/convert.rb:134
1077
1229
  msgid "skipping '%{path}'"
1078
1230
  msgstr ""
1079
1231
 
1080
- #: ../lib/pdk/module/convert.rb:174
1232
+ #: ../lib/pdk/module/convert.rb:173
1081
1233
  msgid "Unable to update module metadata; %{path} exists but it is not readable."
1082
1234
  msgstr ""
1083
1235
 
1084
- #: ../lib/pdk/module/convert.rb:190
1236
+ #: ../lib/pdk/module/convert.rb:189
1085
1237
  msgid "Unable to update module metadata; %{path} exists but it is not a file."
1086
1238
  msgstr ""
1087
1239
 
1088
- #: ../lib/pdk/module/convert.rb:235 ../lib/pdk/module/convert.rb:240 ../lib/pdk/module/convert.rb:246
1240
+ #: ../lib/pdk/module/convert.rb:234 ../lib/pdk/module/convert.rb:239 ../lib/pdk/module/convert.rb:245
1089
1241
  msgid ""
1090
1242
  "\n"
1091
1243
  "%{banner}"
1092
1244
  msgstr ""
1093
1245
 
1094
- #: ../lib/pdk/module/convert.rb:248
1246
+ #: ../lib/pdk/module/convert.rb:247
1095
1247
  msgid ""
1096
1248
  "\n"
1097
1249
  "%{summary}\n"
1098
1250
  "\n"
1099
1251
  msgstr ""
1100
1252
 
1101
- #: ../lib/pdk/module/convert.rb:261
1253
+ #: ../lib/pdk/module/convert.rb:256
1102
1254
  msgid ""
1103
1255
  "\n"
1104
1256
  "You can find a report of differences in %{path}.\n"
1105
1257
  "\n"
1106
1258
  msgstr ""
1107
1259
 
1108
- #: ../lib/pdk/module/metadata.rb:93
1260
+ #: ../lib/pdk/module/metadata.rb:91
1109
1261
  msgid "Cannot read metadata from file: no path to file was given."
1110
1262
  msgstr ""
1111
1263
 
1112
- #: ../lib/pdk/module/metadata.rb:97
1264
+ #: ../lib/pdk/module/metadata.rb:95
1113
1265
  msgid "'%{file}' does not exist or is not a file."
1114
1266
  msgstr ""
1115
1267
 
1116
- #: ../lib/pdk/module/metadata.rb:101
1268
+ #: ../lib/pdk/module/metadata.rb:99
1117
1269
  msgid "Unable to open '%{file}' for reading."
1118
1270
  msgstr ""
1119
1271
 
1120
- #: ../lib/pdk/module/metadata.rb:108
1272
+ #: ../lib/pdk/module/metadata.rb:106
1121
1273
  msgid "Invalid JSON in metadata.json: %{msg}"
1122
1274
  msgstr ""
1123
1275
 
1124
- #: ../lib/pdk/module/metadata.rb:145
1276
+ #: ../lib/pdk/module/metadata.rb:143
1125
1277
  msgid "Module metadata does not contain any requirements."
1126
1278
  msgstr ""
1127
1279
 
1128
- #: ../lib/pdk/module/metadata.rb:146
1280
+ #: ../lib/pdk/module/metadata.rb:144
1129
1281
  msgid "Module metadata does not contain a \"puppet\" requirement."
1130
1282
  msgstr ""
1131
1283
 
1132
- #: ../lib/pdk/module/metadata.rb:147
1284
+ #: ../lib/pdk/module/metadata.rb:145
1133
1285
  msgid "The \"puppet\" requirement in module metadata does not specify a \"version_requirement\"."
1134
1286
  msgstr ""
1135
1287
 
1136
- #: ../lib/pdk/module/metadata.rb:187
1288
+ #: ../lib/pdk/module/metadata.rb:185
1137
1289
  msgid "Field must be a dash-separated user name and module name."
1138
1290
  msgstr ""
1139
1291
 
1140
- #: ../lib/pdk/module/metadata.rb:189
1292
+ #: ../lib/pdk/module/metadata.rb:187
1141
1293
  msgid "Module name must contain only alphanumeric or underscore characters."
1142
1294
  msgstr ""
1143
1295
 
1144
- #: ../lib/pdk/module/metadata.rb:191
1296
+ #: ../lib/pdk/module/metadata.rb:189
1145
1297
  msgid "Module name must begin with a letter."
1146
1298
  msgstr ""
1147
1299
 
1148
- #: ../lib/pdk/module/metadata.rb:193
1300
+ #: ../lib/pdk/module/metadata.rb:191
1149
1301
  msgid "Namespace must contain only alphanumeric characters."
1150
1302
  msgstr ""
1151
1303
 
1152
- #: ../lib/pdk/module/metadata.rb:196
1304
+ #: ../lib/pdk/module/metadata.rb:194
1153
1305
  msgid "Invalid 'name' field in metadata.json: %{err}"
1154
1306
  msgstr ""
1155
1307
 
1156
- #: ../lib/pdk/module/templatedir.rb:42
1157
- msgid "%{class_name} must be initialized with a block."
1308
+ #: ../lib/pdk/module/release.rb:19
1309
+ msgid "Running the release process outside of the working directory is not supported"
1158
1310
  msgstr ""
1159
1311
 
1160
- #: ../lib/pdk/module/templatedir.rb:45
1161
- msgid "PDK::Module::TemplateDir.new must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1312
+ #: ../lib/pdk/module/release.rb:23
1313
+ msgid "The module release process requires a valid module path"
1162
1314
  msgstr ""
1163
1315
 
1164
- #: ../lib/pdk/module/templatedir.rb:59
1165
- msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1316
+ #: ../lib/pdk/module/release.rb:25
1317
+ msgid "%{module_path} is not a valid module"
1166
1318
  msgstr ""
1167
1319
 
1168
- #: ../lib/pdk/module/templatedir.rb:126
1169
- msgid "Rendering '%{template}'..."
1320
+ #: ../lib/pdk/module/release.rb:32
1321
+ msgid "The module is not PDK compatible"
1170
1322
  msgstr ""
1171
1323
 
1172
- #: ../lib/pdk/module/templatedir.rb:144
1173
- msgid ""
1174
- "Failed to render template '%{template}'\n"
1175
- "%{exception}: %{message}"
1324
+ #: ../lib/pdk/module/release.rb:33
1325
+ msgid "The module is not Forge compatible"
1326
+ msgstr ""
1327
+
1328
+ #: ../lib/pdk/module/release.rb:43
1329
+ msgid "Releasing %{module_name} - from version %{module_version}"
1330
+ msgstr ""
1331
+
1332
+ #: ../lib/pdk/module/release.rb:58
1333
+ msgid "Updating version to %{module_version}"
1334
+ msgstr ""
1335
+
1336
+ #: ../lib/pdk/module/release.rb:120
1337
+ msgid "An error occured during validation"
1338
+ msgstr ""
1339
+
1340
+ #: ../lib/pdk/module/release.rb:125
1341
+ msgid "Updating documentation using puppet strings"
1342
+ msgstr ""
1343
+
1344
+ #: ../lib/pdk/module/release.rb:129
1345
+ msgid "An error occured generating the module documentation: %{stdout}"
1346
+ msgstr ""
1347
+
1348
+ #: ../lib/pdk/module/release.rb:134
1349
+ msgid "Running dependency checks"
1350
+ msgstr ""
1351
+
1352
+ #: ../lib/pdk/module/release.rb:140
1353
+ msgid "An error occured checking the module dependencies: %{stdout}"
1354
+ msgstr ""
1355
+
1356
+ #: ../lib/pdk/module/release.rb:150
1357
+ msgid "Module tarball %{tarball_path} does not exist"
1358
+ msgstr ""
1359
+
1360
+ #: ../lib/pdk/module/release.rb:156
1361
+ msgid "Uploading tarball to puppet forge..."
1362
+ msgstr ""
1363
+
1364
+ #: ../lib/pdk/module/release.rb:172
1365
+ msgid "Error uploading to Puppet Forge: %{result}"
1176
1366
  msgstr ""
1177
1367
 
1178
- #: ../lib/pdk/module/templatedir.rb:217
1368
+ #: ../lib/pdk/module/release.rb:173
1369
+ msgid "Publish to Forge was successful"
1370
+ msgstr ""
1371
+
1372
+ #: ../lib/pdk/module/release.rb:178
1373
+ msgid "Missing forge-upload-url option"
1374
+ msgstr ""
1375
+
1376
+ #: ../lib/pdk/module/release.rb:179
1377
+ msgid "Missing forge-token option"
1378
+ msgstr ""
1379
+
1380
+ #: ../lib/pdk/module/template_dir.rb:35
1381
+ msgid "%{class_name}.with must be passed a block."
1382
+ msgstr ""
1383
+
1384
+ #: ../lib/pdk/module/template_dir.rb:38
1385
+ msgid "%{class_name}.with must be passed a PDK::Util::TemplateURI, got a %{uri_type}"
1386
+ msgstr ""
1387
+
1388
+ #: ../lib/pdk/module/template_dir.rb:73
1179
1389
  msgid "The built-in template has substantially changed. Please run \"pdk convert\" on your module to continue."
1180
1390
  msgstr ""
1181
1391
 
1182
- #: ../lib/pdk/module/templatedir.rb:219
1392
+ #: ../lib/pdk/module/template_dir.rb:75
1183
1393
  msgid "The specified template '%{path}' is not a directory."
1184
1394
  msgstr ""
1185
1395
 
1186
- #: ../lib/pdk/module/templatedir.rb:224
1396
+ #: ../lib/pdk/module/template_dir.rb:80
1187
1397
  msgid "The template at '%{path}' does not contain a 'moduleroot/' directory."
1188
1398
  msgstr ""
1189
1399
 
1190
- #: ../lib/pdk/module/templatedir.rb:229
1400
+ #: ../lib/pdk/module/template_dir.rb:85
1191
1401
  msgid "The template at '%{path}' does not contain a 'moduleroot_init/' directory, which indicates you are using an older style of template. Before continuing please use the --template-url flag when running the pdk new commands to pass a new style template."
1192
1402
  msgstr ""
1193
1403
 
1194
- #: ../lib/pdk/module/templatedir.rb:245
1404
+ #: ../lib/pdk/module/template_dir.rb:101
1195
1405
  msgid "The directory '%{dir}' doesn't exist"
1196
1406
  msgstr ""
1197
1407
 
1198
- #: ../lib/pdk/module/templatedir.rb:320
1408
+ #: ../lib/pdk/module/template_dir/base.rb:39
1409
+ msgid "%{class_name} must be initialized with a block."
1410
+ msgstr ""
1411
+
1412
+ #: ../lib/pdk/module/template_dir/base.rb:42
1413
+ msgid "%{class_name} must be initialized with a PDK::Util::TemplateURI, got a %{uri_type}"
1414
+ msgstr ""
1415
+
1416
+ #: ../lib/pdk/module/template_dir/base.rb:107
1417
+ msgid "Rendering '%{template}'..."
1418
+ msgstr ""
1419
+
1420
+ #: ../lib/pdk/module/template_dir/base.rb:125
1421
+ msgid ""
1422
+ "Failed to render template '%{template}'\n"
1423
+ "%{exception}: %{message}"
1424
+ msgstr ""
1425
+
1426
+ #: ../lib/pdk/module/template_dir/base.rb:245
1199
1427
  msgid "'%{file}' is not a valid YAML file: %{problem} %{context} at line %{line} column %{column}"
1200
1428
  msgstr ""
1201
1429
 
1202
- #: ../lib/pdk/module/templatedir.rb:358
1430
+ #: ../lib/pdk/module/template_dir/git.rb:12
1431
+ msgid "Repository '%{repo}' has a work-tree; skipping git reset."
1432
+ msgstr ""
1433
+
1434
+ #: ../lib/pdk/module/template_dir/git.rb:63
1203
1435
  msgid "Unable to clone git repository at '%{repo}' into '%{dest}'."
1204
1436
  msgstr ""
1205
1437
 
1206
- #: ../lib/pdk/module/templatedir.rb:377
1438
+ #: ../lib/pdk/module/template_dir/git.rb:82
1207
1439
  msgid "Unable to checkout '%{ref}' of git repository at '%{path}'."
1208
1440
  msgstr ""
1209
1441
 
1210
- #: ../lib/pdk/module/templatedir.rb:380
1442
+ #: ../lib/pdk/module/template_dir/git.rb:85
1211
1443
  msgid "Uncommitted changes found when attempting to checkout '%{ref}' of git repository at '%{path}'; skipping git reset."
1212
1444
  msgstr ""
1213
1445
 
@@ -1215,11 +1447,11 @@ msgstr ""
1215
1447
  msgid "This module is already up to date with version %{version} of the template."
1216
1448
  msgstr ""
1217
1449
 
1218
- #: ../lib/pdk/module/update.rb:109
1450
+ #: ../lib/pdk/module/update.rb:121
1219
1451
  msgid "Updating %{module_name} using the default template, from %{current_version} to %{new_version}"
1220
1452
  msgstr ""
1221
1453
 
1222
- #: ../lib/pdk/module/update.rb:111
1454
+ #: ../lib/pdk/module/update.rb:123
1223
1455
  msgid "Updating %{module_name} using the template at %{template_url}, from %{current_version} to %{new_version}"
1224
1456
  msgstr ""
1225
1457
 
@@ -1347,73 +1579,93 @@ msgstr ""
1347
1579
  msgid "Unable to enumerate examples. rspec reported: %{message}"
1348
1580
  msgstr ""
1349
1581
 
1350
- #: ../lib/pdk/util.rb:76
1582
+ #: ../lib/pdk/util.rb:87
1351
1583
  msgid "Cannot resolve a full path to '%{path}', as it does not currently exist."
1352
1584
  msgstr ""
1353
1585
 
1354
- #: ../lib/pdk/util.rb:105
1586
+ #: ../lib/pdk/util.rb:116
1355
1587
  msgid "Package basedir requested for non-package install."
1356
1588
  msgstr ""
1357
1589
 
1358
- #: ../lib/pdk/util/bundler.rb:17
1590
+ #: ../lib/pdk/util/bundler.rb:15
1359
1591
  msgid "Bundler managed gems already up to date."
1360
1592
  msgstr ""
1361
1593
 
1362
- #: ../lib/pdk/util/bundler.rb:22
1594
+ #: ../lib/pdk/util/bundler.rb:20
1363
1595
  msgid "No Gemfile found in '%{cwd}'. Skipping bundler management."
1364
1596
  msgstr ""
1365
1597
 
1366
- #: ../lib/pdk/util/bundler.rb:98
1598
+ #: ../lib/pdk/util/bundler.rb:96
1367
1599
  msgid "Checking for missing Gemfile dependencies."
1368
1600
  msgstr ""
1369
1601
 
1370
- #: ../lib/pdk/util/bundler.rb:127
1602
+ #: ../lib/pdk/util/bundler.rb:126
1371
1603
  msgid "Vendored Gemfile.lock (%{source}) not found."
1372
1604
  msgstr ""
1373
1605
 
1374
- #: ../lib/pdk/util/bundler.rb:132
1606
+ #: ../lib/pdk/util/bundler.rb:131
1375
1607
  msgid "Using vendored Gemfile.lock from %{source}."
1376
1608
  msgstr ""
1377
1609
 
1378
- #: ../lib/pdk/util/bundler.rb:138
1610
+ #: ../lib/pdk/util/bundler.rb:137
1379
1611
  msgid "Resolving default Gemfile dependencies."
1380
1612
  msgstr ""
1381
1613
 
1382
- #: ../lib/pdk/util/bundler.rb:145
1614
+ #: ../lib/pdk/util/bundler.rb:144
1383
1615
  msgid "Unable to resolve default Gemfile dependencies."
1384
1616
  msgstr ""
1385
1617
 
1386
- #: ../lib/pdk/util/bundler.rb:158
1618
+ #: ../lib/pdk/util/bundler.rb:157
1387
1619
  msgid "Updating Gemfile dependencies."
1388
1620
  msgstr ""
1389
1621
 
1390
- #: ../lib/pdk/util/bundler.rb:186
1622
+ #: ../lib/pdk/util/bundler.rb:185
1391
1623
  msgid "Unable to resolve Gemfile dependencies."
1392
1624
  msgstr ""
1393
1625
 
1394
- #: ../lib/pdk/util/bundler.rb:199
1626
+ #: ../lib/pdk/util/bundler.rb:198
1395
1627
  msgid "Installing missing Gemfile dependencies."
1396
1628
  msgstr ""
1397
1629
 
1398
- #: ../lib/pdk/util/bundler.rb:207
1630
+ #: ../lib/pdk/util/bundler.rb:206
1399
1631
  msgid "Unable to install missing Gemfile dependencies."
1400
1632
  msgstr ""
1401
1633
 
1402
- #: ../lib/pdk/util/bundler.rb:221
1634
+ #: ../lib/pdk/util/bundler.rb:220
1403
1635
  msgid ""
1404
1636
  "Failed to generate binstubs for '%{gems}':\n"
1405
1637
  "%{output}"
1406
1638
  msgstr ""
1407
1639
 
1408
- #: ../lib/pdk/util/bundler.rb:222
1640
+ #: ../lib/pdk/util/bundler.rb:221
1409
1641
  msgid "Unable to install requested binstubs."
1410
1642
  msgstr ""
1411
1643
 
1412
- #: ../lib/pdk/util/filesystem.rb:7
1413
- msgid "content must be a String"
1644
+ #: ../lib/pdk/util/changelog_generator.rb:12
1645
+ msgid "Unable to generate the changelog as the github_changelog_generator gem is not installed"
1646
+ msgstr ""
1647
+
1648
+ #: ../lib/pdk/util/changelog_generator.rb:25
1649
+ msgid "Error generating changelog: %{stdout}"
1650
+ msgstr ""
1651
+
1652
+ #: ../lib/pdk/util/changelog_generator.rb:29
1653
+ msgid "The generated changelog contains uncategorized Pull Requests. Please label them and try again. See %{changelog_file} for more details"
1654
+ msgstr ""
1655
+
1656
+ #: ../lib/pdk/util/changelog_generator.rb:38
1657
+ msgid "Invalid version string %{version}"
1658
+ msgstr ""
1659
+
1660
+ #: ../lib/pdk/util/changelog_generator.rb:40
1661
+ msgid "Determing the target version from '%{file}'"
1414
1662
  msgstr ""
1415
1663
 
1416
1664
  #: ../lib/pdk/util/filesystem.rb:8
1665
+ msgid "content must be a String"
1666
+ msgstr ""
1667
+
1668
+ #: ../lib/pdk/util/filesystem.rb:9
1417
1669
  msgid "path must be a String or Pathname"
1418
1670
  msgstr ""
1419
1671
 
@@ -1421,19 +1673,19 @@ msgstr ""
1421
1673
  msgid "Git command failed: git %{args}"
1422
1674
  msgstr ""
1423
1675
 
1424
- #: ../lib/pdk/util/git.rb:92
1676
+ #: ../lib/pdk/util/git.rb:103
1425
1677
  msgid "Unable to locate git work dir \"%{workdir}\""
1426
1678
  msgstr ""
1427
1679
 
1428
- #: ../lib/pdk/util/git.rb:93
1680
+ #: ../lib/pdk/util/git.rb:104
1429
1681
  msgid "Unable to locate git dir \"%{gitdir}\""
1430
1682
  msgstr ""
1431
1683
 
1432
- #: ../lib/pdk/util/git.rb:108
1684
+ #: ../lib/pdk/util/git.rb:119
1433
1685
  msgid "Unable to access the template repository \"%{repository}\""
1434
1686
  msgstr ""
1435
1687
 
1436
- #: ../lib/pdk/util/git.rb:115
1688
+ #: ../lib/pdk/util/git.rb:126
1437
1689
  msgid "Unable to find a branch or tag named \"%{ref}\" in %{repo}"
1438
1690
  msgstr ""
1439
1691
 
@@ -1449,43 +1701,43 @@ msgstr ""
1449
1701
  msgid "Unable to find a Puppet gem in current Ruby environment or from Rubygems.org."
1450
1702
  msgstr ""
1451
1703
 
1452
- #: ../lib/pdk/util/puppet_version.rb:71
1704
+ #: ../lib/pdk/util/puppet_version.rb:70
1453
1705
  msgid "Unable to clone git repository from '%{repo}'."
1454
1706
  msgstr ""
1455
1707
 
1456
- #: ../lib/pdk/util/puppet_version.rb:80
1708
+ #: ../lib/pdk/util/puppet_version.rb:79
1457
1709
  msgid "Unable to fetch from git remote at '%{repo}'."
1458
1710
  msgstr ""
1459
1711
 
1460
- #: ../lib/pdk/util/puppet_version.rb:91
1712
+ #: ../lib/pdk/util/puppet_version.rb:90
1461
1713
  msgid "Unable to update git repository at '%{cachedir}'."
1462
1714
  msgstr ""
1463
1715
 
1464
- #: ../lib/pdk/util/puppet_version.rb:112
1716
+ #: ../lib/pdk/util/puppet_version.rb:111
1465
1717
  msgid "Unable to find a Puppet gem matching %{requirement}."
1466
1718
  msgstr ""
1467
1719
 
1468
- #: ../lib/pdk/util/puppet_version.rb:119
1720
+ #: ../lib/pdk/util/puppet_version.rb:118
1469
1721
  msgid "Puppet %{requested_version} is not available, activating %{found_version} instead."
1470
1722
  msgstr ""
1471
1723
 
1472
- #: ../lib/pdk/util/puppet_version.rb:136
1724
+ #: ../lib/pdk/util/puppet_version.rb:135
1473
1725
  msgid "Unable to map Puppet Enterprise version %{pe_version} to a Puppet version."
1474
1726
  msgstr ""
1475
1727
 
1476
- #: ../lib/pdk/util/puppet_version.rb:141
1728
+ #: ../lib/pdk/util/puppet_version.rb:140
1477
1729
  msgid "Puppet Enterprise %{pe_version} maps to Puppet %{puppet_version}."
1478
1730
  msgstr ""
1479
1731
 
1480
- #: ../lib/pdk/util/puppet_version.rb:157
1732
+ #: ../lib/pdk/util/puppet_version.rb:156
1481
1733
  msgid "Unable to determine Puppet version for module: no metadata.json present in module."
1482
1734
  msgstr ""
1483
1735
 
1484
- #: ../lib/pdk/util/puppet_version.rb:183
1736
+ #: ../lib/pdk/util/puppet_version.rb:182
1485
1737
  msgid "%{version} is not a valid version number."
1486
1738
  msgstr ""
1487
1739
 
1488
- #: ../lib/pdk/util/puppet_version.rb:219
1740
+ #: ../lib/pdk/util/puppet_version.rb:218
1489
1741
  msgid "Failed to parse Puppet Enterprise version map file."
1490
1742
  msgstr ""
1491
1743
 
@@ -1497,31 +1749,31 @@ msgstr ""
1497
1749
  msgid "PDK::Util::TemplateURI attempted initialization with a non-uri string: {string}"
1498
1750
  msgstr ""
1499
1751
 
1500
- #: ../lib/pdk/util/template_uri.rb:167
1752
+ #: ../lib/pdk/util/template_uri.rb:177
1501
1753
  msgid "%{scp_uri} appears to be an SCP style URL; it will be converted to an RFC compliant URI: %{rfc_uri}"
1502
1754
  msgstr ""
1503
1755
 
1504
- #: ../lib/pdk/util/template_uri.rb:218
1756
+ #: ../lib/pdk/util/template_uri.rb:228
1505
1757
  msgid "--template-url"
1506
1758
  msgstr ""
1507
1759
 
1508
- #: ../lib/pdk/util/template_uri.rb:219
1760
+ #: ../lib/pdk/util/template_uri.rb:229
1509
1761
  msgid "metadata.json"
1510
1762
  msgstr ""
1511
1763
 
1512
- #: ../lib/pdk/util/template_uri.rb:220
1764
+ #: ../lib/pdk/util/template_uri.rb:230
1513
1765
  msgid "PDK answers"
1514
1766
  msgstr ""
1515
1767
 
1516
- #: ../lib/pdk/util/template_uri.rb:221
1768
+ #: ../lib/pdk/util/template_uri.rb:231
1517
1769
  msgid "default"
1518
1770
  msgstr ""
1519
1771
 
1520
- #: ../lib/pdk/util/template_uri.rb:245
1772
+ #: ../lib/pdk/util/template_uri.rb:255
1521
1773
  msgid "Unable to find a valid module template to use."
1522
1774
  msgstr ""
1523
1775
 
1524
- #: ../lib/pdk/util/template_uri.rb:270
1776
+ #: ../lib/pdk/util/template_uri.rb:279
1525
1777
  msgid "Unable to find a valid template at %{uri}"
1526
1778
  msgstr ""
1527
1779