Skip to content
This repository has been archived by the owner on Jan 20, 2019. It is now read-only.

Commit

Permalink
r1647@macbook-pro: glenn | 2007-06-16 12:46:27 -0700
Browse files Browse the repository at this point in the history
 some doc changes in bin/ec2sh so it shows a friendlier startup message


git-svn-id: svn+ssh://rubyforge.org/var/svn/amazon-ec2/trunk@70 2e111c3a-5438-44ef-9c14-21a960333853
  • Loading branch information
grempe committed Jun 16, 2007
1 parent 0063e35 commit c765300
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 12 deletions.
20 changes: 19 additions & 1 deletion amazon-ec2/bin/ec2sh
Expand Up @@ -26,7 +26,25 @@ setup = File.dirname(__FILE__) + '/setup'
irb_name = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb'

if ( ENV['AMAZON_ACCESS_KEY_ID'] && ENV['AMAZON_SECRET_ACCESS_KEY'] )
puts "Usage : This is an interactive 'irb' command shell that allows you to use all commands available to the amazon-ec2 gem. The EC2 connection is wired to the class instance '@ec2'. Make method calls on this class instance to execute commands on EC2. e.g. >> @ec2.methods.sort or >> @ec2.describe_images"

welcome_message = <<-MESSAGE
ec2sh usage :
This is an interactive 'irb' command shell that allows you to use all
commands available to the amazon-ec2 gem. The EC2 connection is
wired to the class instance '@ec2'. Make method calls on this
class instance to execute commands on EC2. Adding a #to_s method call
at the end of any command should give you a full representation of the
data in the response.
e.g.
>> @ec2.methods.sort
>> @ec2.describe_images.to_s
>> @ec2.describe_keypairs.to_s
MESSAGE

puts welcome_message
exec "#{irb_name} -r #{ec2_lib} -r #{setup} --simple-prompt"
else
puts "You must define AMAZON_ACCESS_KEY_ID and AMAZON_SECRET_ACCESS_KEY as shell environment variables before running #{$0}!"
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/index.html
Expand Up @@ -151,7 +151,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /> <table class='report'>
<thead>
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-console_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-exceptions_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-image_attributes_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-images_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-instances_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-keypairs_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-responses_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-security_groups_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2-version_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down
2 changes: 1 addition & 1 deletion amazon-ec2/coverage/lib-EC2_rb.html
Expand Up @@ -556,7 +556,7 @@
</head>
<body>
<h3>C0 code coverage information</h3>
<p>Generated on Sat Jun 16 12:10:45 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
<p>Generated on Sat Jun 16 12:45:25 -0700 2007 with <a href='http://eigenclass.org/hiki.rb?rcov'>rcov 0.8.0</a>
</p>
<hr /><pre><span class='marked0'>Code reported as executed by Ruby looks like this...
</span><span class='marked1'>and this: this line is also marked as covered.
Expand Down

0 comments on commit c765300

Please sign in to comment.