libis-workflow 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libis/exceptions.rb +0 -2
- data/lib/libis/workflow/base/dir_item.rb +0 -2
- data/lib/libis/workflow/base/file_item.rb +0 -2
- data/lib/libis/workflow/base/job.rb +0 -2
- data/lib/libis/workflow/base/run.rb +1 -3
- data/lib/libis/workflow/base/work_item.rb +0 -2
- data/lib/libis/workflow/base/workflow.rb +3 -5
- data/lib/libis/workflow/config.rb +0 -2
- data/lib/libis/workflow/dir_item.rb +0 -2
- data/lib/libis/workflow/file_item.rb +0 -2
- data/lib/libis/workflow/job.rb +1 -3
- data/lib/libis/workflow/message_registry.rb +0 -2
- data/lib/libis/workflow/task.rb +0 -1
- data/lib/libis/workflow/task_group.rb +0 -1
- data/lib/libis/workflow/tasks/analyzer.rb +0 -2
- data/lib/libis/workflow/version.rb +1 -3
- data/lib/libis/workflow/work_item.rb +0 -1
- data/lib/libis/workflow/worker.rb +3 -4
- data/lib/libis/workflow/workflow.rb +0 -2
- data/lib/libis/workflow.rb +0 -1
- data/lib/libis-workflow.rb +0 -1
- data/spec/items/test_dir_item.rb +0 -1
- data/spec/items/test_file_item.rb +0 -1
- data/spec/items/test_run.rb +0 -1
- data/spec/tasks/camelize_name.rb +0 -1
- data/spec/tasks/checksum_tester.rb +0 -1
- data/spec/tasks/collect_files.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfab02f94fe4c007febd5cb3a6a3f90bc690578d
|
4
|
+
data.tar.gz: b28951ed4a7d771c600f8c1b80b47c5c708bc5b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f880d8a3daaf98ab41826055e8c9138146c253cd4a63af933302ee1277253e94b51a3ddd71175c6351eff24f54ef1b02eb4c953363b260077f8172fe302938ef
|
7
|
+
data.tar.gz: 65ecec01867987ee515d8af5e5f9b2aa4a6cd274fcf0343bd04a2221d1c0438bcbd95a50cdbd517459c8d226750ffd30d45e08ec684af54927b2f85ab20b5305
|
data/lib/libis/exceptions.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require 'fileutils'
|
4
2
|
|
5
3
|
require 'libis/workflow/base/work_item'
|
@@ -28,7 +26,7 @@ module Libis
|
|
28
26
|
|
29
27
|
def work_dir
|
30
28
|
# noinspection RubyResolve
|
31
|
-
dir = File.join(Config.workdir, self.name)
|
29
|
+
dir = File.join(Libis::Workflow::Config.workdir, self.name)
|
32
30
|
FileUtils.mkpath dir unless Dir.exist?(dir)
|
33
31
|
dir
|
34
32
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require 'libis/tools/parameter'
|
4
2
|
require 'libis/workflow/task_group'
|
5
3
|
require 'libis/tools/extend/hash'
|
@@ -65,11 +63,11 @@ module Libis
|
|
65
63
|
|
66
64
|
module ClassMethods
|
67
65
|
def require_all
|
68
|
-
Config.require_all(File.join(File.dirname(__FILE__), '..', 'tasks'))
|
66
|
+
Libis::Workflow::Config.require_all(File.join(File.dirname(__FILE__), '..', 'tasks'))
|
69
67
|
# noinspection RubyResolve
|
70
|
-
Config.require_all(Config.taskdir)
|
68
|
+
Libis::Workflow::Config.require_all(Libis::Workflow::Config.taskdir)
|
71
69
|
# noinspection RubyResolve
|
72
|
-
Config.require_all(Config.itemdir)
|
70
|
+
Libis::Workflow::Config.require_all(Libis::Workflow::Config.itemdir)
|
73
71
|
end
|
74
72
|
end
|
75
73
|
|
data/lib/libis/workflow/job.rb
CHANGED
data/lib/libis/workflow/task.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
module Libis
|
4
2
|
module Workflow
|
5
|
-
VERSION = '2.0.
|
3
|
+
VERSION = '2.0.6' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
6
4
|
end
|
7
5
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
require 'sidekiq'
|
3
2
|
|
4
3
|
require 'libis/workflow/config'
|
@@ -19,13 +18,13 @@ module Libis
|
|
19
18
|
def configure(job_config, options = {})
|
20
19
|
log_path = options.delete :log_path
|
21
20
|
if log_path
|
22
|
-
Config.logger = ::Logger.new(
|
21
|
+
Libis::Workflow::Config.logger = ::Logger.new(
|
23
22
|
File.join(log_path, "#{job_config[:name]}.log"),
|
24
23
|
(options.delete(:log_shift_age) || 'daily'),
|
25
24
|
(options.delete(:log_shift_size) || 1024 ** 2)
|
26
25
|
)
|
27
|
-
Config.logger.formatter = ::Logger::Formatter.new
|
28
|
-
Config.logger.level = (options.delete(:log_level) || ::Logger::DEBUG)
|
26
|
+
Libis::Workflow::Config.logger.formatter = ::Logger::Formatter.new
|
27
|
+
Libis::Workflow::Config.logger.level = (options.delete(:log_level) || ::Logger::DEBUG)
|
29
28
|
end
|
30
29
|
get_job(job_config)
|
31
30
|
end
|
data/lib/libis/workflow.rb
CHANGED
data/lib/libis-workflow.rb
CHANGED
data/spec/items/test_dir_item.rb
CHANGED
data/spec/items/test_run.rb
CHANGED
data/spec/tasks/camelize_name.rb
CHANGED
data/spec/tasks/collect_files.rb
CHANGED