rudy 0.9.8.010 → 0.9.8.011
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +4 -0
- data/README.rdoc +2 -0
- data/bin/rudy +2 -0
- data/bin/rudy-ec2 +7 -4
- data/bin/rudy-s3 +7 -3
- data/bin/rudy-sdb +7 -3
- data/lib/rudy.rb +1 -1
- data/lib/rudy/global.rb +2 -0
- data/lib/rudy/huxtable.rb +5 -3
- data/lib/rudy/routines/handlers/rye.rb +0 -1
- data/rudy.gemspec +1 -1
- metadata +4 -4
data/CHANGES.txt
CHANGED
@@ -12,6 +12,10 @@ Creating volume...
|
|
12
12
|
(S)kip (A)bort:
|
13
13
|
|
14
14
|
|
15
|
+
#### 0.9.8.011 (2010-08-31) #######################
|
16
|
+
|
17
|
+
* ADDED: Global --positions option to override positions variable through CLI
|
18
|
+
|
15
19
|
#### 0.9.8.010 (2010-08-29) #######################
|
16
20
|
|
17
21
|
* FIXED: Catch interrupts while loading requires
|
data/README.rdoc
CHANGED
@@ -167,6 +167,7 @@ We encourage people to find unique and interesting ways to break and extend rudy
|
|
167
167
|
|
168
168
|
== Thanks
|
169
169
|
|
170
|
+
* Evgeniy Tsvigun
|
170
171
|
* Kalin Harvey for all the feedback
|
171
172
|
* The Rilli.com[http://rilli.com] team
|
172
173
|
* Adam Bognar
|
@@ -182,6 +183,7 @@ We encourage people to find unique and interesting ways to break and extend rudy
|
|
182
183
|
* Marcel Molina Jr. for aws-s3
|
183
184
|
* Keshia Knight Pulliam
|
184
185
|
|
186
|
+
|
185
187
|
== Credits
|
186
188
|
|
187
189
|
* Delano Mandelbaum ( http://solutious.com/ )
|
data/bin/rudy
CHANGED
@@ -39,6 +39,8 @@ class RudyCLI < Rudy::CLI::Base
|
|
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)."
|
41
41
|
global :F, :force, "Force an action despite warnings"
|
42
|
+
|
43
|
+
global :positions, Integer, "Override positions number for the current role"
|
42
44
|
|
43
45
|
|
44
46
|
# ------------------------------------------ RUDY OBJECTS --------
|
data/bin/rudy-ec2
CHANGED
@@ -11,10 +11,13 @@
|
|
11
11
|
|
12
12
|
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') # Put our local lib in first place
|
13
13
|
|
14
|
-
|
15
|
-
require '
|
16
|
-
require 'rudy
|
17
|
-
|
14
|
+
begin
|
15
|
+
require 'drydock'
|
16
|
+
require 'rudy'
|
17
|
+
require 'rudy/cli'
|
18
|
+
rescue Interrupt
|
19
|
+
exit
|
20
|
+
end
|
18
21
|
|
19
22
|
# Command-line interface for bin/rudy-ec2
|
20
23
|
module RudyCLI_EC2
|
data/bin/rudy-s3
CHANGED
@@ -11,9 +11,13 @@
|
|
11
11
|
|
12
12
|
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') # Put our local lib in first place
|
13
13
|
|
14
|
-
|
15
|
-
require '
|
16
|
-
require 'rudy
|
14
|
+
begin
|
15
|
+
require 'drydock'
|
16
|
+
require 'rudy'
|
17
|
+
require 'rudy/cli'
|
18
|
+
rescue Interrupt
|
19
|
+
exit
|
20
|
+
end
|
17
21
|
|
18
22
|
# Command-line interface for bin/rudy-s3
|
19
23
|
module RudyCLI_S3
|
data/bin/rudy-sdb
CHANGED
@@ -11,9 +11,13 @@
|
|
11
11
|
|
12
12
|
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') # Put our local lib in first place
|
13
13
|
|
14
|
-
|
15
|
-
require '
|
16
|
-
require 'rudy
|
14
|
+
begin
|
15
|
+
require 'drydock'
|
16
|
+
require 'rudy'
|
17
|
+
require 'rudy/cli'
|
18
|
+
rescue Interrupt
|
19
|
+
exit
|
20
|
+
end
|
17
21
|
|
18
22
|
# Command-line interface for bin/rudy-sdb
|
19
23
|
module RudyCLI_SDB
|
data/lib/rudy.rb
CHANGED
data/lib/rudy/global.rb
CHANGED
data/lib/rudy/huxtable.rb
CHANGED
@@ -311,9 +311,11 @@ module Rudy
|
|
311
311
|
return if !@@config.machines && default_machine_group?
|
312
312
|
raise NoMachinesConfig if !@@config.machines
|
313
313
|
raise NoGlobal unless @@global
|
314
|
-
|
315
|
-
|
316
|
-
|
314
|
+
parameter == :positions && @@global.positions || begin #TODO remove hack
|
315
|
+
top_level = @@config.machines.find(parameter)
|
316
|
+
mc = fetch_machine_config || {}
|
317
|
+
mc[parameter] || top_level || nil
|
318
|
+
end
|
317
319
|
end
|
318
320
|
|
319
321
|
# Returns true if this is the default machine environment and role
|
@@ -13,7 +13,6 @@ module Rudy::Routines::Handlers;
|
|
13
13
|
def create_box(hostname, opts={})
|
14
14
|
ld [:hostname, hostname, opts, caller[0]]
|
15
15
|
opts = {
|
16
|
-
:info => (@@global.verbose >= 2), # rudy -vv
|
17
16
|
:debug => false,
|
18
17
|
:user => current_machine_user,
|
19
18
|
:ostype => current_machine_os || :unix,
|
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: 49
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 8
|
10
|
-
-
|
11
|
-
version: 0.9.8.
|
10
|
+
- 11
|
11
|
+
version: 0.9.8.011
|
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-08-
|
19
|
+
date: 2010-08-31 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|