ec2_tools 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +22 -0
- data/VERSION +1 -1
- data/ec2_tools.gemspec +4 -3
- metadata +27 -5
data/README.rdoc
CHANGED
@@ -15,6 +15,28 @@ and create instance
|
|
15
15
|
OR specify config file when create instance
|
16
16
|
Ec2Tools.new('config.yml')
|
17
17
|
|
18
|
+
== Usage
|
19
|
+
This gem is useful for the case like this
|
20
|
+
|
21
|
+
in config/deploy.rb,
|
22
|
+
|
23
|
+
old
|
24
|
+
|
25
|
+
role :db, 'ec2-111-111-111-111.amazonaws.com'
|
26
|
+
role :web, 'ec2-111-111-111-111.amazonaws.com', 'ec2-111-111-111-112.amazonaws.com', 'ec2-111-111-111-113.amazonaws.com', 'ec2-111-111-111-114.amazonaws.com', ....
|
27
|
+
|
28
|
+
new
|
29
|
+
|
30
|
+
Ec2Tools.new.servers[:web].map(&:dnsName).each_with_index do |host, idx|
|
31
|
+
role :db, host, :primary => true if idx == 0
|
32
|
+
role :app, host
|
33
|
+
role :web, host
|
34
|
+
end
|
35
|
+
|
36
|
+
You don't need to do maintenance deploy.rb any longer!
|
37
|
+
|
38
|
+
|
39
|
+
|
18
40
|
== Contributing to ec2_tools
|
19
41
|
|
20
42
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/ec2_tools.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ec2_tools}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Yamada Masaki"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-09}
|
13
13
|
s.description = %q{ec2 manage commands}
|
14
14
|
s.email = %q{masaki@hisme.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.homepage = %q{http://github.com/masarakki/ec2_tools}
|
38
38
|
s.licenses = ["MIT"]
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = %q{1.
|
40
|
+
s.rubygems_version = %q{1.3.7}
|
41
41
|
s.summary = %q{ec2 manage commands}
|
42
42
|
s.test_files = [
|
43
43
|
"spec/ec2_tools/config_spec.rb",
|
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
]
|
48
48
|
|
49
49
|
if s.respond_to? :specification_version then
|
50
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
50
51
|
s.specification_version = 3
|
51
52
|
|
52
53
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ec2_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 3
|
8
|
+
- 3
|
9
|
+
version: 0.3.3
|
6
10
|
platform: ruby
|
7
11
|
authors:
|
8
12
|
- Yamada Masaki
|
@@ -10,7 +14,7 @@ autorequire:
|
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
16
|
|
13
|
-
date: 2011-02-
|
17
|
+
date: 2011-02-09 00:00:00 +09:00
|
14
18
|
default_executable:
|
15
19
|
dependencies:
|
16
20
|
- !ruby/object:Gem::Dependency
|
@@ -20,6 +24,8 @@ dependencies:
|
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
23
29
|
version: "0"
|
24
30
|
type: :runtime
|
25
31
|
prerelease: false
|
@@ -31,6 +37,10 @@ dependencies:
|
|
31
37
|
requirements:
|
32
38
|
- - ~>
|
33
39
|
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 2
|
42
|
+
- 1
|
43
|
+
- 0
|
34
44
|
version: 2.1.0
|
35
45
|
type: :development
|
36
46
|
prerelease: false
|
@@ -42,6 +52,10 @@ dependencies:
|
|
42
52
|
requirements:
|
43
53
|
- - ~>
|
44
54
|
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 1
|
57
|
+
- 0
|
58
|
+
- 0
|
45
59
|
version: 1.0.0
|
46
60
|
type: :development
|
47
61
|
prerelease: false
|
@@ -53,6 +67,10 @@ dependencies:
|
|
53
67
|
requirements:
|
54
68
|
- - ~>
|
55
69
|
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 1
|
72
|
+
- 5
|
73
|
+
- 1
|
56
74
|
version: 1.5.1
|
57
75
|
type: :development
|
58
76
|
prerelease: false
|
@@ -64,6 +82,8 @@ dependencies:
|
|
64
82
|
requirements:
|
65
83
|
- - ">="
|
66
84
|
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 0
|
67
87
|
version: "0"
|
68
88
|
type: :development
|
69
89
|
prerelease: false
|
@@ -108,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
128
|
requirements:
|
109
129
|
- - ">="
|
110
130
|
- !ruby/object:Gem::Version
|
111
|
-
hash:
|
131
|
+
hash: 351697153
|
112
132
|
segments:
|
113
133
|
- 0
|
114
134
|
version: "0"
|
@@ -117,11 +137,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
137
|
requirements:
|
118
138
|
- - ">="
|
119
139
|
- !ruby/object:Gem::Version
|
140
|
+
segments:
|
141
|
+
- 0
|
120
142
|
version: "0"
|
121
143
|
requirements: []
|
122
144
|
|
123
145
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.
|
146
|
+
rubygems_version: 1.3.7
|
125
147
|
signing_key:
|
126
148
|
specification_version: 3
|
127
149
|
summary: ec2 manage commands
|