bumbleworks 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/bumbleworks.rb +4 -1
- data/lib/bumbleworks/version.rb +1 -1
- data/spec/lib/bumbleworks_spec.rb +10 -0
- metadata +1 -1
data/lib/bumbleworks.rb
CHANGED
@@ -25,7 +25,10 @@ module Bumbleworks
|
|
25
25
|
def_delegators :configuration, setting, "#{setting.to_s}="
|
26
26
|
end
|
27
27
|
|
28
|
-
def_delegators Bumbleworks::Ruote,
|
28
|
+
def_delegators Bumbleworks::Ruote,
|
29
|
+
:dashboard, :start_worker!,
|
30
|
+
:cancel_process!, :kill_process!,
|
31
|
+
:cancel_all_processes!, :kill_all_processes!
|
29
32
|
def_delegator Bumbleworks::ProcessDefinition, :define, :define_process
|
30
33
|
|
31
34
|
# @public
|
data/lib/bumbleworks/version.rb
CHANGED
@@ -112,6 +112,16 @@ describe Bumbleworks do
|
|
112
112
|
Bumbleworks.start_worker!.should == :lets_do_it
|
113
113
|
end
|
114
114
|
|
115
|
+
it 'includes cancel_process!' do
|
116
|
+
Bumbleworks::Ruote.should_receive(:cancel_process!).with(:wfid).and_return(:cancelling)
|
117
|
+
Bumbleworks.cancel_process!(:wfid).should == :cancelling
|
118
|
+
end
|
119
|
+
|
120
|
+
it 'includes kill_process!' do
|
121
|
+
Bumbleworks::Ruote.should_receive(:kill_process!).with(:wfid).and_return(:killing)
|
122
|
+
Bumbleworks.kill_process!(:wfid).should == :killing
|
123
|
+
end
|
124
|
+
|
115
125
|
it 'includes cancel_all_processes!' do
|
116
126
|
Bumbleworks::Ruote.should_receive(:cancel_all_processes!).and_return(:cancelling)
|
117
127
|
Bumbleworks.cancel_all_processes!.should == :cancelling
|