fabric 0.3.2 → 0.3.3
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.
- data/VERSION +1 -1
- data/bin/fab +1 -0
- data/fabric.gemspec +1 -1
- data/lib/fabric/server.rb +2 -5
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.3
|
data/bin/fab
CHANGED
data/fabric.gemspec
CHANGED
data/lib/fabric/server.rb
CHANGED
|
@@ -64,7 +64,6 @@ class Server
|
|
|
64
64
|
|
|
65
65
|
def account_exists_for?(user)
|
|
66
66
|
self.execute_command("id #{user.name}")
|
|
67
|
-
|
|
68
67
|
if self.output =~ /uid=/
|
|
69
68
|
true
|
|
70
69
|
else
|
|
@@ -102,10 +101,8 @@ class Server
|
|
|
102
101
|
|
|
103
102
|
def accounts_to_remove
|
|
104
103
|
narrate "Checking for dead accounts"
|
|
105
|
-
users = User.all
|
|
106
|
-
|
|
107
|
-
users.reject do |user|
|
|
108
|
-
self.should_account_exist_for?(user) and self.account_exists_for?(user)
|
|
104
|
+
users = User.all.select do |user|
|
|
105
|
+
self.account_exists_for?(user) and not self.should_account_exist_for?(user)
|
|
109
106
|
end
|
|
110
107
|
end
|
|
111
108
|
|