smith 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smith/bootstrap.rb +2 -10
- data/lib/smith/commands/smithctl/rm.rb +3 -3
- data/lib/smith/messaging/sender.rb +1 -1
- data/lib/smith/version.rb +1 -1
- metadata +2 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40e5fee7101d823bc930ce02397314c75eded2ac
|
4
|
+
data.tar.gz: 37d5cce672a20a742c7d777bc2baefbdd1ca34a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc19c7c816b2384c20812b0d7b968efe4fd0380fd4b92fcefeaa1787b66368f214db075a1501fede1dca3c6dd1226c718be07974f224693b0edeb4deaabbaad
|
7
|
+
data.tar.gz: 226384663b0b79f554e19812d6d0c5c06f7135f160ea56d31924c38c03388aca39a783554ecdd6b9fb35f94e133b6cc64f88bfd494a41119f5475c55b93693ea
|
data/lib/smith/bootstrap.rb
CHANGED
@@ -45,19 +45,11 @@ module Smith
|
|
45
45
|
|
46
46
|
def load_agent
|
47
47
|
path = agent_directories(@agent_name)
|
48
|
-
logger.info { "Loading #{@agent_name}" }
|
49
|
-
logger.debug { "Loading #{@agent_name} from: #{path}" }
|
48
|
+
logger.info { "Loading #{@agent_name} from: #{path}" }
|
50
49
|
add_agent_load_path(path)
|
51
50
|
load path
|
52
51
|
|
53
|
-
|
54
|
-
@agent = class_from_name(@agent_name).new(@agent_uuid)
|
55
|
-
rescue NameError => e
|
56
|
-
# TODO: include the class name from the path.
|
57
|
-
logger.fatal { "Cannot instantiate agent. File #{path} exists but doesn't contain the Class: #{@agent_name}." }
|
58
|
-
terminate!
|
59
|
-
false
|
60
|
-
end
|
52
|
+
@agent = class_from_name(@agent_name).new(@agent_uuid)
|
61
53
|
end
|
62
54
|
|
63
55
|
def start!
|
@@ -23,7 +23,7 @@ module Smith
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def options_spec
|
26
|
-
banner "
|
26
|
+
banner "Remove the named queue. Multiple queues can be given", "<queue[s]>"
|
27
27
|
|
28
28
|
opt :force, "force the removal even if there are messages on the queue", :short => :f
|
29
29
|
opt :ignore_errors, "ignore any errors.", :default => false
|
@@ -44,7 +44,7 @@ module Smith
|
|
44
44
|
log_error(channel, channel_close, &handler)
|
45
45
|
end
|
46
46
|
|
47
|
-
channel.direct("smith.#{name}", :passive => true) do |exchange|
|
47
|
+
channel.direct("#{Smith.config.smith.namespace}.#{name}", :passive => true) do |exchange|
|
48
48
|
exchange_options = (options[:force]) ? {} : {:if_unused => true}
|
49
49
|
exchange.delete(exchange_options) do |delete_ok|
|
50
50
|
blk.call(delete_ok)
|
@@ -67,7 +67,7 @@ module Smith
|
|
67
67
|
log_error(channel, channel_close, &handler)
|
68
68
|
end
|
69
69
|
|
70
|
-
channel.queue("smith.#{queue_name}", :passive => true) do |queue|
|
70
|
+
channel.queue("#{Smith.config.smith.namespace}.#{queue_name}", :passive => true) do |queue|
|
71
71
|
queue_options = (options[:force]) ? {} : {:if_unused => true, :if_empty => true}
|
72
72
|
queue.delete(queue_options) do |delete_ok|
|
73
73
|
blk.call(delete_ok)
|
@@ -76,7 +76,7 @@ module Smith
|
|
76
76
|
#### the proc from the @reply_container. ####
|
77
77
|
#### !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ####
|
78
78
|
@reply_container[message_id] = {:reply_proc => @reply_proc, :timeout => @timeout.clone.tap {|t| t.set_timeout(message_id) }}
|
79
|
-
_publish(payload, @options.publish(opts, {:reply_to => reply_queue.queue_name, :message_id => message_id}))
|
79
|
+
_publish(payload, @options.publish(opts, {:reply_to => reply_queue.queue_name, :message_id => message_id}), &blk)
|
80
80
|
end
|
81
81
|
else
|
82
82
|
_publish(payload, @options.publish(opts), &blk)
|
data/lib/smith/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Heycock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amqp
|
@@ -104,9 +104,6 @@ dependencies:
|
|
104
104
|
name: protobuf
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '3.0'
|
110
107
|
- - "~>"
|
111
108
|
- !ruby/object:Gem::Version
|
112
109
|
version: '3.4'
|
@@ -114,9 +111,6 @@ dependencies:
|
|
114
111
|
prerelease: false
|
115
112
|
version_requirements: !ruby/object:Gem::Requirement
|
116
113
|
requirements:
|
117
|
-
- - "~>"
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '3.0'
|
120
114
|
- - "~>"
|
121
115
|
- !ruby/object:Gem::Version
|
122
116
|
version: '3.4'
|