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.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/fab +1 -0
  3. data/fabric.gemspec +1 -1
  4. data/lib/fabric/server.rb +2 -5
  5. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/bin/fab CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  $:.unshift(File.dirname(__FILE__) + '/../lib/')
4
+ require 'rubygems'
4
5
  require 'fabric'
5
6
 
6
7
  exit Fabric.run!(ARGV)
data/fabric.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fabric}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sam Phillips"]
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Phillips