chefrepo-manifest-builder 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: c3482109b422f8e7cf4d00bc65439dc0aec7f662
4
- data.tar.gz: 03eaec0a0ab9559ededb9a820387fe5588a006f0
3
+ metadata.gz: 6c4a1740441245153661371aee80b263ee3893c2
4
+ data.tar.gz: eaa934c8481b8ae26d16c1fd9d66ca34a520221c
5
5
  SHA512:
6
- metadata.gz: e23a10dfa2290e31872d7bba5997162aa198cef6a57b6ebf6063157dcf2179438b9f73cdd95e37fae0128599f29bab1452a6fc0353adb57c8d08cf38fdc4ae85
7
- data.tar.gz: b3e75b885971ab5367eafdeb5671d42a4eaf6def1c86ca4e3810b437295b32c9e36c5c86bff49d12e7a04229cf4e8a8cc247d2e7cf7ef9db03c02c35f43fd6d1
6
+ metadata.gz: 90b2ea31884f67174d2d9ff4e609836c57e523ad89adc03904cdd9e0edcb9bc91b6b2bb3e7cf45d01b2048a2154e2e891c41699fd7d1098970d37a97a7126c57
7
+ data.tar.gz: b782d47d8785e7f7341f27b2df1843f694f8a98b00b4f873a5e534ca9e63cdeb877a7a9f0ea0e16ea47a73aa2189f847285861fdc5000a7514c1e94956a8fea1
data/.rakeTasks CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
4
4
  1. Remove rake task
5
5
  2. Add existing rake tasks
6
6
  To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Builds all packages" fullCmd="build" taksId="build" /><RakeTask description="Spawns an Interactive Ruby Console" fullCmd="console" taksId="console" /><RakeTask description="Run Cucumber features" fullCmd="cucumber" taksId="cucumber" /><RakeTask description="Installs all built gem packages" fullCmd="install" taksId="install" /><RakeTask description="Performs a release" fullCmd="release" taksId="release" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeGroup description="" fullCmd="" taksId="build"><RakeTask description="" fullCmd="build:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /><RakeTask description="" fullCmd="build:gem" taksId="gem" /><RakeGroup description="" fullCmd="" taksId="gem"><RakeTask description="" fullCmd="build:gem:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup></RakeGroup><RakeGroup description="" fullCmd="" taksId="console"><RakeTask description="" fullCmd="console:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="gem" taksId="gem" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="" fullCmd="install:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup><RakeTask description="" fullCmd="install_gem" taksId="install_gem" /><RakeTask description="" fullCmd="package" taksId="package" /><RakeTask description="" fullCmd="pkg" taksId="pkg" /><RakeTask description="" fullCmd="pkg/chefrepo-manifest-builder-0.1.3.gem" taksId="pkg/chefrepo-manifest-builder-0.1.3.gem" /><RakeTask description="" fullCmd="publish" taksId="publish" /><RakeTask description="" fullCmd="push" taksId="push" /><RakeGroup description="" fullCmd="" taksId="push"><RakeTask description="" fullCmd="push:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="scm"><RakeTask description="" fullCmd="scm:push" taksId="push" /><RakeTask description="" fullCmd="scm:status" taksId="status" /><RakeTask description="" fullCmd="scm:tag" taksId="tag" /></RakeGroup><RakeTask description="" fullCmd="test" taksId="test" /><RakeTask description="" fullCmd="validate" taksId="validate" /></RakeGroup></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Builds all packages" fullCmd="build" taksId="build" /><RakeTask description="Spawns an Interactive Ruby Console" fullCmd="console" taksId="console" /><RakeTask description="Run Cucumber features" fullCmd="cucumber" taksId="cucumber" /><RakeTask description="Installs all built gem packages" fullCmd="install" taksId="install" /><RakeTask description="Performs a release" fullCmd="release" taksId="release" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeGroup description="" fullCmd="" taksId="build"><RakeTask description="" fullCmd="build:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /><RakeTask description="" fullCmd="build:gem" taksId="gem" /><RakeGroup description="" fullCmd="" taksId="gem"><RakeTask description="" fullCmd="build:gem:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup></RakeGroup><RakeGroup description="" fullCmd="" taksId="console"><RakeTask description="" fullCmd="console:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="gem" taksId="gem" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="" fullCmd="install:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup><RakeTask description="" fullCmd="install_gem" taksId="install_gem" /><RakeTask description="" fullCmd="package" taksId="package" /><RakeTask description="" fullCmd="pkg" taksId="pkg" /><RakeTask description="" fullCmd="pkg/chefrepo-manifest-builder-0.2.0.gem" taksId="pkg/chefrepo-manifest-builder-0.2.0.gem" /><RakeTask description="" fullCmd="publish" taksId="publish" /><RakeTask description="" fullCmd="push" taksId="push" /><RakeGroup description="" fullCmd="" taksId="push"><RakeTask description="" fullCmd="push:chefrepo-manifest-builder" taksId="chefrepo-manifest-builder" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="scm"><RakeTask description="" fullCmd="scm:push" taksId="push" /><RakeTask description="" fullCmd="scm:status" taksId="status" /><RakeTask description="" fullCmd="scm:tag" taksId="tag" /></RakeGroup><RakeTask description="" fullCmd="test" taksId="test" /><RakeTask description="" fullCmd="validate" taksId="validate" /></RakeGroup></Settings>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chefrepo-manifest-builder (0.2.0)
4
+ chefrepo-manifest-builder (0.2.1)
5
5
  archive-tar-minitar (= 0.5.2)
6
6
  json (>= 1.8.1, < 1.9)
7
7
  manifest-builder (>= 0.7.0, < 1.1)
@@ -17,7 +17,7 @@ PATH
17
17
  PATH
18
18
  remote: ../cicd-builder
19
19
  specs:
20
- cicd-builder (0.9.60)
20
+ cicd-builder (0.9.61)
21
21
  artifactory (>= 2.2.1, < 2.3)
22
22
  awesome_print (>= 1.6, < 2.0)
23
23
  aws-sdk (>= 2.0, < 2.1)
@@ -142,7 +142,11 @@ module CiCd
142
142
  chk_obj = @repo.maybeS3Object(chk)
143
143
  if chk_obj
144
144
  out = chk_obj.get()
145
- @vars[:components][product][:sha256] = (out[:body].is_a?(String) ? out[:body] : out[:body].read) if out
145
+ if out
146
+ sha256 = Digest::SHA256.new
147
+ sha256.update(out[:body].is_a?(String) ? out[:body] : out[:body].read)
148
+ @vars[:components][product][:sha256] = sha256.hexdigest
149
+ end
146
150
  end
147
151
  end
148
152
  else
@@ -179,6 +183,12 @@ module CiCd
179
183
  @vars[:return_code]
180
184
  end
181
185
 
186
+ # # ---------------------------------------------------------------------------------------------------------------
187
+ # def packageBuild()
188
+ # @logger.info CLASS+'::'+__method__.to_s
189
+ # @vars[:return_code]
190
+ # end
191
+
182
192
  end
183
193
  end
184
194
  end
@@ -0,0 +1,20 @@
1
+ require "cicd/builder/mixlib/repo/S3"
2
+
3
+ module CiCd
4
+ module Builder
5
+ # noinspection RubySuperCallWithoutSuperclassInspection
6
+ module ChefRepoManifest
7
+ module Repo
8
+ class S3 < CiCd::Builder::Repo::S3
9
+
10
+ # ---------------------------------------------------------------------------------------------------------------
11
+ def uploadToRepo(artifacts)
12
+ @logger.info CLASS+'::'+__method__.to_s
13
+ raise "This builder is not meant to upload to S3"
14
+ end
15
+
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -2,7 +2,7 @@ module CiCd
2
2
  module Builder
3
3
  module ChefRepoManifest
4
4
  # chefrepo-manifest-builder version
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  MAJOR, MINOR, TINY = VERSION.split('.')
7
7
  PATCH = TINY
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefrepo-manifest-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christo De Lange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-05 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: manifest-builder
@@ -211,6 +211,7 @@ files:
211
211
  - lib/cicd/builder/chefrepo-manifest.rb
212
212
  - lib/cicd/builder/chefrepo-manifest/mixlib/build.rb
213
213
  - lib/cicd/builder/chefrepo-manifest/mixlib/repo.rb
214
+ - lib/cicd/builder/chefrepo-manifest/mixlib/repo/S3.rb
214
215
  - lib/cicd/builder/chefrepo-manifest/mixlib/repo/artifactory.rb
215
216
  - lib/cicd/builder/chefrepo-manifest/version.rb
216
217
  - openssl
@@ -237,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
238
  version: '0'
238
239
  requirements: []
239
240
  rubyforge_project:
240
- rubygems_version: 2.2.2
241
+ rubygems_version: 2.4.3
241
242
  signing_key:
242
243
  specification_version: 4
243
244
  summary: ChefRepo builder for a software manifest