right_agent 0.10.6 → 0.10.8
Sign up to get free protection for your applications and to get access to all the features.
data/lib/right_agent/agent.rb
CHANGED
@@ -489,7 +489,7 @@ module RightScale
|
|
489
489
|
request_count, request_age = @sender.terminate
|
490
490
|
Log.info("[stop] The following #{request_count} requests initiated as recently as #{request_age} " +
|
491
491
|
"seconds ago are being dropped:\n " + @sender.dump_requests.join("\n ")) if request_age
|
492
|
-
@broker.close
|
492
|
+
@broker.close { blk.call; EM.stop }
|
493
493
|
EM.stop unless blk
|
494
494
|
end
|
495
495
|
|
@@ -121,6 +121,17 @@ module RightScale
|
|
121
121
|
DEFAULT_POLICY_PERIOD
|
122
122
|
end
|
123
123
|
|
124
|
+
# Default server secret in case it is not provided by core.
|
125
|
+
DEFAULT_SERVER_SECRET = "1a7c8f89bb78fcf1b225324af0abc474d308a5e7f654080664231af3b268db1e"
|
126
|
+
|
127
|
+
# Default server secret in case it is not provided by core.
|
128
|
+
#
|
129
|
+
# === Return
|
130
|
+
# (String):: default server secret...
|
131
|
+
def self.default_server_secret
|
132
|
+
DEFAULT_SERVER_SECRET
|
133
|
+
end
|
134
|
+
|
124
135
|
# Initialize path to root directory of agent
|
125
136
|
#
|
126
137
|
# === Parameters
|
@@ -90,6 +90,9 @@ module RightScale
|
|
90
90
|
# (RunlistPolicy) The RightLink policy this bundle belongs to
|
91
91
|
attr_accessor :runlist_policy
|
92
92
|
|
93
|
+
# (String) The secret for any instance of the server that generated this bundle.
|
94
|
+
attr_accessor :server_secret
|
95
|
+
|
93
96
|
def initialize(*args)
|
94
97
|
@executables = args[0]
|
95
98
|
@cookbook_repositories = args[1] if args.size > 1
|
@@ -99,6 +102,7 @@ module RightScale
|
|
99
102
|
@repose_servers = args[5] if args.size > 5
|
100
103
|
@dev_cookbooks = args[6] if args.size > 6
|
101
104
|
@runlist_policy = args[7] if args.size > 7
|
105
|
+
@server_secret = args[8] if args.size > 8
|
102
106
|
end
|
103
107
|
|
104
108
|
# Array of serialized fields given to constructor
|
@@ -110,7 +114,8 @@ module RightScale
|
|
110
114
|
@cookbooks,
|
111
115
|
@repose_servers,
|
112
116
|
@dev_cookbooks,
|
113
|
-
@runlist_policy
|
117
|
+
@runlist_policy,
|
118
|
+
@server_secret ]
|
114
119
|
end
|
115
120
|
|
116
121
|
# Human readable representation
|
data/right_agent.gemspec
CHANGED
@@ -24,8 +24,8 @@ require 'rubygems'
|
|
24
24
|
|
25
25
|
Gem::Specification.new do |spec|
|
26
26
|
spec.name = 'right_agent'
|
27
|
-
spec.version = '0.10.
|
28
|
-
spec.date = '2012-05-
|
27
|
+
spec.version = '0.10.8'
|
28
|
+
spec.date = '2012-05-10'
|
29
29
|
spec.authors = ['Lee Kirchhoff', 'Raphael Simon', 'Tony Spataro']
|
30
30
|
spec.email = 'lee@rightscale.com'
|
31
31
|
spec.homepage = 'https://github.com/rightscale/right_agent'
|
@@ -27,8 +27,8 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'r
|
|
27
27
|
module RightScale
|
28
28
|
describe ExecutableBundle do
|
29
29
|
context 'serialized_members' do
|
30
|
-
it 'contains
|
31
|
-
ExecutableBundle.new.serialized_members.count.should ==
|
30
|
+
it 'contains all serialized elements' do
|
31
|
+
ExecutableBundle.new.serialized_members.count.should == 9
|
32
32
|
end
|
33
33
|
end
|
34
34
|
context 'dev_cookbooks' do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 39
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 10
|
9
|
-
-
|
10
|
-
version: 0.10.
|
9
|
+
- 8
|
10
|
+
version: 0.10.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lee Kirchhoff
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-05-
|
20
|
+
date: 2012-05-10 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: right_support
|