fabric 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
data/fabric.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fabric}
8
- s.version = "0.3.4"
8
+ s.version = "0.3.5"
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"]
12
- s.date = %q{2010-01-30}
12
+ s.date = %q{2010-02-04}
13
13
  s.default_executable = %q{fab}
14
14
  s.description = %q{Fabric is a small ruby app to perform tasks on servers via SSH. Built around net/ssh and taking heavy inspiration from Capistrano, it allows you to create policies for server management and perform sysadmin tasks without the need for a process/daemon/dependency or even ruby being installed on the remote server.}
15
15
  s.email = %q{sam.phillips@setfiremedia.com}
@@ -49,6 +49,7 @@ Gem::Specification.new do |s|
49
49
  "spec/classes/user_spec.rb",
50
50
  "spec/spec.opts",
51
51
  "spec/spec_helper.rb",
52
+ "spec/support/mock_key_repo/about",
52
53
  "tasks/features.rake",
53
54
  "tasks/jeweler.rake",
54
55
  "tasks/rdoc.rake",
data/lib/fabric/server.rb CHANGED
@@ -59,7 +59,11 @@ class Server
59
59
  end
60
60
 
61
61
  def should_account_exist_for?(user)
62
- self.accounts.include?(user)
62
+ self.accounts.each do |account|
63
+ return true if account.user == user
64
+ end
65
+
66
+ false
63
67
  end
64
68
 
65
69
  def account_exists_for?(user)
@@ -1,5 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper.rb'
2
2
 
3
+ require 'ruby-debug'
4
+
3
5
  describe Server do
4
6
  before(:each) do
5
7
  @server = Server.create(:host => TEST_SERVER)
@@ -92,6 +94,7 @@ describe Server do
92
94
  end
93
95
 
94
96
  it "should identify accounts that require removing" do
97
+ debugger
95
98
  @server.accounts_to_remove.should == Array(@doomed_user)
96
99
  end
97
100
 
@@ -0,0 +1 @@
1
+ placeholder file to allow directory to be committed.
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.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Phillips
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-30 00:00:00 +00:00
12
+ date: 2010-02-04 00:00:00 +00:00
13
13
  default_executable: fab
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -142,6 +142,7 @@ files:
142
142
  - spec/classes/user_spec.rb
143
143
  - spec/spec.opts
144
144
  - spec/spec_helper.rb
145
+ - spec/support/mock_key_repo/about
145
146
  - tasks/features.rake
146
147
  - tasks/jeweler.rake
147
148
  - tasks/rdoc.rake