capify-ec2 1.1.12.pre.1 → 1.1.12.pre.2

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.
@@ -103,7 +103,7 @@ Capistrano::Configuration.instance(:must_exist).load do
103
103
  desc "Allows ssh to instance by id. cap ssh <INSTANCE NAME>"
104
104
  task :ssh do
105
105
  server = variables[:logger].instance_variable_get("@options")[:actions][1]
106
- instance = numeric?(server) ? CapifyEc2.running_instances[server.to_i] : CapifyEc2.get_instance_by_name(server).first
106
+ instance = numeric?(server) ? CapifyEc2.running_instances[server.to_i] : CapifyEc2.get_instance_by_name(server)
107
107
  port = ssh_options[:port] || 22
108
108
  command = "ssh -p #{port} #{user}@#{instance.dns_name}"
109
109
  puts "Running `#{command}`"
@@ -1,5 +1,5 @@
1
1
  module Capify
2
2
  module Ec2
3
- VERSION = "1.1.12.pre.1"
3
+ VERSION = "1.1.12.pre.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capify-ec2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923832059
4
+ hash: 1923832061
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
9
  - 12
10
10
  - pre
11
- - 1
12
- version: 1.1.12.pre.1
11
+ - 2
12
+ version: 1.1.12.pre.2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Noah Cantor