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 +4 -4
- data/lib/kpm/base_artifact.rb +5 -3
- data/lib/kpm/installer.rb +4 -2
- data/lib/kpm/tasks.rb +3 -4
- data/lib/kpm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f98562e91b2bb5a44b0d93bcaa886991bf09e0fd
|
4
|
+
data.tar.gz: 0d539a26c054a22aa1c13b8146bc13f642b346e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1acc6025cfdec57db5b56f6267fa14f7a62ec86cfc2ed9b7be88a42c3786d4ad2f572f6d74277259507ee7323dc4e3ab944230f8e32201bccf770ff26e000a5
|
7
|
+
data.tar.gz: e6881c699c95ff89b0303f032954ca9bb315f272d5c5e79c0d9ae879165030381d613e61cba295b1a21a72bb3d40b99816c231b2e56209a72207d9c0f1465246
|
data/lib/kpm/base_artifact.rb
CHANGED
@@ -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
|
-
|
146
|
-
|
147
|
-
|
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
|
|
data/lib/kpm/installer.rb
CHANGED
@@ -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
|
data/lib/kpm/tasks.rb
CHANGED
@@ -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 => '
|
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 => '
|
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,
|
data/lib/kpm/version.rb
CHANGED
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.
|
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-
|
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.
|
141
|
+
rubygems_version: 2.4.6
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Kill Bill package manager.
|