kpm 0.2.4 → 0.3.0

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: 0889ae583673bb8168b34853243ea0e2a88f97e0
4
- data.tar.gz: 56ac52db997d07403c2950e673d6677c1c116703
3
+ metadata.gz: ef4975c8b429baa718d809220d452f9b15ac1921
4
+ data.tar.gz: ebae2f6806b5c8e6c87af9bbbcbc706f69671b09
5
5
  SHA512:
6
- metadata.gz: 12d0020758ace9cf0ea3de62d2f136f06c8e9ac97a08a8ff7805523f8945b8640e8f2ad2ce3642a3dbb03c53cb578625acc7eb10a9b4650f17bc93c67879bede
7
- data.tar.gz: 9d941fbca6145ce2e94cbb5b660b266f07cbab65a2c02077369184e581795f1a76138a7dd55ed63c7591fc1b1a43003c42848e018fdff5c30b14025644d19ad6
6
+ metadata.gz: 6cb54a4a0788a600ee240a379c8cafee8807f09f16df8846684cafc266afa4b9c5c488020541fad585cbd867d7e3ada36bcfacaba6d86a0c43122c861e5cb9c2
7
+ data.tar.gz: eb74d321a8a7f6bea17fb075a33d8d44ce2e701ff51e90b99e6c6ba526667a5c996be0a0eb24bbf8efca59fde169acb00a2da15de36b6d4050bcdc10998c841c
@@ -39,6 +39,7 @@ module KPM
39
39
  dir ||= Dir.mktmpdir
40
40
  @logger.debug("Storing migrations to #{dir}")
41
41
  migrations.each do |migration|
42
+ @logger.info("Migration to run: #{migration[:name]}")
42
43
  migration_path = Pathname.new(dir).join(migration[:name])
43
44
  File.open(migration_path, 'w') do |file|
44
45
  @logger.debug("Storing migration #{migration_path}")
@@ -60,7 +61,7 @@ module KPM
60
61
  next unless match_data
61
62
 
62
63
  migration_name = match_data[1]
63
- @logger.info("Found migration #{migration_name}")
64
+ @logger.debug("Found migration #{migration_name}")
64
65
  next if migrations_to_skip.include?(migration_name)
65
66
 
66
67
  sql = nil
@@ -14,6 +14,7 @@
14
14
  :0.14: 0.1.0
15
15
  :0.15: 0.2.1
16
16
  :0.16: 0.3.2
17
+ :0.17: 0.4.4
17
18
  :require:
18
19
  - :org.killbill.billing.plugin.adyen.merchantAccount
19
20
  - :org.killbill.billing.plugin.adyen.username
@@ -57,7 +58,7 @@
57
58
  :versions:
58
59
  :0.14: 1.0.0
59
60
  :0.15: 3.3.0
60
- :0.16: 4.0.7
61
+ :0.16: 4.0.9
61
62
  :stable_version: 0.0.4
62
63
  :require:
63
64
  - :login
@@ -114,6 +115,15 @@
114
115
  :0.14: 1.7.0
115
116
  :0.15: 2.0.0
116
117
  :0.16: 3.0.0
118
+ :payeezy:
119
+ :type: :java
120
+ :versions:
121
+ :0.17: 0.1.0
122
+ :require:
123
+ - :org.killbill.billing.plugin.payeezy.apiKey
124
+ - :org.killbill.billing.plugin.payeezy.token
125
+ - :org.killbill.billing.plugin.payeezy.secret
126
+ - :org.killbill.billing.plugin.payeezy.paymentUrl
117
127
  :paypal:
118
128
  :type: :ruby
119
129
  :artifact_id: paypal-express-plugin
data/lib/kpm/tasks.rb CHANGED
@@ -58,6 +58,10 @@ module KPM
58
58
  :type => :string,
59
59
  :default => nil,
60
60
  :desc => 'A different folder other than the current working directory.'
61
+ method_option :bundles_dir,
62
+ :type => :string,
63
+ :default => nil,
64
+ :desc => 'The location where bundles will be installed (along with sha1 file)'
61
65
  method_option :force_download,
62
66
  :type => :boolean,
63
67
  :default => false,
@@ -68,18 +72,18 @@ module KPM
68
72
  :desc => 'Validate sha1 sum'
69
73
  desc 'pull_kb_server_war <version>', 'Pulls Kill Bill server war from Sonatype and places it on your machine. If version was not specified it uses the latest released version.'
70
74
  def pull_kb_server_war(version='LATEST')
71
- response = KillbillServerArtifact.pull(logger,
72
- KillbillServerArtifact::KILLBILL_GROUP_ID,
73
- KillbillServerArtifact::KILLBILL_ARTIFACT_ID,
74
- KillbillServerArtifact::KILLBILL_PACKAGING,
75
- KillbillServerArtifact::KILLBILL_CLASSIFIER,
76
- version,
77
- options[:destination],
78
- nil,
79
- options[:force_download],
80
- options[:verify_sha1],
81
- options[:overrides],
82
- options[:ssl_verify])
75
+ installer = BaseInstaller.new(logger,
76
+ options[:overrides],
77
+ options[:ssl_verify])
78
+ response = installer.install_killbill_server(KillbillServerArtifact::KILLBILL_GROUP_ID,
79
+ KillbillServerArtifact::KILLBILL_ARTIFACT_ID,
80
+ KillbillServerArtifact::KILLBILL_PACKAGING,
81
+ KillbillServerArtifact::KILLBILL_CLASSIFIER,
82
+ version,
83
+ options[:destination],
84
+ options[:bundles_dir],
85
+ options[:force_download],
86
+ options[:verify_sha1])
83
87
  say "Artifact has been retrieved and can be found at path: #{response[:file_path]}", :green
84
88
  end
85
89
 
@@ -96,6 +100,10 @@ module KPM
96
100
  :type => :string,
97
101
  :default => nil,
98
102
  :desc => 'A different folder other than the current working directory.'
103
+ method_option :bundles_dir,
104
+ :type => :string,
105
+ :default => nil,
106
+ :desc => 'The location where bundles will be installed (along with sha1 file)'
99
107
  method_option :force_download,
100
108
  :type => :boolean,
101
109
  :default => false,
@@ -106,18 +114,18 @@ module KPM
106
114
  :desc => 'Validates sha1 sum'
107
115
  desc 'pull_kp_server_war <version>', 'Pulls Kill Pay server war from Sonatype and places it on your machine. If version was not specified it uses the latest released version.'
108
116
  def pull_kp_server_war(version='LATEST')
109
- response = KillbillServerArtifact.pull(logger,
110
- KillbillServerArtifact::KILLBILL_GROUP_ID,
111
- KillbillServerArtifact::KILLPAY_ARTIFACT_ID,
112
- KillbillServerArtifact::KILLPAY_PACKAGING,
113
- KillbillServerArtifact::KILLPAY_CLASSIFIER,
114
- version,
115
- options[:destination],
116
- nil,
117
- options[:force_download],
118
- options[:verify_sha1],
119
- options[:overrides],
120
- options[:ssl_verify])
117
+ installer = BaseInstaller.new(logger,
118
+ options[:overrides],
119
+ options[:ssl_verify])
120
+ response = installer.install_killbill_server(KillbillServerArtifact::KILLBILL_GROUP_ID,
121
+ KillbillServerArtifact::KILLPAY_ARTIFACT_ID,
122
+ KillbillServerArtifact::KILLPAY_PACKAGING,
123
+ KillbillServerArtifact::KILLPAY_CLASSIFIER,
124
+ version,
125
+ options[:destination],
126
+ options[:bundles_dir],
127
+ options[:force_download],
128
+ options[:verify_sha1])
121
129
  say "Artifact has been retrieved and can be found at path: #{response[:file_path]}", :green
122
130
  end
123
131
 
data/lib/kpm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module KPM
2
- VERSION = '0.2.4'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,105 +1,105 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
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-08-05 00:00:00.000000000 Z
11
+ date: 2016-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.21
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
- - - ~>
24
+ - - "~>"
23
25
  - !ruby/object:Gem::Version
24
26
  version: 1.6.21
25
- prerelease: false
26
- type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nexus_cli
29
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.1.0
34
- requirement: !ruby/object:Gem::Requirement
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
35
37
  requirements:
36
- - - ~>
38
+ - - "~>"
37
39
  - !ruby/object:Gem::Version
38
40
  version: 4.1.0
39
- prerelease: false
40
- type: :runtime
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
- version_requirements: !ruby/object:Gem::Requirement
43
+ requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.19.1
48
- requirement: !ruby/object:Gem::Requirement
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
49
51
  requirements:
50
- - - ~>
52
+ - - "~>"
51
53
  - !ruby/object:Gem::Version
52
54
  version: 0.19.1
53
- prerelease: false
54
- type: :runtime
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubyzip
57
- version_requirements: !ruby/object:Gem::Requirement
57
+ requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.2.0
62
- requirement: !ruby/object:Gem::Requirement
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
63
65
  requirements:
64
- - - ~>
66
+ - - "~>"
65
67
  - !ruby/object:Gem::Version
66
68
  version: 1.2.0
67
- prerelease: false
68
- type: :runtime
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- version_requirements: !ruby/object:Gem::Requirement
71
+ requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 10.0.0
76
- - - <
76
+ - - "<"
77
77
  - !ruby/object:Gem::Version
78
78
  version: 11.0.0
79
- requirement: !ruby/object:Gem::Requirement
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
80
82
  requirements:
81
- - - '>='
83
+ - - ">="
82
84
  - !ruby/object:Gem::Version
83
85
  version: 10.0.0
84
- - - <
86
+ - - "<"
85
87
  - !ruby/object:Gem::Version
86
88
  version: 11.0.0
87
- prerelease: false
88
- type: :development
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rspec
91
- version_requirements: !ruby/object:Gem::Requirement
91
+ requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ~>
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: 2.12.0
96
- requirement: !ruby/object:Gem::Requirement
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
97
99
  requirements:
98
- - - ~>
100
+ - - "~>"
99
101
  - !ruby/object:Gem::Version
100
102
  version: 2.12.0
101
- prerelease: false
102
- type: :development
103
103
  description: A package manager for Kill Bill.
104
104
  email: killbilling-users@googlegroups.com
105
105
  executables:
@@ -107,8 +107,8 @@ executables:
107
107
  extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
- - .gemrelease
111
- - .gitignore
110
+ - ".gemrelease"
111
+ - ".gitignore"
112
112
  - Gemfile
113
113
  - README.md
114
114
  - Rakefile
@@ -157,26 +157,43 @@ homepage: http://kill-bill.org
157
157
  licenses:
158
158
  - Apache License (2.0)
159
159
  metadata: {}
160
- post_install_message:
160
+ post_install_message:
161
161
  rdoc_options:
162
- - --exclude
163
- - .
162
+ - "--exclude"
163
+ - "."
164
164
  require_paths:
165
165
  - lib
166
166
  required_ruby_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - '>='
168
+ - - ">="
169
169
  - !ruby/object:Gem::Version
170
170
  version: 1.8.6
171
171
  required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - '>='
173
+ - - ">="
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubyforge_project:
178
- rubygems_version: 2.4.6
179
- signing_key:
177
+ rubyforge_project:
178
+ rubygems_version: 2.2.2
179
+ signing_key:
180
180
  specification_version: 4
181
181
  summary: Kill Bill package manager.
182
- test_files: []
182
+ test_files:
183
+ - spec/kpm/remote/base_artifact_spec.rb
184
+ - spec/kpm/remote/base_installer_spec.rb
185
+ - spec/kpm/remote/installer_spec.rb
186
+ - spec/kpm/remote/kaui_artifact_spec.rb
187
+ - spec/kpm/remote/killbill_plugin_artifact_spec.rb
188
+ - spec/kpm/remote/killbill_server_artifact_spec.rb
189
+ - spec/kpm/remote/migrations_spec.rb
190
+ - spec/kpm/remote/tomcat_manager_spec.rb
191
+ - spec/kpm/unit/base_artifact_spec.rb
192
+ - spec/kpm/unit/inspector_spec.rb
193
+ - spec/kpm/unit/installer_spec.rb
194
+ - spec/kpm/unit/plugins_directory_spec.rb
195
+ - spec/kpm/unit/plugins_manager_spec.rb
196
+ - spec/kpm/unit/sha1_checker_spec.rb
197
+ - spec/kpm/unit/sha1_test.yml
198
+ - spec/kpm/unit/uninstaller_spec.rb
199
+ - spec/spec_helper.rb