solutious-rudy 0.6.0 → 0.6.1
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/README.rdoc +4 -2
- data/lib/annoy.rb +3 -3
- data/lib/rudy.rb +1 -1
- data/lib/rudy/utils.rb +9 -4
- data/rudy.gemspec +2 -2
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= Rudy - v0.6 ALPHA
|
2
2
|
|
3
|
-
Rudy is a command-line development and deployment tool for Amazon Web Services. It helps you build and manage machines in EC2 by organizing them into groups of _environments_ and _roles_. These are called
|
3
|
+
Rudy is a command-line development and deployment tool for Amazon Web Services. It helps you build and manage machines in EC2 by organizing them into groups of _environments_ and _roles_. These are called _machine_ _groups_. <tt>stage</tt> is the default environment and <tt>app</tt> is the default role. You can run multiple machines with the same role. These are called _positions_. Rudy also supports running machine groups across availability _zones_.
|
4
4
|
|
5
5
|
When you put all this together, you have a unique name for every machine. The default machine is:
|
6
6
|
|
@@ -27,7 +27,7 @@ or via download:
|
|
27
27
|
* rudy-0.6.0.tar.gz[http://github.com/solutious/rudy/tarball/rudy-0.6.0]
|
28
28
|
* rudy-0.6.0.zip[http://github.com/solutious/rudy/zipball/rudy-0.6.0]
|
29
29
|
|
30
|
-
NOTE: <em>If you are not installing via RubyGems, you need to make sure the
|
30
|
+
NOTE: <em>If you are not installing via RubyGems, you need to make sure the dependencies are in your LOAD_PATH (<tt>$:</tt>). Ryan Tomayko wrote a gist[http://gist.github.com/54177] about it.</em>
|
31
31
|
|
32
32
|
=== Step 2 of 2 (initialize your configuration):
|
33
33
|
|
@@ -70,6 +70,8 @@ The <tt>-u root</tt> tells Rudy to open a connection as the root user. If you cr
|
|
70
70
|
* Net::SCP[http://net-ssh.rubyforge.org/]
|
71
71
|
* amazon-ec2[http://github.com/grempe/amazon-ec2]
|
72
72
|
* Rye[http://github.com/delano/rye]
|
73
|
+
* Drydock[http://github.com/delano/drydock]
|
74
|
+
* Caesars[http://github.com/delano/caesars]
|
73
75
|
|
74
76
|
|
75
77
|
== Common Errors
|
data/lib/annoy.rb
CHANGED
@@ -102,10 +102,10 @@ class Annoy
|
|
102
102
|
[equation, answer]
|
103
103
|
end
|
104
104
|
|
105
|
-
# Prints a question to
|
106
|
-
# It checks whether STDIN is connected a tty so it doesn't block on gets
|
105
|
+
# Prints a question to +writer+ and waits for a response on STDIN.
|
106
|
+
# It checks whether STDIN is connected a tty so it doesn't block on gets
|
107
107
|
# when there's no human around to annoy. It will return <b>TRUE</b> when
|
108
|
-
# STDIN is NOT connected to a tty.
|
108
|
+
# STDIN is NOT connected to a tty (when STDIN.tty? returns false).
|
109
109
|
# * +msg+ The message to print. Default: "Please confirm."
|
110
110
|
# Returns true when the answer is correct, otherwise false.
|
111
111
|
def Annoy.challenge?(msg="Please confirm.", factor=:medium, flavor=:rand, writer=STDOUT, period=nil)
|
data/lib/rudy.rb
CHANGED
data/lib/rudy/utils.rb
CHANGED
@@ -71,9 +71,9 @@ module Rudy
|
|
71
71
|
# * +max+ maximum time to wait (default: 120). Throws an exception when exceeded.
|
72
72
|
# * +logger+ IO object to print +dot+ to.
|
73
73
|
# * +msg+ the message to print on success
|
74
|
-
# * +bells+ number of terminal bells to ring
|
75
|
-
#
|
76
|
-
# The block must return false while waiting. Once it returns true
|
74
|
+
# * +bells+ number of terminal bells to ring. Set to nil or false to keep the waiter silent
|
75
|
+
#
|
76
|
+
# The +check+ block must return false while waiting. Once it returns true
|
77
77
|
# the waiter will return true too.
|
78
78
|
def waiter(duration=2, max=120, logger=STDOUT, msg=nil, bells=0, &check)
|
79
79
|
# TODO: Move to Drydock. [ed-why?]
|
@@ -274,6 +274,9 @@ module Rudy
|
|
274
274
|
|
275
275
|
######### Everything below here is TO BE REMOVED.
|
276
276
|
|
277
|
+
#
|
278
|
+
#
|
279
|
+
# Run a shell command (TO BE REMOVED)
|
277
280
|
def sh(command, chdir=false, verbose=false)
|
278
281
|
prevdir = Dir.pwd
|
279
282
|
Dir.chdir chdir if chdir
|
@@ -282,7 +285,8 @@ module Rudy
|
|
282
285
|
Dir.chdir prevdir if chdir
|
283
286
|
end
|
284
287
|
|
285
|
-
|
288
|
+
#
|
289
|
+
# Run an SSH command (TO BE REMOVED)
|
286
290
|
def ssh_command(host, keypair, user, command=false, printonly=false, verbose=false)
|
287
291
|
#puts "CONNECTING TO #{host}..."
|
288
292
|
cmd = "ssh -i #{keypair} #{user}@#{host} "
|
@@ -297,6 +301,7 @@ module Rudy
|
|
297
301
|
end
|
298
302
|
|
299
303
|
|
304
|
+
# (TO BE REMOVED)
|
300
305
|
# TODO: This is old and insecure.
|
301
306
|
def scp_command(host, keypair, user, paths, to_path, to_local=false, verbose=false, printonly=false)
|
302
307
|
|
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.6.
|
4
|
+
s.version = "0.6.1"
|
5
5
|
s.summary = "Rudy: Not your grandparent's deployment tool."
|
6
6
|
s.description = s.summary
|
7
7
|
s.author = "Delano Mandelbaum"
|
@@ -21,7 +21,7 @@
|
|
21
21
|
s.add_dependency 'echoe'
|
22
22
|
s.add_dependency 'amazon-ec2', '>= 0.3.8' # region fix
|
23
23
|
s.add_dependency 'net-ssh', '>=2.0.9'
|
24
|
-
s.add_dependency 'net-scp', '
|
24
|
+
s.add_dependency 'net-scp', '>=1.0.2'
|
25
25
|
s.add_dependency 'net-ssh-gateway'
|
26
26
|
s.add_dependency 'net-ssh-multi'
|
27
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solutious-rudy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
@@ -78,7 +78,7 @@ dependencies:
|
|
78
78
|
version_requirement:
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.0.2
|
84
84
|
version:
|