capify-ec2 1.1.7 → 1.1.8.pre
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.
- data/lib/capify-ec2/capistrano.rb +5 -0
- data/lib/capify-ec2/version.rb +1 -1
- metadata +11 -8
@@ -73,11 +73,13 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
73
73
|
roles.each {|role| ec2_role(role)}
|
74
74
|
end
|
75
75
|
|
76
|
+
desc "Deregisters instance from its ELB"
|
76
77
|
task :deregister_instance do
|
77
78
|
servers = variables[:logger].instance_variable_get("@options")[:actions].first
|
78
79
|
CapifyEc2.deregister_instance_from_elb(servers)
|
79
80
|
end
|
80
81
|
|
82
|
+
desc "Registers an instance with an ELB."
|
81
83
|
task :register_instance do
|
82
84
|
servers = variables[:logger].instance_variable_get("@options")[:actions].first
|
83
85
|
load_balancer_name = variables[:logger].instance_variable_get("@options")[:vars][:loadbalancer]
|
@@ -88,10 +90,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
88
90
|
run "date"
|
89
91
|
end
|
90
92
|
|
93
|
+
desc "Prints list of ec2 server names"
|
91
94
|
task :server_names do
|
92
95
|
puts CapifyEc2.server_names.sort
|
93
96
|
end
|
94
97
|
|
98
|
+
desc "Prints out all ec2 instances. index, name, instance_id, size, dns_name, region, tags"
|
95
99
|
task :ec2_status do
|
96
100
|
CapifyEc2.running_instances.each_with_index do |instance, i|
|
97
101
|
puts sprintf "%-11s: %-40s %-20s %-20s %-62s %-20s (%s)",
|
@@ -100,6 +104,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
100
104
|
end
|
101
105
|
end
|
102
106
|
|
107
|
+
desc "Allows ssh to instance by id. cap ssh -s i=INDEX"
|
103
108
|
task :ssh do
|
104
109
|
instances = CapifyEc2.running_instances
|
105
110
|
instance = respond_to?(:i) ? instances[i.to_i] : instances.first
|
data/lib/capify-ec2/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capify-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 961916028
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
|
9
|
+
- 8
|
10
|
+
- pre
|
11
|
+
version: 1.1.8.pre
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Noah Cantor
|
@@ -106,12 +107,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
108
|
none: false
|
108
109
|
requirements:
|
109
|
-
- - "
|
110
|
+
- - ">"
|
110
111
|
- !ruby/object:Gem::Version
|
111
|
-
hash:
|
112
|
+
hash: 25
|
112
113
|
segments:
|
113
|
-
-
|
114
|
-
|
114
|
+
- 1
|
115
|
+
- 3
|
116
|
+
- 1
|
117
|
+
version: 1.3.1
|
115
118
|
requirements: []
|
116
119
|
|
117
120
|
rubyforge_project: capify-ec2
|