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 +4 -4
- data/lib/apt_add_to_freight_library.rb +4 -2
- data/lib/apt_stage_artifacts.rb +4 -2
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5340af9ae7a10dbf26b7d3641da800134533fc1aba45a2d7cd6193b52178b5
|
4
|
+
data.tar.gz: 4fcb981bc335b61fe6de5d72bab90e6dd6f85e7d1161d11f32d8802b0185c197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/apt_stage_artifacts.rb
CHANGED
@@ -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} #{
|
169
|
+
%x(#{tarball_create_command} #{manifest_file_name} #{@debian_artifacts.join(' ')})
|
168
170
|
unless $CHILD_STATUS.success?
|
169
|
-
fatal "#{tarball_create_command} #{
|
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