fabric 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
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.4.2"
8
+ s.version = "0.4.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"]
12
- s.date = %q{2010-03-29}
12
+ s.date = %q{2010-04-14}
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}
@@ -23,7 +23,9 @@ class Account
23
23
  end
24
24
 
25
25
  def add_to_groups
26
- self.server.execute_command("sudo /usr/sbin/usermod -a -G #{self.user.groups.collect(&:name).join(',')} #{self.user.name}")
26
+ self.user.groups.each do |group|
27
+ self.server.execute_command("sudo /usr/sbin/usermod -a -G#{group.name} #{self.user.name}")
28
+ end
27
29
  end
28
30
 
29
31
  protected
data/spec/spec_helper.rb CHANGED
@@ -3,6 +3,10 @@ $:.unshift File.dirname(__FILE__) + '/../lib'
3
3
  require 'fabric'
4
4
  require 'fabric-test'
5
5
 
6
+ module Fabric
7
+ # @@options[:narrate] = true
8
+ end
9
+
6
10
  begin
7
11
  require 'database_cleaner'
8
12
  rescue LoadError
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.4.2
4
+ version: 0.4.3
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-03-29 00:00:00 +01:00
12
+ date: 2010-04-14 00:00:00 +01:00
13
13
  default_executable: fab
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency