kpm 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kpm/installer.rb +16 -14
  3. data/lib/kpm/version.rb +1 -1
  4. metadata +42 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e398c7723613b32722808b57046cdbd315dc2794
4
- data.tar.gz: 490a66d49e0824f244f7a0bbadf28f61be155973
3
+ metadata.gz: e0168b3fb22a6c364cce6ce9e235a0025627da27
4
+ data.tar.gz: 48cf7c666cb75d59208598a99b955c52eeb9800e
5
5
  SHA512:
6
- metadata.gz: f510404cf6b06a4da445277ce91d21a76f4566e98b1028ef386270c993c50d4209878dda88ac5f1d07d4712ee0569dc169b2eefc59d15067e8daff9a22f53d34
7
- data.tar.gz: b0e96b7b2b9affbb0c23b74b91a26d8c8c10447724cacdbb2d0a1099847739f7864cc3dd6f83ad8242ef83e1038d175026743326829ca598c37dda9dd8704a7a
6
+ metadata.gz: 52f9ff4a9a13d224c448da33c5ad909bcf6d25edd393aca71551dae61832b539dfa5d050f15b8f4807c956145a26cfbba2a8c62ab9590f4044d990cecd9c9573
7
+ data.tar.gz: d1706d3f53df62ec452bf7791317525406b8409341474c5334ca24c070e4e30cabe453af216cd90a0687e7e22af312e66204eba6aa8bae601b3096ab2ee13898
data/lib/kpm/installer.rb CHANGED
@@ -27,6 +27,10 @@ module KPM
27
27
  end
28
28
 
29
29
  def install(force_download=false)
30
+ @force_download = force_download
31
+ @bundles_dir = @config['plugins_dir']
32
+ @sha1_file = "#{@bundles_dir}/#{SHA1_FILENAME}"
33
+
30
34
  unless @config.nil?
31
35
  install_killbill_server
32
36
  install_plugins
@@ -35,7 +39,6 @@ module KPM
35
39
  unless @kaui_config.nil?
36
40
  install_kaui
37
41
  end
38
- @force_download = force_download
39
42
  end
40
43
 
41
44
  private
@@ -52,12 +55,11 @@ module KPM
52
55
  end
53
56
 
54
57
  def install_plugins
55
- bundles_dir = @config['plugins_dir']
56
- install_java_plugins(bundles_dir)
57
- install_ruby_plugins(bundles_dir)
58
+ install_java_plugins
59
+ install_ruby_plugins
58
60
  end
59
61
 
60
- def install_java_plugins(bundles_dir)
62
+ def install_java_plugins
61
63
  return if @config['plugins'].nil? or @config['plugins']['java'].nil?
62
64
 
63
65
  infos = []
@@ -67,16 +69,15 @@ module KPM
67
69
  packaging = plugin['packaging'] || KPM::BaseArtifact::KILLBILL_JAVA_PLUGIN_PACKAGING
68
70
  classifier = plugin['classifier'] || KPM::BaseArtifact::KILLBILL_JAVA_PLUGIN_CLASSIFIER
69
71
  version = plugin['version'] || LATEST_VERSION
70
- destination = "#{bundles_dir}/plugins/java/#{artifact_id}/#{version}"
71
- sha1_file = "#{bundles_dir}/#{SHA1_FILENAME}"
72
+ destination = "#{@bundles_dir}/plugins/java/#{artifact_id}/#{version}"
72
73
 
73
- infos << KPM::KillbillPluginArtifact.pull(@logger, group_id, artifact_id, packaging, classifier, version, destination, sha1_file, @force_download, @nexus_config, @nexus_ssl_verify)
74
+ infos << KPM::KillbillPluginArtifact.pull(@logger, group_id, artifact_id, packaging, classifier, version, destination, @sha1_file, @force_download, @nexus_config, @nexus_ssl_verify)
74
75
  end
75
76
 
76
77
  infos
77
78
  end
78
79
 
79
- def install_ruby_plugins(bundles_dir)
80
+ def install_ruby_plugins
80
81
  return if @config['plugins'].nil? or @config['plugins']['ruby'].nil?
81
82
 
82
83
  infos = []
@@ -86,10 +87,9 @@ module KPM
86
87
  packaging = plugin['packaging'] || KPM::BaseArtifact::KILLBILL_RUBY_PLUGIN_PACKAGING
87
88
  classifier = plugin['classifier'] || KPM::BaseArtifact::KILLBILL_RUBY_PLUGIN_CLASSIFIER
88
89
  version = plugin['version'] || LATEST_VERSION
89
- destination = "#{bundles_dir}/plugins/ruby"
90
- sha1_file = "#{bundles_dir}/#{SHA1_FILENAME}"
90
+ destination = "#{@bundles_dir}/plugins/ruby"
91
91
 
92
- infos << KPM::KillbillPluginArtifact.pull(@logger, group_id, artifact_id, packaging, classifier, version, destination, sha1_file, @force_download, @nexus_config, @nexus_ssl_verify)
92
+ infos << KPM::KillbillPluginArtifact.pull(@logger, group_id, artifact_id, packaging, classifier, version, destination, @sha1_file, @force_download, @nexus_config, @nexus_ssl_verify)
93
93
  end
94
94
 
95
95
  infos
@@ -105,11 +105,13 @@ module KPM
105
105
  version = @config['default_bundles_version'] || LATEST_VERSION
106
106
  destination = "#{@config['plugins_dir']}/platform"
107
107
 
108
- info = KPM::BaseArtifact.pull(@logger, group_id, artifact_id, packaging, classifier, version, destination, nil, @force_download, @nexus_config, @nexus_ssl_verify)
108
+ info = KPM::BaseArtifact.pull(@logger, group_id, artifact_id, packaging, classifier, version, destination, @sha1_file, @force_download, @nexus_config, @nexus_ssl_verify)
109
109
 
110
110
  # The special JRuby bundle needs to be called jruby.jar
111
111
  # TODO .first - code smell
112
- File.rename Dir.glob("#{destination}/killbill-platform-osgi-bundles-jruby-*.jar").first, "#{destination}/jruby.jar"
112
+ if !info[:skipped]
113
+ File.rename Dir.glob("#{destination}/killbill-platform-osgi-bundles-jruby-*.jar").first, "#{destination}/jruby.jar"
114
+ end
113
115
 
114
116
  info
115
117
  end
data/lib/kpm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module KPM
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
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: 2014-11-28 00:00:00.000000000 Z
11
+ date: 2014-12-01 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
+ requirement: !ruby/object:Gem::Requirement
65
63
  requirements:
66
- - - ">="
64
+ - - '>='
67
65
  - !ruby/object:Gem::Version
68
66
  version: 10.0.0
67
+ prerelease: false
68
+ type: :development
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- requirement: !ruby/object:Gem::Requirement
71
+ version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.12.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
76
+ requirement: !ruby/object:Gem::Requirement
79
77
  requirements:
80
- - - "~>"
78
+ - - ~>
81
79
  - !ruby/object:Gem::Version
82
80
  version: 2.12.0
81
+ prerelease: false
82
+ type: :development
83
83
  description: A package manager for Kill Bill.
84
84
  email: killbilling-users@googlegroups.com
85
85
  executables:
@@ -87,8 +87,8 @@ executables:
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".gemrelease"
91
- - ".gitignore"
90
+ - .gemrelease
91
+ - .gitignore
92
92
  - Gemfile
93
93
  - README.md
94
94
  - Rakefile
@@ -120,26 +120,26 @@ homepage: http://kill-bill.org
120
120
  licenses:
121
121
  - Apache License (2.0)
122
122
  metadata: {}
123
- post_install_message:
123
+ post_install_message:
124
124
  rdoc_options:
125
- - "--exclude"
126
- - "."
125
+ - --exclude
126
+ - .
127
127
  require_paths:
128
128
  - lib
129
129
  required_ruby_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ">="
131
+ - - '>='
132
132
  - !ruby/object:Gem::Version
133
133
  version: 1.8.6
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubyforge_project:
140
+ rubyforge_project:
141
141
  rubygems_version: 2.2.2
142
- signing_key:
142
+ signing_key:
143
143
  specification_version: 4
144
144
  summary: Kill Bill package manager.
145
145
  test_files: