bixby-agent 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.testguardrc +1 -0
- data/.travis.yml +25 -0
- data/Gemfile +61 -0
- data/Gemfile.lock +237 -0
- data/LICENSE +21 -0
- data/Rakefile +13 -0
- data/VERSION +1 -0
- data/bin/bixby-agent +15 -0
- data/bixby-agent.gemspec +186 -0
- data/etc/bixby-god.initd +70 -0
- data/etc/bixby.god +20 -0
- data/etc/god.d/bixby-agent.god +71 -0
- data/lib/bixby-agent.rb +16 -0
- data/lib/bixby-agent/agent.rb +98 -0
- data/lib/bixby-agent/agent/config.rb +109 -0
- data/lib/bixby-agent/agent/crypto.rb +73 -0
- data/lib/bixby-agent/agent/handshake.rb +81 -0
- data/lib/bixby-agent/agent/shell_exec.rb +111 -0
- data/lib/bixby-agent/agent_handler.rb +38 -0
- data/lib/bixby-agent/app.rb +208 -0
- data/lib/bixby-agent/app/cli.rb +112 -0
- data/lib/bixby-agent/config_exception.rb +5 -0
- data/lib/bixby-agent/help/system_time.rb +41 -0
- data/lib/bixby-agent/version.rb +8 -0
- data/lib/bixby-agent/websocket/client.rb +186 -0
- data/tasks/cane.rake +14 -0
- data/tasks/coverage.rake +2 -0
- data/tasks/coveralls.rake +11 -0
- data/tasks/jeweler.rake +21 -0
- data/tasks/test.rake +5 -0
- data/tasks/yard.rake +6 -0
- data/test/base.rb +92 -0
- data/test/helper.rb +29 -0
- data/test/stub_eventmachine.rb +38 -0
- data/test/support/root_dir/bixby.yml +8 -0
- data/test/support/root_dir/id_rsa +27 -0
- data/test/support/root_dir/server +27 -0
- data/test/support/root_dir/server.pub +9 -0
- data/test/support/test_bundle/bin/cat +2 -0
- data/test/support/test_bundle/bin/echo +2 -0
- data/test/support/test_bundle/digest +17 -0
- data/test/support/test_bundle/manifest.json +0 -0
- data/test/test_agent.rb +110 -0
- data/test/test_agent_exec.rb +53 -0
- data/test/test_agent_handler.rb +72 -0
- data/test/test_app.rb +138 -0
- data/test/test_bixby_common.rb +18 -0
- data/test/test_crypto.rb +78 -0
- data/test/websocket/test_client.rb +110 -0
- metadata +557 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
module Bixby
|
4
|
+
module Test
|
5
|
+
|
6
|
+
class BixbyCommon < TestCase
|
7
|
+
|
8
|
+
def test_common_loaded
|
9
|
+
assert_equal(JsonRequest, JsonRequest.new(nil, nil).class)
|
10
|
+
assert_equal(BundleNotFound, BundleNotFound.new.class)
|
11
|
+
assert_equal(CommandNotFound, CommandNotFound.new.class)
|
12
|
+
assert_equal(CommandSpec, CommandSpec.new.class)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
data/test/test_crypto.rb
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
|
2
|
+
require 'helper'
|
3
|
+
|
4
|
+
module Bixby
|
5
|
+
module Test
|
6
|
+
|
7
|
+
class Crypto < TestCase
|
8
|
+
|
9
|
+
def test_keygen
|
10
|
+
create_new_agent()
|
11
|
+
|
12
|
+
assert File.exists? @agent.private_key_file
|
13
|
+
assert @agent.private_key
|
14
|
+
assert @agent.public_key
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_server_key
|
18
|
+
setup_existing_agent()
|
19
|
+
|
20
|
+
assert @agent.have_server_key?
|
21
|
+
assert @agent.server_key
|
22
|
+
assert @agent.encrypt_for_server("foobar")
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_decrypt
|
26
|
+
setup_existing_agent()
|
27
|
+
input = encrypt_for_agent("foobar")
|
28
|
+
assert_equal "foobar", @agent.decrypt_from_server(input)
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_decrypt_invalid_hmac
|
32
|
+
setup_existing_agent()
|
33
|
+
input = encrypt_for_agent("foobar")
|
34
|
+
|
35
|
+
# mangle the hmac
|
36
|
+
s = StringIO.new(input)
|
37
|
+
test = s.readline
|
38
|
+
test += "32" + s.readline
|
39
|
+
test += s.read
|
40
|
+
|
41
|
+
assert_throws Bixby::EncryptionError, "hmac verification failed" do
|
42
|
+
@agent.decrypt_from_server(test)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# This test is the same as Bixby::Test::Provisioning.test_list_files except
|
47
|
+
# that crypto routines are enabled.
|
48
|
+
def test_api_call_with_crypto
|
49
|
+
|
50
|
+
setup_test_bundle("vendor", "system/provisioning", "get_bundle.rb")
|
51
|
+
begin
|
52
|
+
require @c.command_file
|
53
|
+
rescue Bixby::ConfigException
|
54
|
+
rescue SystemExit
|
55
|
+
# bundle is executed by default so we can ignore an expected exit
|
56
|
+
end
|
57
|
+
ENV["BIXBY_NOCRYPTO"] = "0"
|
58
|
+
setup_existing_agent()
|
59
|
+
|
60
|
+
stub_request(:post, @api_url).with { |req|
|
61
|
+
req.headers.include?("Authorization") &&
|
62
|
+
req.headers.include?("Date") &&
|
63
|
+
req.headers.include?("Content-Md5") &&
|
64
|
+
req.body =~ /operation/ && req.body =~ /test_bundle/
|
65
|
+
}.to_return(:status => 200, :body => JsonResponse.new(200, nil, {:foo => "bar"}).to_json)
|
66
|
+
Agent.stubs(:create).returns(@agent)
|
67
|
+
|
68
|
+
cmd = CommandSpec.new({ :repo => "support", :bundle => "test_bundle", :command => "echo" })
|
69
|
+
ret = Bixby::Repository.list_files(cmd)
|
70
|
+
assert ret
|
71
|
+
assert_kind_of Hash, ret
|
72
|
+
assert_equal "bar", ret["foo"]
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
|
2
|
+
require 'helper'
|
3
|
+
require 'stub_eventmachine'
|
4
|
+
|
5
|
+
module Bixby
|
6
|
+
|
7
|
+
module WebSocket
|
8
|
+
class APIChannel < Bixby::APIChannel
|
9
|
+
attr_reader :responses # expose for testing
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Test
|
14
|
+
|
15
|
+
class TestHandler < Bixby::RpcHandler
|
16
|
+
end
|
17
|
+
|
18
|
+
module WebSocket
|
19
|
+
class TestClient < TestCase
|
20
|
+
|
21
|
+
class FakeClient
|
22
|
+
attr_reader :types
|
23
|
+
def initialize
|
24
|
+
@types = {}
|
25
|
+
end
|
26
|
+
def on(type, &block)
|
27
|
+
@types[type] = block
|
28
|
+
end
|
29
|
+
def trigger(type, event)
|
30
|
+
@types[type].call(event)
|
31
|
+
end
|
32
|
+
def close
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def setup
|
37
|
+
super
|
38
|
+
EM.stub!
|
39
|
+
setup_existing_agent()
|
40
|
+
end
|
41
|
+
|
42
|
+
def teardown
|
43
|
+
EM.disable_stub!
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_connect_and_reconnect
|
47
|
+
|
48
|
+
@fake_ws = FakeClient.new
|
49
|
+
Faye::WebSocket::Client.expects(:new).with("http://localhost", nil, :ping => 55).returns(@fake_ws).times(2)
|
50
|
+
@client = Bixby::WebSocket::Client.new("http://localhost", TestHandler)
|
51
|
+
@client.start
|
52
|
+
|
53
|
+
assert @fake_ws.types[:open]
|
54
|
+
assert @fake_ws.types[:message]
|
55
|
+
assert @fake_ws.types[:close]
|
56
|
+
|
57
|
+
# connect
|
58
|
+
@fake_ws.expects(:send).with{ |r| c = Bixby::WebSocket::Message.from_wire(r); c.type == "connect" }.times(2)
|
59
|
+
@fake_ws.trigger(:open, nil)
|
60
|
+
@client.api.responses.values.first.response = JsonResponse.new("success")
|
61
|
+
assert @client.api.connected?
|
62
|
+
|
63
|
+
# reconnect
|
64
|
+
@fake_ws.trigger(:close, nil)
|
65
|
+
refute @client.api.connected?
|
66
|
+
|
67
|
+
# stop w/o backoff/reconnect
|
68
|
+
@fake_ws.trigger(:open, nil)
|
69
|
+
@client.api.responses.values.first.response = JsonResponse.new("success")
|
70
|
+
assert @client.api.connected?
|
71
|
+
|
72
|
+
EM.expects(:stop_event_loop).once()
|
73
|
+
@client.stop()
|
74
|
+
@fake_ws.trigger(:close, nil)
|
75
|
+
refute @client.api.connected?
|
76
|
+
end
|
77
|
+
|
78
|
+
def test_message
|
79
|
+
@fake_ws = FakeClient.new
|
80
|
+
Faye::WebSocket::Client.expects(:new).with("http://localhost", nil, :ping => 55).returns(@fake_ws)
|
81
|
+
@client = Bixby::WebSocket::Client.new("http://localhost", TestHandler)
|
82
|
+
@client.start
|
83
|
+
|
84
|
+
@client.api.expects(:message).once.with("foobar")
|
85
|
+
@fake_ws.trigger(:message, "foobar")
|
86
|
+
end
|
87
|
+
|
88
|
+
def test_auth_fails_causes_exit
|
89
|
+
Logging.logger[Bixby::WebSocket::Client].level = :error
|
90
|
+
@fake_ws = FakeClient.new
|
91
|
+
Faye::WebSocket::Client.expects(:new).with("http://localhost", nil, :ping => 55).returns(@fake_ws)
|
92
|
+
@client = Bixby::WebSocket::Client.new("http://localhost", TestHandler)
|
93
|
+
@client.start
|
94
|
+
|
95
|
+
@fake_ws.expects(:send).with{ |r| c = Bixby::WebSocket::Message.from_wire(r); c.type == "connect" }
|
96
|
+
@fake_ws.trigger(:open, nil)
|
97
|
+
|
98
|
+
stub_request(:get, "http://google.com/").to_return(:status => 200, :body => "", :headers => {"Date" => (Time.new+1).utc.to_s})
|
99
|
+
|
100
|
+
assert_output(/ntpdate.*exiting since we failed to auth/m) do
|
101
|
+
assert_throws(SystemExit) do
|
102
|
+
@client.api.responses.values.first.response = JsonResponse.new("fail", "request is more than 900 seconds old", nil, 401)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
metadata
ADDED
@@ -0,0 +1,557 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bixby-agent
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chetan Sarva
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bixby-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bixby-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bixby-auth
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: god
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: daemons
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: multi_json
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: oj
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: httpi
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: curb
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: facter
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.0.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.0.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: mixlib-cli
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: mixlib-shellout
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: highline
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: uuidtools
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: logging
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: yard
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0.7'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0.7'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: pry
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: awesome_print
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: colorize
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: growl
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: hirb
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: test_guard
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - ">="
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '0'
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: cane
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ">="
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: rake
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ">="
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0'
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
349
|
+
- !ruby/object:Gem::Dependency
|
350
|
+
name: jeweler
|
351
|
+
requirement: !ruby/object:Gem::Requirement
|
352
|
+
requirements:
|
353
|
+
- - ">="
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: '0'
|
356
|
+
type: :development
|
357
|
+
prerelease: false
|
358
|
+
version_requirements: !ruby/object:Gem::Requirement
|
359
|
+
requirements:
|
360
|
+
- - ">="
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: '0'
|
363
|
+
- !ruby/object:Gem::Dependency
|
364
|
+
name: webmock
|
365
|
+
requirement: !ruby/object:Gem::Requirement
|
366
|
+
requirements:
|
367
|
+
- - ">="
|
368
|
+
- !ruby/object:Gem::Version
|
369
|
+
version: '0'
|
370
|
+
type: :development
|
371
|
+
prerelease: false
|
372
|
+
version_requirements: !ruby/object:Gem::Requirement
|
373
|
+
requirements:
|
374
|
+
- - ">="
|
375
|
+
- !ruby/object:Gem::Version
|
376
|
+
version: '0'
|
377
|
+
- !ruby/object:Gem::Dependency
|
378
|
+
name: mocha
|
379
|
+
requirement: !ruby/object:Gem::Requirement
|
380
|
+
requirements:
|
381
|
+
- - ">="
|
382
|
+
- !ruby/object:Gem::Version
|
383
|
+
version: '0'
|
384
|
+
type: :development
|
385
|
+
prerelease: false
|
386
|
+
version_requirements: !ruby/object:Gem::Requirement
|
387
|
+
requirements:
|
388
|
+
- - ">="
|
389
|
+
- !ruby/object:Gem::Version
|
390
|
+
version: '0'
|
391
|
+
- !ruby/object:Gem::Dependency
|
392
|
+
name: simplecov
|
393
|
+
requirement: !ruby/object:Gem::Requirement
|
394
|
+
requirements:
|
395
|
+
- - ">="
|
396
|
+
- !ruby/object:Gem::Version
|
397
|
+
version: '0'
|
398
|
+
type: :development
|
399
|
+
prerelease: false
|
400
|
+
version_requirements: !ruby/object:Gem::Requirement
|
401
|
+
requirements:
|
402
|
+
- - ">="
|
403
|
+
- !ruby/object:Gem::Version
|
404
|
+
version: '0'
|
405
|
+
- !ruby/object:Gem::Dependency
|
406
|
+
name: coveralls
|
407
|
+
requirement: !ruby/object:Gem::Requirement
|
408
|
+
requirements:
|
409
|
+
- - ">="
|
410
|
+
- !ruby/object:Gem::Version
|
411
|
+
version: '0'
|
412
|
+
type: :development
|
413
|
+
prerelease: false
|
414
|
+
version_requirements: !ruby/object:Gem::Requirement
|
415
|
+
requirements:
|
416
|
+
- - ">="
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
version: '0'
|
419
|
+
- !ruby/object:Gem::Dependency
|
420
|
+
name: micron
|
421
|
+
requirement: !ruby/object:Gem::Requirement
|
422
|
+
requirements:
|
423
|
+
- - ">="
|
424
|
+
- !ruby/object:Gem::Version
|
425
|
+
version: '0'
|
426
|
+
type: :development
|
427
|
+
prerelease: false
|
428
|
+
version_requirements: !ruby/object:Gem::Requirement
|
429
|
+
requirements:
|
430
|
+
- - ">="
|
431
|
+
- !ruby/object:Gem::Version
|
432
|
+
version: '0'
|
433
|
+
- !ruby/object:Gem::Dependency
|
434
|
+
name: rb-inotify
|
435
|
+
requirement: !ruby/object:Gem::Requirement
|
436
|
+
requirements:
|
437
|
+
- - ">="
|
438
|
+
- !ruby/object:Gem::Version
|
439
|
+
version: '0'
|
440
|
+
type: :development
|
441
|
+
prerelease: false
|
442
|
+
version_requirements: !ruby/object:Gem::Requirement
|
443
|
+
requirements:
|
444
|
+
- - ">="
|
445
|
+
- !ruby/object:Gem::Version
|
446
|
+
version: '0'
|
447
|
+
- !ruby/object:Gem::Dependency
|
448
|
+
name: rb-fsevent
|
449
|
+
requirement: !ruby/object:Gem::Requirement
|
450
|
+
requirements:
|
451
|
+
- - ">="
|
452
|
+
- !ruby/object:Gem::Version
|
453
|
+
version: '0'
|
454
|
+
type: :development
|
455
|
+
prerelease: false
|
456
|
+
version_requirements: !ruby/object:Gem::Requirement
|
457
|
+
requirements:
|
458
|
+
- - ">="
|
459
|
+
- !ruby/object:Gem::Version
|
460
|
+
version: '0'
|
461
|
+
- !ruby/object:Gem::Dependency
|
462
|
+
name: rb-fchange
|
463
|
+
requirement: !ruby/object:Gem::Requirement
|
464
|
+
requirements:
|
465
|
+
- - ">="
|
466
|
+
- !ruby/object:Gem::Version
|
467
|
+
version: '0'
|
468
|
+
type: :development
|
469
|
+
prerelease: false
|
470
|
+
version_requirements: !ruby/object:Gem::Requirement
|
471
|
+
requirements:
|
472
|
+
- - ">="
|
473
|
+
- !ruby/object:Gem::Version
|
474
|
+
version: '0'
|
475
|
+
description: Bixby Agent
|
476
|
+
email: chetan@pixelcop.net
|
477
|
+
executables:
|
478
|
+
- bixby-agent
|
479
|
+
extensions: []
|
480
|
+
extra_rdoc_files:
|
481
|
+
- LICENSE
|
482
|
+
files:
|
483
|
+
- ".document"
|
484
|
+
- ".testguardrc"
|
485
|
+
- ".travis.yml"
|
486
|
+
- Gemfile
|
487
|
+
- Gemfile.lock
|
488
|
+
- LICENSE
|
489
|
+
- Rakefile
|
490
|
+
- VERSION
|
491
|
+
- bin/bixby-agent
|
492
|
+
- bixby-agent.gemspec
|
493
|
+
- etc/bixby-god.initd
|
494
|
+
- etc/bixby.god
|
495
|
+
- etc/god.d/bixby-agent.god
|
496
|
+
- lib/bixby-agent.rb
|
497
|
+
- lib/bixby-agent/agent.rb
|
498
|
+
- lib/bixby-agent/agent/config.rb
|
499
|
+
- lib/bixby-agent/agent/crypto.rb
|
500
|
+
- lib/bixby-agent/agent/handshake.rb
|
501
|
+
- lib/bixby-agent/agent/shell_exec.rb
|
502
|
+
- lib/bixby-agent/agent_handler.rb
|
503
|
+
- lib/bixby-agent/app.rb
|
504
|
+
- lib/bixby-agent/app/cli.rb
|
505
|
+
- lib/bixby-agent/config_exception.rb
|
506
|
+
- lib/bixby-agent/help/system_time.rb
|
507
|
+
- lib/bixby-agent/version.rb
|
508
|
+
- lib/bixby-agent/websocket/client.rb
|
509
|
+
- tasks/cane.rake
|
510
|
+
- tasks/coverage.rake
|
511
|
+
- tasks/coveralls.rake
|
512
|
+
- tasks/jeweler.rake
|
513
|
+
- tasks/test.rake
|
514
|
+
- tasks/yard.rake
|
515
|
+
- test/base.rb
|
516
|
+
- test/helper.rb
|
517
|
+
- test/stub_eventmachine.rb
|
518
|
+
- test/support/root_dir/bixby.yml
|
519
|
+
- test/support/root_dir/id_rsa
|
520
|
+
- test/support/root_dir/server
|
521
|
+
- test/support/root_dir/server.pub
|
522
|
+
- test/support/test_bundle/bin/cat
|
523
|
+
- test/support/test_bundle/bin/echo
|
524
|
+
- test/support/test_bundle/digest
|
525
|
+
- test/support/test_bundle/manifest.json
|
526
|
+
- test/test_agent.rb
|
527
|
+
- test/test_agent_exec.rb
|
528
|
+
- test/test_agent_handler.rb
|
529
|
+
- test/test_app.rb
|
530
|
+
- test/test_bixby_common.rb
|
531
|
+
- test/test_crypto.rb
|
532
|
+
- test/websocket/test_client.rb
|
533
|
+
homepage: http://github.com/chetan/bixby-agent
|
534
|
+
licenses:
|
535
|
+
- MIT
|
536
|
+
metadata: {}
|
537
|
+
post_install_message:
|
538
|
+
rdoc_options: []
|
539
|
+
require_paths:
|
540
|
+
- lib
|
541
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
542
|
+
requirements:
|
543
|
+
- - ">="
|
544
|
+
- !ruby/object:Gem::Version
|
545
|
+
version: '0'
|
546
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
547
|
+
requirements:
|
548
|
+
- - ">="
|
549
|
+
- !ruby/object:Gem::Version
|
550
|
+
version: '0'
|
551
|
+
requirements: []
|
552
|
+
rubyforge_project:
|
553
|
+
rubygems_version: 2.4.2
|
554
|
+
signing_key:
|
555
|
+
specification_version: 4
|
556
|
+
summary: Bixby Agent
|
557
|
+
test_files: []
|