kpm 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kpm.gemspec +1 -1
- data/lib/kpm/base_artifact.rb +7 -3
- data/lib/kpm/plugins_directory.yml +1 -1
- data/lib/kpm/tasks.rb +5 -1
- data/lib/kpm/version.rb +1 -1
- metadata +50 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad4a3f0861e0df1db63bfb5647ed60ebd1a7c4d3
|
4
|
+
data.tar.gz: d8b938a6b66539fec064abb4a67bc94f81f64bab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a6a89efadce6b7fa7610a0927f0d15a38b83886b1aa29071995bb723532dd0777b5941ee9aadc4b7513fad446eae5b02fb3f00ede6a62bffa76568201062eba
|
7
|
+
data.tar.gz: e33e8482b67584e8328c7f26f17626e7ef98a8dbadb42e8e4daca404205fc8229af19c8bd41aaf02b82771bc5aeaf1baf762a52335427c42526414b5537406eb
|
data/kpm.gemspec
CHANGED
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.add_dependency 'nexus_cli', '~> 4.1.0'
|
44
44
|
s.add_dependency 'thor', '~> 0.19.1'
|
45
45
|
|
46
|
-
s.add_development_dependency 'rake', '>= 10.0.0'
|
46
|
+
s.add_development_dependency 'rake', '>= 10.0.0', '< 11.0.0'
|
47
47
|
s.add_development_dependency 'rspec', '~> 2.12.0'
|
48
48
|
end
|
49
49
|
|
data/lib/kpm/base_artifact.rb
CHANGED
@@ -59,7 +59,7 @@ module KPM
|
|
59
59
|
|
60
60
|
def pull_and_put_in_place(logger, coordinate_map, destination_path=nil, skip_top_dir=true, sha1_file=nil, force_download=false, verify_sha1=true, overrides={}, ssl_verify=true)
|
61
61
|
# Build artifact info
|
62
|
-
artifact_info = artifact_info(coordinate_map, overrides, ssl_verify)
|
62
|
+
artifact_info = artifact_info(logger, coordinate_map, overrides, ssl_verify)
|
63
63
|
populate_fs_info(artifact_info, destination_path)
|
64
64
|
|
65
65
|
# Update with resolved version in case 'LATEST' was passed
|
@@ -157,13 +157,17 @@ module KPM
|
|
157
157
|
local_sha1 == artifact_info[:sha1]
|
158
158
|
end
|
159
159
|
|
160
|
-
def artifact_info(coordinate_map, overrides={}, ssl_verify=true)
|
160
|
+
def artifact_info(logger, coordinate_map, overrides={}, ssl_verify=true)
|
161
161
|
info = {
|
162
162
|
:skipped => false
|
163
163
|
}
|
164
164
|
|
165
165
|
coordinates = build_coordinates(coordinate_map)
|
166
|
-
|
166
|
+
begin
|
167
|
+
nexus_info = nexus_remote(overrides, ssl_verify).get_artifact_info(coordinates)
|
168
|
+
rescue NexusCli::ArtifactMalformedException => e
|
169
|
+
raise NexusCli::NexusCliError.new("Invalid coordinates #{coordinate_map}")
|
170
|
+
end
|
167
171
|
|
168
172
|
xml = REXML::Document.new(nexus_info)
|
169
173
|
info[:sha1] = xml.elements['//sha1'].text unless xml.elements['//sha1'].nil?
|
data/lib/kpm/tasks.rb
CHANGED
@@ -174,6 +174,10 @@ module KPM
|
|
174
174
|
say "Artifact has been retrieved and can be found at path: #{response[:file_path]}", :green
|
175
175
|
end
|
176
176
|
|
177
|
+
method_option :destination,
|
178
|
+
:type => :string,
|
179
|
+
:default => nil,
|
180
|
+
:desc => 'A different folder other than the default bundles directory.'
|
177
181
|
method_option :force_download,
|
178
182
|
:type => :boolean,
|
179
183
|
:default => false,
|
@@ -187,7 +191,7 @@ module KPM
|
|
187
191
|
response = BaseInstaller.new(logger,
|
188
192
|
options[:overrides],
|
189
193
|
options[:ssl_verify])
|
190
|
-
.install_default_bundles(
|
194
|
+
.install_default_bundles(options[:destination],
|
191
195
|
nil,
|
192
196
|
kb_version,
|
193
197
|
options[:force_download],
|
data/lib/kpm/version.rb
CHANGED
metadata
CHANGED
@@ -1,85 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
15
|
-
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.6.21
|
20
|
-
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
23
21
|
requirements:
|
24
|
-
- -
|
22
|
+
- - ~>
|
25
23
|
- !ruby/object:Gem::Version
|
26
24
|
version: 1.6.21
|
25
|
+
prerelease: false
|
26
|
+
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nexus_cli
|
29
|
-
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.1.0
|
34
|
-
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
37
35
|
requirements:
|
38
|
-
- -
|
36
|
+
- - ~>
|
39
37
|
- !ruby/object:Gem::Version
|
40
38
|
version: 4.1.0
|
39
|
+
prerelease: false
|
40
|
+
type: :runtime
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
|
-
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.19.1
|
48
|
-
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
51
49
|
requirements:
|
52
|
-
- -
|
50
|
+
- - ~>
|
53
51
|
- !ruby/object:Gem::Version
|
54
52
|
version: 0.19.1
|
53
|
+
prerelease: false
|
54
|
+
type: :runtime
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
|
-
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 10.0.0
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
- - <
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 11.0.0
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
65
66
|
requirements:
|
66
|
-
- -
|
67
|
+
- - '>='
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: 10.0.0
|
70
|
+
- - <
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 11.0.0
|
73
|
+
prerelease: false
|
74
|
+
type: :development
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: rspec
|
71
|
-
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- -
|
79
|
+
- - ~>
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: 2.12.0
|
76
|
-
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
79
83
|
requirements:
|
80
|
-
- -
|
84
|
+
- - ~>
|
81
85
|
- !ruby/object:Gem::Version
|
82
86
|
version: 2.12.0
|
87
|
+
prerelease: false
|
88
|
+
type: :development
|
83
89
|
description: A package manager for Kill Bill.
|
84
90
|
email: killbilling-users@googlegroups.com
|
85
91
|
executables:
|
@@ -87,8 +93,8 @@ executables:
|
|
87
93
|
extensions: []
|
88
94
|
extra_rdoc_files: []
|
89
95
|
files:
|
90
|
-
-
|
91
|
-
-
|
96
|
+
- .gemrelease
|
97
|
+
- .gitignore
|
92
98
|
- Gemfile
|
93
99
|
- README.md
|
94
100
|
- Rakefile
|
@@ -127,38 +133,26 @@ homepage: http://kill-bill.org
|
|
127
133
|
licenses:
|
128
134
|
- Apache License (2.0)
|
129
135
|
metadata: {}
|
130
|
-
post_install_message:
|
136
|
+
post_install_message:
|
131
137
|
rdoc_options:
|
132
|
-
-
|
133
|
-
-
|
138
|
+
- --exclude
|
139
|
+
- .
|
134
140
|
require_paths:
|
135
141
|
- lib
|
136
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
137
143
|
requirements:
|
138
|
-
- -
|
144
|
+
- - '>='
|
139
145
|
- !ruby/object:Gem::Version
|
140
146
|
version: 1.8.6
|
141
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
148
|
requirements:
|
143
|
-
- -
|
149
|
+
- - '>='
|
144
150
|
- !ruby/object:Gem::Version
|
145
151
|
version: '0'
|
146
152
|
requirements: []
|
147
|
-
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
149
|
-
signing_key:
|
153
|
+
rubyforge_project:
|
154
|
+
rubygems_version: 2.1.9
|
155
|
+
signing_key:
|
150
156
|
specification_version: 4
|
151
157
|
summary: Kill Bill package manager.
|
152
|
-
test_files:
|
153
|
-
- spec/kpm/remote/base_artifact_spec.rb
|
154
|
-
- spec/kpm/remote/installer_spec.rb
|
155
|
-
- spec/kpm/remote/kaui_artifact_spec.rb
|
156
|
-
- spec/kpm/remote/killbill_plugin_artifact_spec.rb
|
157
|
-
- spec/kpm/remote/killbill_server_artifact_spec.rb
|
158
|
-
- spec/kpm/remote/tomcat_manager_spec.rb
|
159
|
-
- spec/kpm/unit/base_artifact_spec.rb
|
160
|
-
- spec/kpm/unit/plugins_directory_spec.rb
|
161
|
-
- spec/kpm/unit/plugins_manager_spec.rb
|
162
|
-
- spec/kpm/unit/sha1_checker_spec.rb
|
163
|
-
- spec/kpm/unit/sha1_test.yml
|
164
|
-
- spec/spec_helper.rb
|
158
|
+
test_files: []
|