capify-ec2 1.1.14 → 1.1.15

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.
@@ -12,7 +12,7 @@ class CapifyEc2
12
12
  end
13
13
 
14
14
  def self.determine_regions(region = nil)
15
- region.nil? ? (ec2_config[:aws_params][:regions] || [ec2_config[:aws_params][:region]]) : region
15
+ region.nil? ? (ec2_config[:aws_params][:regions] || [ec2_config[:aws_params][:region]]) : [region]
16
16
  end
17
17
 
18
18
  def self.running_instances(region = nil)
@@ -40,7 +40,7 @@ Capistrano::Configuration.instance(:must_exist).load do
40
40
  port = ssh_options[:port] || 22
41
41
  command = "ssh -p #{port} #{user}@#{instance.dns_name}"
42
42
  puts "Running `#{command}`"
43
- system(command)
43
+ exec(command)
44
44
  end
45
45
 
46
46
  end
@@ -1,5 +1,5 @@
1
1
  module Capify
2
2
  module Ec2
3
- VERSION = "1.1.14"
3
+ VERSION = "1.1.15"
4
4
  end
5
5
  end
data/readme.md CHANGED
@@ -82,12 +82,11 @@ will list the currently running servers and their associated details
82
82
 
83
83
  Running
84
84
 
85
- cap ec2:ssh -s i=1
85
+ cap ec2:ssh #
86
86
 
87
87
  will launch ssh using the user and port specified in your configuration.
88
- The 'i' argument is the index of the server to ssh into. Use the 'ec2_status'
89
- command to see the list of servers with their indices. If the 'i' argument
90
- is omitted then the first instance will be used.
88
+ The # argument is the index of the server to ssh into. Use the 'ec2:status'
89
+ command to see the list of servers with their indices.
91
90
 
92
91
  More options
93
92
  ====================================================
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capify-ec2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 14
10
- version: 1.1.14
9
+ - 15
10
+ version: 1.1.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Noah Cantor
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-09-01 00:00:00 +01:00
19
+ date: 2011-09-02 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency