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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83d604648d401bdb735741c50d4785c94d2245db
4
- data.tar.gz: 35b1dba157934ceb3e720897f27b56bdb61403d9
3
+ metadata.gz: ad4a3f0861e0df1db63bfb5647ed60ebd1a7c4d3
4
+ data.tar.gz: d8b938a6b66539fec064abb4a67bc94f81f64bab
5
5
  SHA512:
6
- metadata.gz: 57f88e496518b4e4051115b72d696255d0c14ee1d7fee375da0f573128b4d45bdc83ae21d0832d9f888ed7eca65bd9ad366063a75a83b47c8ebeb42678c5b5b2
7
- data.tar.gz: 0a83e8150b25b5620fa5788effd62f23803b159fab117a31ebb22b4b13ee680b3017fdfe3f199061a0a02cb95f5aba6a1e08a65d13b6abdaa04eb203f031eba3
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
 
@@ -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
- nexus_info = nexus_remote(overrides, ssl_verify).get_artifact_info(coordinates)
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?
@@ -119,7 +119,7 @@
119
119
  :versions:
120
120
  :0.14: 2.0.0
121
121
  :0.15: 3.0.0
122
- :0.16: 4.0.0
122
+ :0.16: 4.1.0
123
123
  :stable_version: 2.0.0
124
124
  :require:
125
125
  - :signature
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(nil,
194
+ .install_default_bundles(options[:destination],
191
195
  nil,
192
196
  kb_version,
193
197
  options[:force_download],
data/lib/kpm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module KPM
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
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.6
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-02-26 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
15
- requirement: !ruby/object:Gem::Requirement
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
- type: :runtime
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
- requirement: !ruby/object:Gem::Requirement
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
- type: :runtime
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
- requirement: !ruby/object:Gem::Requirement
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
- type: :runtime
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
- requirement: !ruby/object:Gem::Requirement
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
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
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
- type: :development
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
- - ".gemrelease"
91
- - ".gitignore"
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
- - "--exclude"
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.2.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: []