cloud_powers 0.2.7.15 → 0.2.7.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cloud_powers/delegator.rb +4 -4
- data/lib/cloud_powers/storage.rb +1 -1
- data/lib/cloud_powers/version.rb +1 -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: 15a17486c12b5e0469c0716a448257dcadc48e4b
|
4
|
+
data.tar.gz: 2af3ec297893db4a92a70f7778a6f6d011867203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b6acec6b736b2b8de1546fe7986fe75ee8c4736929aea755a6151d7f5a070aa7f41b104d3cb7f9c1c99d557511e2fef1e5f316c04390a1ba71b2efc5b22d71
|
7
|
+
data.tar.gz: 133bd74a5f96133ca9151d51b9676a80e9fd6c5351d0de90cdf7f0911da33d350b7b233db7c0593827652ea2e5251be1082bb14c3a5319b7196ead59903adf50
|
data/Gemfile.lock
CHANGED
@@ -27,7 +27,7 @@ module Smash
|
|
27
27
|
# Notes
|
28
28
|
# * TODO: needs improvement
|
29
29
|
def approved_task?(name = nil)
|
30
|
-
['demo', 'testinz'].include? to_snake(name)
|
30
|
+
['demo', 'testinz', 'true_roas'].include? to_snake(name)
|
31
31
|
end
|
32
32
|
|
33
33
|
# responsible for sourcing, loading into the global namespace
|
@@ -54,13 +54,13 @@ module Smash
|
|
54
54
|
def build(id, msg)
|
55
55
|
body = decipher_message(msg)
|
56
56
|
begin
|
57
|
-
task = body
|
57
|
+
task = body['task']
|
58
58
|
if approved_task? task
|
59
59
|
source_task(task)
|
60
60
|
require_relative task_require_path(task)
|
61
|
-
Smash.const_get(to_pascal(task)).new(id,
|
61
|
+
Smash.const_get(to_pascal(task)).new(id, body)
|
62
62
|
else
|
63
|
-
Smash::Task.new(id,
|
63
|
+
Smash::Task.new(id, body) # returns a default Task
|
64
64
|
end
|
65
65
|
rescue JSON::ParserError => e
|
66
66
|
message = [msg.body, format_error_message(e)].join("\n")
|
data/lib/cloud_powers/storage.rb
CHANGED
@@ -41,7 +41,7 @@ module Smash
|
|
41
41
|
def source_task(file)
|
42
42
|
# TODO: better path management
|
43
43
|
bucket = zfind('task storage')
|
44
|
-
if task_path(file).nil?
|
44
|
+
if task_path(to_ruby_file_name(file)).nil?
|
45
45
|
objects = s3.list_objects(bucket: bucket).contents.select do |f|
|
46
46
|
/#{Regexp.escape file}/i =~ f.key
|
47
47
|
end
|
data/lib/cloud_powers/version.rb
CHANGED