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 +1 -1
- data/fabric.gemspec +2 -2
- data/lib/fabric/account.rb +3 -1
- data/spec/spec_helper.rb +4 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
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.
|
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-
|
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}
|
data/lib/fabric/account.rb
CHANGED
@@ -23,7 +23,9 @@ class Account
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def add_to_groups
|
26
|
-
self.
|
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
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.
|
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-
|
12
|
+
date: 2010-04-14 00:00:00 +01:00
|
13
13
|
default_executable: fab
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|