boreman 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/boreman/version.rb +1 -1
- data/lib/boreman.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf4a232dfb45d97be841b7ebd093004bbb5c7df4
|
4
|
+
data.tar.gz: f3039e84b9a5f63a4d9e048bbe2e2a32066fd62c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 187c66a617a8f61a4d0543e740be9814f5f899567a8eb9d8c5b8ce0e9747f958c50db79c80d90c3bdd9a874eb580d1e575154cf418e4d8b4313feda3fe6961e2
|
7
|
+
data.tar.gz: b1b5a2fda3ab2cb33d84e08a277131abcafe029f8fb31e9ccee9cf105f6f8a27f0dea6e58eb90b2dde7ff387686c00266222d20a127695949d2e9ee5093db469
|
data/lib/boreman/version.rb
CHANGED
data/lib/boreman.rb
CHANGED
@@ -74,6 +74,16 @@ module Boreman
|
|
74
74
|
# Actions
|
75
75
|
#
|
76
76
|
|
77
|
+
def self.status(selector, opts)
|
78
|
+
if is_running? selector
|
79
|
+
puts "#{selector} is running, pid #{pid(selector)}"
|
80
|
+
elsif should_be_running? selector
|
81
|
+
puts "#{selector} should be running, but isn't #{pid(selector)}"
|
82
|
+
else
|
83
|
+
puts "#{selector} is stopped"
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
77
87
|
def self.start(selector, opts)
|
78
88
|
if should_be_running?(selector)
|
79
89
|
puts "#{selector} should already be running, deal with that first"
|