rudy 0.9.8.016 → 0.9.8.017
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +7 -0
- data/bin/rudy +1 -1
- data/lib/rudy/aws.rb +1 -1
- data/lib/rudy/routines/handlers/user.rb +8 -2
- data/lib/rudy.rb +1 -1
- data/rudy.gemspec +1 -1
- metadata +4 -4
data/CHANGES.txt
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
RUDY, CHANGES
|
2
2
|
|
3
|
+
|
4
|
+
#### 0.9.8.017 (2010-11-11) #######################
|
5
|
+
|
6
|
+
* FIXED: adduser handler checks for root before using sudo
|
7
|
+
* FIXED: Added us-west-1 and ap-southeast-1 regions to Rudy::AWS::VALID_REGIONS
|
8
|
+
|
9
|
+
|
3
10
|
#### 0.9.8.016 (2010-10-26) #######################
|
4
11
|
|
5
12
|
NOTE: If you're using Ubuntu you'll need to update your
|
data/bin/rudy
CHANGED
@@ -34,7 +34,7 @@ class RudyCLI < Rudy::CLI::Base
|
|
34
34
|
|
35
35
|
global :e, :environment, String, "Connect to the specified environment (e.g. #{Rudy::DEFAULT_ENVIRONMENT})"
|
36
36
|
global :r, :role, String, "Connect to a machine with the specified role (e.g. #{Rudy::DEFAULT_ROLE})"
|
37
|
-
global :p, :position, String, "Position
|
37
|
+
global :p, :position, String, "Position of the machine in its group"
|
38
38
|
global :b, :bucket, String, "An S3 bucket name (used when creating images)"
|
39
39
|
global :t, :testrun, "Test run. Don't execute action (PARTIALLY SUPPORTED)."
|
40
40
|
global :P, :parallel, "Execute remote commands in parallel (PARTIALLY SUPPORTED)."
|
data/lib/rudy/aws.rb
CHANGED
@@ -8,7 +8,7 @@ module Rudy
|
|
8
8
|
extend self
|
9
9
|
|
10
10
|
unless defined?(Rudy::AWS::VALID_REGIONS)
|
11
|
-
VALID_REGIONS = [:'eu-west-1', :'us-east-1'].freeze
|
11
|
+
VALID_REGIONS = [:'eu-west-1', :'us-east-1', :'us-west-1', :'ap-southeast-1'].freeze
|
12
12
|
end
|
13
13
|
|
14
14
|
def valid_region?(r); VALID_REGIONS.member?(r.to_sym || ''); end
|
@@ -32,9 +32,15 @@ module Rudy; module Routines; module Handlers;
|
|
32
32
|
# adduser can prompt for info which we don't want.
|
33
33
|
# useradd does not prompt (on Debian/Ubuntu at least).
|
34
34
|
# We need to specify bash b/c the default is /bin/sh
|
35
|
-
|
36
|
-
|
35
|
+
|
36
|
+
if robj.user.to_s == 'root'
|
37
|
+
robj.useradd args
|
38
|
+
else
|
39
|
+
robj.sudo do
|
40
|
+
useradd args
|
41
|
+
end
|
37
42
|
end
|
43
|
+
|
38
44
|
end
|
39
45
|
|
40
46
|
def authorize(user, robj)
|
data/lib/rudy.rb
CHANGED
data/rudy.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rudy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 8
|
10
|
-
-
|
11
|
-
version: 0.9.8.
|
10
|
+
- 17
|
11
|
+
version: 0.9.8.017
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Delano Mandelbaum
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-11 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|