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 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
- require 'drydock'
15
- require 'rudy'
16
- require 'rudy/cli'
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
- require 'drydock'
15
- require 'rudy'
16
- require 'rudy/cli'
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
- require 'drydock'
15
- require 'rudy'
16
- require 'rudy/cli'
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
@@ -44,7 +44,7 @@ module Rudy
44
44
  MAJOR = 0.freeze
45
45
  MINOR = 9.freeze
46
46
  TINY = 8.freeze
47
- PATCH = '010'.freeze
47
+ PATCH = '011'.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/lib/rudy/global.rb CHANGED
@@ -41,6 +41,8 @@ module Rudy
41
41
  field :testrun
42
42
  field :offline
43
43
  field :bucket
44
+
45
+ field :positions
44
46
 
45
47
 
46
48
  attr_accessor :print_header
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
- top_level = @@config.machines.find(parameter)
315
- mc = fetch_machine_config || {}
316
- mc[parameter] || top_level || nil
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
@@ -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.010"
4
+ s.version = "0.9.8.011"
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: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 8
10
- - 10
11
- version: 0.9.8.010
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-29 00:00:00 -04:00
19
+ date: 2010-08-31 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency