capistrano-elobuff 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "capistrano-elobuff"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = "0.2.6"
14
+ gem.version = "0.2.7"
15
15
 
16
16
  gem.add_dependency "capistrano"
17
17
  gem.add_dependency "fog"
@@ -5,7 +5,7 @@ def die(why)
5
5
  exit 1
6
6
  end
7
7
 
8
- def find_servers
8
+ def find_ec2_servers
9
9
  if ids = ENV["SERVERS"]
10
10
  ids.split(",").map {|id| ec2.find_server id }
11
11
  elsif id = ENV["SERVER"]
@@ -25,7 +25,7 @@ Capistrano::Configuration.instance.load do
25
25
 
26
26
  desc "Update Server Roles"
27
27
  task :rerole do
28
- find_servers.each do |s|
28
+ find_ec2_servers.each do |s|
29
29
  if roles = ENV["ROLES"]
30
30
  s.roles = roles
31
31
  ec2.update_server_tags s
@@ -37,7 +37,7 @@ Capistrano::Configuration.instance.load do
37
37
 
38
38
  desc "Rename Servers"
39
39
  task :rename do
40
- find_servers.each do |s|
40
+ find_ec2_servers.each do |s|
41
41
  if name = ENV["NAME"]
42
42
  s.name = name
43
43
  ec2.update_server_tags s
@@ -49,20 +49,20 @@ Capistrano::Configuration.instance.load do
49
49
 
50
50
  desc "Console into Server"
51
51
  task :console do
52
- s = find_servers.first
52
+ s = find_ec2_servers.first
53
53
  exec "ssh #{user}@#{s.address}"
54
54
  end
55
55
 
56
56
  desc "Terminate Servers"
57
57
  task :terminate do
58
58
  puts "Preparing to terminate the following servers:"
59
- find_servers.each do |s|
59
+ find_ec2_servers.each do |s|
60
60
  puts s.to_s
61
61
  end
62
62
 
63
63
  ENV["CONFIRM"] || die("Please set CONFIRM in order to terminate")
64
64
 
65
- find_servers.each do |s|
65
+ find_ec2_servers.each do |s|
66
66
  s.terminate!
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-elobuff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-18 00:00:00.000000000 Z
12
+ date: 2012-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano