vlad-status 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -1
- data/lib/vlad/status.rb +7 -11
- data/test/test_vlad_status.rb +3 -2
- metadata +3 -3
data/Rakefile
CHANGED
data/lib/vlad/status.rb
CHANGED
@@ -2,7 +2,7 @@ require 'vlad'
|
|
2
2
|
|
3
3
|
module Vlad
|
4
4
|
module Status
|
5
|
-
VERSION = '0.0.
|
5
|
+
VERSION = '0.0.2' #:nodoc:
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
@@ -29,18 +29,14 @@ namespace :vlad do
|
|
29
29
|
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
run status_cmd(web.to_s)
|
36
|
-
end
|
32
|
+
desc "Status of web servers."
|
33
|
+
remote_task :status_web do
|
34
|
+
run status_cmd(web.to_s)
|
37
35
|
end
|
38
36
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
run status_cmd(app.to_s)
|
43
|
-
end
|
37
|
+
desc "Status of app servers."
|
38
|
+
remote_task :status_app do
|
39
|
+
run status_cmd(app.to_s)
|
44
40
|
end
|
45
41
|
|
46
42
|
end
|
data/test/test_vlad_status.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
require "test/unit"
|
2
|
-
require "vlad/
|
2
|
+
require "vlad/status"
|
3
3
|
|
4
4
|
class TestVladPush < Test::Unit::TestCase
|
5
5
|
def test_sanity
|
6
|
-
|
6
|
+
assert system("rake -T vlad")
|
7
|
+
assert system("rake -T vald | grep status")
|
7
8
|
end
|
8
9
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vlad-status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua P. Mervine
|