Skip to content

Commit

Permalink
Upated version & authors
Browse files Browse the repository at this point in the history
  • Loading branch information
orifito committed Oct 17, 2013
1 parent 7d16f26 commit f239e8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EC2ssh.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

Gem::Specification.new do |s|
s.name = %q{EC2ssh}
s.version = "0.1.6"
s.version = "0.1.7"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ramon Salvad\303\263"]
s.authors = ["Ramon Salvad\303\263, " "Jordi Beltran, " "Oriol Fit\303\263"]
s.date = %q{2011-09-21}
s.default_executable = %q{ec2ssh}
s.description = %q{Since ec2 instance public hostnames are dynamic, and not easy to remember or type, this script provides a list all your running instances so you can select the one you want to ssh into easily (without having to pass the aws console ritual each time you need the hostname).}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.6
0.1.7
2 changes: 1 addition & 1 deletion lib/ec2ssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def select_instance(instances=[], filter_tag = nil, filter_ip = nil, filter_sg =
hostnames = []
instances.each do |i|
if i[:aws_state] == "running" && check_filter_tag( filter_tag, i ) && check_filter_ip( filter_ip, i ) && check_filter_sg( filter_sg, i )
puts "#{n}. #{i[:aws_instance_id]}: %-20s\t%-60s\t%-10s\t%s" % [ i[:tags]["Name"], i[:aws_groups].join(','), i[:dns_name], i[:aws_private_ip_address] ]
puts "#{n}. #{i[:aws_instance_id]}: %-20s\t%-50s\t%-10s\t%s" % [ i[:tags]["Name"], i[:aws_groups].join(','), i[:dns_name], i[:aws_private_ip_address] ]
hostnames << i[:dns_name]
n = n + 1
end
Expand Down

0 comments on commit f239e8d

Please sign in to comment.