auger 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/aug +7 -4
- data/lib/auger.rb +6 -0
- data/lib/{plugins → auger/plugin}/dns.rb +0 -0
- data/lib/{plugins → auger/plugin}/http.rb +0 -0
- data/lib/{plugins → auger/plugin}/redis.rb +0 -0
- data/lib/{plugins → auger/plugin}/socket.rb +0 -0
- data/lib/{plugins → auger/plugin}/telnet.rb +0 -0
- data/lib/auger/project.rb +0 -1
- metadata +7 -7
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
data/bin/aug
CHANGED
@@ -35,6 +35,10 @@ optparse = OptionParser.new do |opts|
|
|
35
35
|
exit
|
36
36
|
end
|
37
37
|
|
38
|
+
opts.on('-s', '--server REGEX', 'Limit to server names matching regex.') do |s|
|
39
|
+
options[:server] = s
|
40
|
+
end
|
41
|
+
|
38
42
|
opts.on('-v', '--version', 'Display version and exit.') do
|
39
43
|
puts Auger::VERSION.color(:green)
|
40
44
|
exit
|
@@ -42,9 +46,6 @@ optparse = OptionParser.new do |opts|
|
|
42
46
|
end
|
43
47
|
optparse.parse!
|
44
48
|
|
45
|
-
## load plugins
|
46
|
-
Dir["#{AUGER_DIR}/lib/plugins/*.rb"].each {|file| require file }
|
47
|
-
|
48
49
|
## cfg file can be e.g. 'imagine' or relative path
|
49
50
|
cfg =
|
50
51
|
if File.exists?(ARGV[0])
|
@@ -87,7 +88,9 @@ Auger::Config.load(cfg).projects.each do |project|
|
|
87
88
|
|
88
89
|
## run tests
|
89
90
|
project.connections.each do |connection|
|
90
|
-
project.servers(connection.roles)
|
91
|
+
servers = project.servers(connection.roles)
|
92
|
+
servers.select! { |server| server.name.match(options[:server]) } if options[:server]
|
93
|
+
servers.map do |server|
|
91
94
|
threads[server.name] << Thread.new do
|
92
95
|
conn = connection.do_open(server)
|
93
96
|
connection.requests.map do |request|
|
data/lib/auger.rb
CHANGED
@@ -7,6 +7,12 @@ require 'auger/request'
|
|
7
7
|
require 'auger/test'
|
8
8
|
require 'auger/result'
|
9
9
|
|
10
|
+
require 'auger/plugin/dns.rb'
|
11
|
+
require 'auger/plugin/http.rb'
|
12
|
+
require 'auger/plugin/redis.rb'
|
13
|
+
require 'auger/plugin/socket.rb'
|
14
|
+
require 'auger/plugin/telnet.rb'
|
15
|
+
|
10
16
|
module Auger
|
11
17
|
##
|
12
18
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/auger/project.rb
CHANGED
@@ -23,7 +23,6 @@ module Auger
|
|
23
23
|
def role(name, *args)
|
24
24
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
25
25
|
servers = args.map { |arg| HostRange.parse(arg) }.flatten
|
26
|
-
#servers.each { |server| roles[name] << server }
|
27
26
|
servers.each { |server| roles[name] << Auger::Server.new(server, options) }
|
28
27
|
end
|
29
28
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-06-
|
13
|
+
date: 2012-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -116,17 +116,17 @@ files:
|
|
116
116
|
- lib/auger.rb
|
117
117
|
- lib/auger/config.rb
|
118
118
|
- lib/auger/connection.rb
|
119
|
+
- lib/auger/plugin/dns.rb
|
120
|
+
- lib/auger/plugin/http.rb
|
121
|
+
- lib/auger/plugin/redis.rb
|
122
|
+
- lib/auger/plugin/socket.rb
|
123
|
+
- lib/auger/plugin/telnet.rb
|
119
124
|
- lib/auger/project.rb
|
120
125
|
- lib/auger/request.rb
|
121
126
|
- lib/auger/result.rb
|
122
127
|
- lib/auger/server.rb
|
123
128
|
- lib/auger/test.rb
|
124
129
|
- lib/auger/version.rb
|
125
|
-
- lib/plugins/dns.rb
|
126
|
-
- lib/plugins/http.rb
|
127
|
-
- lib/plugins/redis.rb
|
128
|
-
- lib/plugins/socket.rb
|
129
|
-
- lib/plugins/telnet.rb
|
130
130
|
homepage: https://rubygems.org/gems/auger
|
131
131
|
licenses: []
|
132
132
|
post_install_message:
|