rudy 0.9.8.016 → 0.9.8.017

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.
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 in the machine in its group"
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
- robj.sudo do
36
- useradd args
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
@@ -44,7 +44,7 @@ module Rudy
44
44
  MAJOR = 0.freeze
45
45
  MINOR = 9.freeze
46
46
  TINY = 8.freeze
47
- PATCH = '016'.freeze
47
+ PATCH = '017'.freeze
48
48
  end
49
49
  def self.to_s; [MAJOR, MINOR, TINY, PATCH].join('.'); end
50
50
  def self.to_f; self.to_s.to_f; end
data/rudy.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "rudy"
3
3
  s.rubyforge_project = 'rudy'
4
- s.version = "0.9.8.016"
4
+ s.version = "0.9.8.017"
5
5
  s.summary = "Rudy: Not your grandparents' EC2 deployment tool."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
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: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 8
10
- - 16
11
- version: 0.9.8.016
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-10-27 00:00:00 -04:00
19
+ date: 2010-11-11 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency