apt_stage_artifacts 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e87ebcc687cf6cd0fa5d9809d98fc17cdc77c01c875a0d742afe4a346f96e62f
4
- data.tar.gz: 61f424f57760d450023df8b4d49c648937adb8b95ac28fa7b35a28cf66e9634d
3
+ metadata.gz: 7d5340af9ae7a10dbf26b7d3641da800134533fc1aba45a2d7cd6193b52178b5
4
+ data.tar.gz: 4fcb981bc335b61fe6de5d72bab90e6dd6f85e7d1161d11f32d8802b0185c197
5
5
  SHA512:
6
- metadata.gz: df4355df2bfbd16f17474f5a4abc8951fce144a363aa2a526068134b6ea2b293f69a03357b2184ef1257421f43dcff8798951562473e5f95e762475ecbea57ab
7
- data.tar.gz: 6ace816ea8a091a1a71462342c06ab117c85f58d9115b5d4c370cc9fcec8bf1e1ffe57882b17b25079a3fae19a77faa0cae64e3c121a0c3c40258bde36b4aa97
6
+ metadata.gz: 2b8440f04c6c4c5f2df93ceb3288610be22bdd233e399402969996076ff525e4aa112f518998dcf6a77f635e25db4cf28563bd610e23df888e48562a0cde157e
7
+ data.tar.gz: e455d6269419f4ab115ac162688b1328f93bf59345260c551bb018fc7a4d9897f208ccdb99f2f932bd8d4f12de8f026cb817de88a1c4a6d60b06696790c96571
@@ -77,10 +77,12 @@ class AptAddToFreightLibrary
77
77
  logger.info @version_string
78
78
  @puppet_version = @user_options['--puppet-version']
79
79
  fatal "Invalid Puppet version '#{@puppet_version}'" unless
80
- VALID_PUPPET_VERSIONS.include? @puppet_version
80
+ AptStageArtifacts::VALID_PUPPET_VERSIONS.include? @puppet_version
81
81
 
82
82
  @repo_type = @user_options['--repo-type']
83
- fatal "Invalid repo type '#{@repo_type}'" unless VALID_REPO_TYPES.include? @repo_type
83
+ unless AptStageArtifacts::VALID_REPO_TYPES.include? @repo_type
84
+ fatal "Invalid repo type '#{@repo_type}'"
85
+ end
84
86
 
85
87
  @codename = @user_options['--codename']
86
88
  unless AptStageArtifacts::VALID_CODENAMES.include? @codename
@@ -161,12 +161,14 @@ class AptStageArtifacts
161
161
 
162
162
  # Create a tarball that contains the staging manifest and the associated deb files.
163
163
  def create_tarball
164
+ manifest_file_name = AptStageArtifacts::MANIFEST_JSON_FILENAME
165
+
164
166
  tarball_create_command = %W[
165
167
  tar --create --gzip --file #{@local_tarball_path} --directory=#{@top_directory}
166
168
  ].join(' ')
167
- %x(#{tarball_create_command} #{@manifest_file_name} #{@debian_artifacts.join(' ')})
169
+ %x(#{tarball_create_command} #{manifest_file_name} #{@debian_artifacts.join(' ')})
168
170
  unless $CHILD_STATUS.success?
169
- fatal "#{tarball_create_command} #{@manifest_file_name} #{@debian_artifacts.join(' ')} failed."
171
+ fatal "#{tarball_create_command} #{manifest_file_name} #{@debian_artifacts.join(' ')} failed."
170
172
  end
171
173
 
172
174
  logger.info("'#{@local_tarball_path}' created.")
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class AptStageArtifacts
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apt_stage_artifacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Release Engineering