killbill 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/killbill.rb +1 -1
- data/lib/killbill/jplugin.rb +7 -0
- data/spec/spec_helper.rb +2 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/lib/killbill.rb
CHANGED
data/lib/killbill/jplugin.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
1
3
|
require 'killbill/http_servlet'
|
2
4
|
require 'killbill/logger'
|
5
|
+
require 'killbill/creator'
|
3
6
|
|
4
7
|
module Killbill
|
5
8
|
# There are various types of plugins one can write for Killbill:
|
@@ -21,6 +24,10 @@ module Killbill
|
|
21
24
|
@delegate_plugin.stop_plugin
|
22
25
|
end
|
23
26
|
|
27
|
+
def is_active
|
28
|
+
@delegate_plugin.active
|
29
|
+
end
|
30
|
+
|
24
31
|
# Called by the Killbill lifecycle when instantiating the plugin
|
25
32
|
def initialize(plugin_class_name, services = {})
|
26
33
|
@delegate_plugin = Creator.new(plugin_class_name).create(services)
|
data/spec/spec_helper.rb
CHANGED