EC2ssh 0.1.5 → 0.1.6

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.
Files changed (5) hide show
  1. data/EC2ssh.gemspec +1 -1
  2. data/VERSION +1 -1
  3. data/bin/ec2ssh +3 -0
  4. data/lib/ec2ssh.rb +2 -3
  5. metadata +3 -3
data/EC2ssh.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{EC2ssh}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ramon Salvad\303\263"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
data/bin/ec2ssh CHANGED
@@ -7,6 +7,9 @@ rescue LoadError
7
7
  require 'ec2ssh'
8
8
  end
9
9
 
10
+ # Unset EC2_URL it can cause problems with aws gem
11
+ ENV["EC2_URL"] = nil
12
+
10
13
  # TODO: Add proper command line arguments handling
11
14
  account = ARGV[0] || "default"
12
15
 
data/lib/ec2ssh.rb CHANGED
@@ -61,9 +61,8 @@ module Ec2ssh
61
61
  Aws::Ec2.new(id, key, :region => region).describe_instances
62
62
  end
63
63
  end.flatten
64
- rescue Aws::AwsError
65
- puts "AWS Error. Please review your credentials ~/.ec2ssh"
66
- exit(false)
64
+ rescue Aws::AwsError => e
65
+ abort "AWS Error. #{e.message}"
67
66
  end
68
67
 
69
68
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: EC2ssh
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Ramon Salvad\xC3\xB3"