kpm 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d305f7283e154bd4021da4ed116009e87a2b126
4
- data.tar.gz: bf57217f06ec10a49ceb65cf496853dbe92a23cb
3
+ metadata.gz: f98562e91b2bb5a44b0d93bcaa886991bf09e0fd
4
+ data.tar.gz: 0d539a26c054a22aa1c13b8146bc13f642b346e2
5
5
  SHA512:
6
- metadata.gz: d4c8a285f34065509b140cacdef262f2cfd7abe37778dc3176ae550c3fcc0c900c9e91cf53ee023f2b0e354b7b60e431bac32cf720e44563d46edda4bf4b6e18
7
- data.tar.gz: 6a93e71899e8a8b94b9357e6aaa6af1d996e78dd4751aa0bba2cada0e93dd165bb5ffd689097c7e6865f40cfda668c873b503176658d72c7996a04d403a7a9b2
6
+ metadata.gz: a1acc6025cfdec57db5b56f6267fa14f7a62ec86cfc2ed9b7be88a42c3786d4ad2f572f6d74277259507ee7323dc4e3ab944230f8e32201bccf770ff26e000a5
7
+ data.tar.gz: e6881c699c95ff89b0303f032954ca9bb315f272d5c5e79c0d9ae879165030381d613e61cba295b1a21a72bb3d40b99816c231b2e56209a72207d9c0f1465246
@@ -142,9 +142,11 @@ module KPM
142
142
 
143
143
  def pull_and_verify(logger, remote_sha1, coordinates, destination_dir, sha1_file, verify_sha1, overrides={}, ssl_verify=true)
144
144
  info = nexus_remote(overrides, ssl_verify).pull_artifact(coordinates, destination_dir)
145
- if verify_sha1
146
- raise ArtifactCorruptedException unless verify(logger, coordinates, info[:file_path], remote_sha1)
147
- else
145
+
146
+ # Always verify sha1 and if incorrect either throw or log when we are asked to bypass sha1 verification
147
+ verified = verify(logger, coordinates, info[:file_path], remote_sha1)
148
+ if !verified
149
+ raise ArtifactCorruptedException if verify_sha1
148
150
  logger.warn("Skip sha1 verification for #{coordinates}")
149
151
  end
150
152
 
@@ -11,6 +11,7 @@ module KPM
11
11
  end
12
12
 
13
13
  def initialize(raw_config, logger=nil)
14
+
14
15
  raise(ArgumentError, 'killbill or kaui section must be specified') if raw_config['killbill'].nil? and raw_config['kaui'].nil?
15
16
  @config = raw_config['killbill']
16
17
  @kaui_config = raw_config['kaui']
@@ -29,10 +30,11 @@ module KPM
29
30
  def install(force_download=false, verify_sha1=true)
30
31
  @force_download = force_download
31
32
  @verify_sha1 = verify_sha1
32
- @bundles_dir = @config['plugins_dir']
33
- @sha1_file = "#{@bundles_dir}/#{SHA1_FILENAME}"
34
33
 
35
34
  unless @config.nil?
35
+ @bundles_dir = @config['plugins_dir']
36
+ @sha1_file = "#{@bundles_dir}/#{SHA1_FILENAME}"
37
+
36
38
  install_killbill_server
37
39
  install_plugins
38
40
  install_default_bundles
@@ -18,8 +18,6 @@ module KPM
18
18
  :default => true,
19
19
  :desc => 'Set to false to disable SSL Verification.'
20
20
 
21
-
22
- desc 'install config_file', 'Install Kill Bill server and plugins according to the specified YAML configuration file.'
23
21
  method_option :force_download,
24
22
  :type => :boolean,
25
23
  :default => false,
@@ -27,7 +25,8 @@ module KPM
27
25
  method_option :verify_sha1,
28
26
  :type => :boolean,
29
27
  :default => true,
30
- :desc => 'Validates sha1 sum'
28
+ :desc => 'Validate sha1 sum'
29
+ desc 'install config_file', 'Install Kill Bill server and plugins according to the specified YAML configuration file.'
31
30
  def install(config_file)
32
31
  Installer.from_file(config_file).install(options[:force_download], options[:verify_sha1])
33
32
  end
@@ -43,7 +42,7 @@ module KPM
43
42
  method_option :verify_sha1,
44
43
  :type => :boolean,
45
44
  :default => true,
46
- :desc => 'Validates sha1 sum'
45
+ :desc => 'Validate sha1 sum'
47
46
  desc 'pull_kb_server_war version', 'Pulls Kill Bill server war from Sonatype and places it on your machine.'
48
47
  def pull_kb_server_war(version='LATEST')
49
48
  response = KillbillServerArtifact.pull(logger,
@@ -1,3 +1,3 @@
1
1
  module KPM
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.15'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.2.2
141
+ rubygems_version: 2.4.6
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Kill Bill package manager.