engineyard-recipes 0.2.0.pre3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +9 -1
- data/Rakefile +10 -0
- data/features/init-sm-framework.feature +8 -0
- data/features/timezone_override.feature +44 -0
- data/lib/engineyard-recipes/cli.rb +8 -0
- data/lib/engineyard-recipes/generators/timezone_generator.rb +44 -0
- data/lib/engineyard-recipes/generators/timezone_generator/templates/cookbooks/%recipe_name%/recipes/default.rb.tt +16 -0
- data/lib/engineyard-recipes/version.rb +1 -1
- data/lib/engineyard-recipes/zonefiles +603 -0
- metadata +22 -20
data/ChangeLog.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# ChangeLog
|
2
2
|
|
3
|
-
## v0.
|
3
|
+
## v0.2
|
4
|
+
|
5
|
+
Timezones & SM Extensions
|
6
|
+
|
7
|
+
* `timezone` - set the required timezone for instances
|
8
|
+
* `sm` - use SM extensions (wrapped in chef recipes)
|
9
|
+
* `init --sm` & `init-sm` - setup to use SM extensions (required for `sm`)
|
10
|
+
|
11
|
+
## v0.1
|
4
12
|
|
5
13
|
Initial set of commands:
|
6
14
|
|
data/Rakefile
CHANGED
@@ -25,3 +25,13 @@ desc 'Alias for cucumber:ok'
|
|
25
25
|
task :cucumber => 'cucumber:ok'
|
26
26
|
|
27
27
|
task :default => ["spec", "cucumber"]
|
28
|
+
|
29
|
+
desc "Generate list of zoneinfo"
|
30
|
+
task :zoneinfo do
|
31
|
+
zonefile = File.expand_path("../lib/engineyard-recipes/zonefiles", __FILE__)
|
32
|
+
FileUtils.chdir("/usr/share/zoneinfo") do
|
33
|
+
File.open(zonefile, "w") do |file|
|
34
|
+
file << Dir['**/*'].join("\n")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -8,6 +8,8 @@ Feature: Setup your EY Cloud cookbook to use SM framework extensions
|
|
8
8
|
When I run local executable "ey-recipes" with arguments "init-sm"
|
9
9
|
Then file "cookbooks/sm/recipes/default.rb" contains "require_recipe 'sm::install'"
|
10
10
|
Then file "cookbooks/sm/recipes/install.rb" contains "curl -L -s https://github.com/sm/sm/tarball/master -o sm-master.tar.gz"
|
11
|
+
# Then file "cookbooks/main/recipes/default.rb" contains "require_recipe 'eyapi'"
|
12
|
+
Then file "cookbooks/main/recipes/default.rb" contains "require_recipe 'sm'"
|
11
13
|
And I should see exactly
|
12
14
|
"""
|
13
15
|
exist cookbooks
|
@@ -16,6 +18,9 @@ Feature: Setup your EY Cloud cookbook to use SM framework extensions
|
|
16
18
|
create cookbooks/sm/recipes/install.rb
|
17
19
|
append cookbooks/main/recipes/default.rb
|
18
20
|
"""
|
21
|
+
# create cookbooks/eyapi/attributes/recipe.rb
|
22
|
+
# create cookbooks/eyapi/recipes/default.rb
|
23
|
+
# create cookbooks/eyapi/recipes/install.rb
|
19
24
|
|
20
25
|
Scenario: Create new EY CLoud custom cookbooks with SM extensions
|
21
26
|
Given I am in the "rails" project folder
|
@@ -34,3 +39,6 @@ Feature: Setup your EY Cloud cookbook to use SM framework extensions
|
|
34
39
|
create cookbooks/sm/recipes/install.rb
|
35
40
|
append cookbooks/main/recipes/default.rb
|
36
41
|
"""
|
42
|
+
# create cookbooks/eyapi/attributes/recipe.rb
|
43
|
+
# create cookbooks/eyapi/recipes/default.rb
|
44
|
+
# create cookbooks/eyapi/recipes/install.rb
|
@@ -0,0 +1,44 @@
|
|
1
|
+
Feature: Timezone override
|
2
|
+
I want a different timezone
|
3
|
+
|
4
|
+
Background:
|
5
|
+
Given I am in the "rails" project folder
|
6
|
+
When I run local executable "ey-recipes" with arguments "init"
|
7
|
+
|
8
|
+
Scenario: Set the timezone I want
|
9
|
+
When I run local executable "ey-recipes" with arguments "timezone Australia/Tasmania"
|
10
|
+
Then file "cookbooks/timezone-override/recipes/default.rb" contains
|
11
|
+
"""
|
12
|
+
#
|
13
|
+
# Cookbook Name:: timezone-override
|
14
|
+
# Recipe:: default
|
15
|
+
#
|
16
|
+
|
17
|
+
# Note that this is for the Australia/Tasmania timezone. Look in
|
18
|
+
# /usr/share/zoneinfo for your relevant file.
|
19
|
+
service "vixie-cron"
|
20
|
+
service "sysklogd"
|
21
|
+
service "nginx"
|
22
|
+
|
23
|
+
link "/etc/localtime" do
|
24
|
+
to "/usr/share/zoneinfo/Australia/Tasmania"
|
25
|
+
notifies :restart, resources(:service => ["vixie-cron", "sysklogd", "nginx"]), :delayed
|
26
|
+
not_if "readlink /etc/localtime | grep -q 'Australia/Tasmania$'"
|
27
|
+
end
|
28
|
+
"""
|
29
|
+
And file "cookbooks/main/recipes/default.rb" contains "require_recipe 'timezone-override'"
|
30
|
+
And I should see exactly
|
31
|
+
"""
|
32
|
+
exist cookbooks
|
33
|
+
create cookbooks/timezone-override/recipes/default.rb
|
34
|
+
append cookbooks/main/recipes/default.rb
|
35
|
+
"""
|
36
|
+
|
37
|
+
Scenario: Cannot set an invalid timezone
|
38
|
+
When I run local executable "ey-recipes" with arguments "timezone XXXX"
|
39
|
+
And file "cookbooks/main/recipes/default.rb" does not contain "require_recipe 'timezone-override'"
|
40
|
+
And I should see exactly
|
41
|
+
"""
|
42
|
+
ERROR: XXXX is not a known timezone.
|
43
|
+
"""
|
44
|
+
|
@@ -39,6 +39,14 @@ module Engineyard
|
|
39
39
|
Engineyard::Recipes::Generators::DefinitionGenerator.start([recipe_name, definition_name])
|
40
40
|
end
|
41
41
|
|
42
|
+
desc "timezone TIMEZONE", "Generate recipe to set the timezone"
|
43
|
+
def timezone(timezone)
|
44
|
+
require 'engineyard-recipes/generators/timezone_generator'
|
45
|
+
Engineyard::Recipes::Generators::TimezoneGenerator.start([timezone])
|
46
|
+
rescue Engineyard::Recipes::Generators::TimezoneGenerator::InvalidTimezone => e
|
47
|
+
error "#{e.message} is not a known timezone."
|
48
|
+
end
|
49
|
+
|
42
50
|
desc "clone URI", "Clone a recipe into cookbook. URI can be git or local path."
|
43
51
|
method_option :name, :aliases => ['-n'], :desc => "Specify name of recipe. Defaults to base name."
|
44
52
|
def clone(folder_path) # TODO support git URIs
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'thor/group'
|
2
|
+
|
3
|
+
module Engineyard::Recipes
|
4
|
+
module Generators
|
5
|
+
class TimezoneGenerator < Thor::Group
|
6
|
+
include Thor::Actions
|
7
|
+
class InvalidTimezone < StandardError; end
|
8
|
+
|
9
|
+
argument :timezone
|
10
|
+
|
11
|
+
def self.source_root
|
12
|
+
File.join(File.dirname(__FILE__), "timezone_generator", "templates")
|
13
|
+
end
|
14
|
+
|
15
|
+
def check_timezone
|
16
|
+
raise InvalidTimezone.new(timezone) unless timezones =~ /^#{timezone}$/
|
17
|
+
end
|
18
|
+
|
19
|
+
def install_cookbooks
|
20
|
+
directory "cookbooks"
|
21
|
+
end
|
22
|
+
|
23
|
+
def auto_require_package
|
24
|
+
file = "cookbooks/main/recipes/default.rb"
|
25
|
+
file_path = File.join(destination_root, "cookbooks/main/recipes/default.rb")
|
26
|
+
unless File.exists?(file_path)
|
27
|
+
puts "Skipping auto-require of package recipe: #{file} is missing"
|
28
|
+
else
|
29
|
+
require_recipe = "\nrequire_recipe '#{recipe_name}'\n"
|
30
|
+
append_to_file file, require_recipe
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
protected
|
35
|
+
def recipe_name
|
36
|
+
'timezone-override'
|
37
|
+
end
|
38
|
+
|
39
|
+
def timezones
|
40
|
+
timezones ||= File.read(File.expand_path("../../zonefiles", __FILE__))
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#
|
2
|
+
# Cookbook Name:: <%= recipe_name %>
|
3
|
+
# Recipe:: default
|
4
|
+
#
|
5
|
+
|
6
|
+
# Note that this is for the <%= timezone %> timezone. Look in
|
7
|
+
# /usr/share/zoneinfo for your relevant file.
|
8
|
+
service "vixie-cron"
|
9
|
+
service "sysklogd"
|
10
|
+
service "nginx"
|
11
|
+
|
12
|
+
link "/etc/localtime" do
|
13
|
+
to "/usr/share/zoneinfo/<%= timezone %>"
|
14
|
+
notifies :restart, resources(:service => ["vixie-cron", "sysklogd", "nginx"]), :delayed
|
15
|
+
not_if "readlink /etc/localtime | grep -q '<%= timezone %>$'"
|
16
|
+
end
|
@@ -0,0 +1,603 @@
|
|
1
|
+
+VERSION
|
2
|
+
Africa
|
3
|
+
Africa/Abidjan
|
4
|
+
Africa/Accra
|
5
|
+
Africa/Addis_Ababa
|
6
|
+
Africa/Algiers
|
7
|
+
Africa/Asmara
|
8
|
+
Africa/Asmera
|
9
|
+
Africa/Bamako
|
10
|
+
Africa/Bangui
|
11
|
+
Africa/Banjul
|
12
|
+
Africa/Bissau
|
13
|
+
Africa/Blantyre
|
14
|
+
Africa/Brazzaville
|
15
|
+
Africa/Bujumbura
|
16
|
+
Africa/Cairo
|
17
|
+
Africa/Casablanca
|
18
|
+
Africa/Ceuta
|
19
|
+
Africa/Conakry
|
20
|
+
Africa/Dakar
|
21
|
+
Africa/Dar_es_Salaam
|
22
|
+
Africa/Djibouti
|
23
|
+
Africa/Douala
|
24
|
+
Africa/El_Aaiun
|
25
|
+
Africa/Freetown
|
26
|
+
Africa/Gaborone
|
27
|
+
Africa/Harare
|
28
|
+
Africa/Johannesburg
|
29
|
+
Africa/Kampala
|
30
|
+
Africa/Khartoum
|
31
|
+
Africa/Kigali
|
32
|
+
Africa/Kinshasa
|
33
|
+
Africa/Lagos
|
34
|
+
Africa/Libreville
|
35
|
+
Africa/Lome
|
36
|
+
Africa/Luanda
|
37
|
+
Africa/Lubumbashi
|
38
|
+
Africa/Lusaka
|
39
|
+
Africa/Malabo
|
40
|
+
Africa/Maputo
|
41
|
+
Africa/Maseru
|
42
|
+
Africa/Mbabane
|
43
|
+
Africa/Mogadishu
|
44
|
+
Africa/Monrovia
|
45
|
+
Africa/Nairobi
|
46
|
+
Africa/Ndjamena
|
47
|
+
Africa/Niamey
|
48
|
+
Africa/Nouakchott
|
49
|
+
Africa/Ouagadougou
|
50
|
+
Africa/Porto-Novo
|
51
|
+
Africa/Sao_Tome
|
52
|
+
Africa/Timbuktu
|
53
|
+
Africa/Tripoli
|
54
|
+
Africa/Tunis
|
55
|
+
Africa/Windhoek
|
56
|
+
America
|
57
|
+
America/Adak
|
58
|
+
America/Anchorage
|
59
|
+
America/Anguilla
|
60
|
+
America/Antigua
|
61
|
+
America/Araguaina
|
62
|
+
America/Argentina
|
63
|
+
America/Argentina/Buenos_Aires
|
64
|
+
America/Argentina/Catamarca
|
65
|
+
America/Argentina/ComodRivadavia
|
66
|
+
America/Argentina/Cordoba
|
67
|
+
America/Argentina/Jujuy
|
68
|
+
America/Argentina/La_Rioja
|
69
|
+
America/Argentina/Mendoza
|
70
|
+
America/Argentina/Rio_Gallegos
|
71
|
+
America/Argentina/Salta
|
72
|
+
America/Argentina/San_Juan
|
73
|
+
America/Argentina/San_Luis
|
74
|
+
America/Argentina/Tucuman
|
75
|
+
America/Argentina/Ushuaia
|
76
|
+
America/Aruba
|
77
|
+
America/Asuncion
|
78
|
+
America/Atikokan
|
79
|
+
America/Atka
|
80
|
+
America/Bahia
|
81
|
+
America/Bahia_Banderas
|
82
|
+
America/Barbados
|
83
|
+
America/Belem
|
84
|
+
America/Belize
|
85
|
+
America/Blanc-Sablon
|
86
|
+
America/Boa_Vista
|
87
|
+
America/Bogota
|
88
|
+
America/Boise
|
89
|
+
America/Buenos_Aires
|
90
|
+
America/Cambridge_Bay
|
91
|
+
America/Campo_Grande
|
92
|
+
America/Cancun
|
93
|
+
America/Caracas
|
94
|
+
America/Catamarca
|
95
|
+
America/Cayenne
|
96
|
+
America/Cayman
|
97
|
+
America/Chicago
|
98
|
+
America/Chihuahua
|
99
|
+
America/Coral_Harbour
|
100
|
+
America/Cordoba
|
101
|
+
America/Costa_Rica
|
102
|
+
America/Cuiaba
|
103
|
+
America/Curacao
|
104
|
+
America/Danmarkshavn
|
105
|
+
America/Dawson
|
106
|
+
America/Dawson_Creek
|
107
|
+
America/Denver
|
108
|
+
America/Detroit
|
109
|
+
America/Dominica
|
110
|
+
America/Edmonton
|
111
|
+
America/Eirunepe
|
112
|
+
America/El_Salvador
|
113
|
+
America/Ensenada
|
114
|
+
America/Fort_Wayne
|
115
|
+
America/Fortaleza
|
116
|
+
America/Glace_Bay
|
117
|
+
America/Godthab
|
118
|
+
America/Goose_Bay
|
119
|
+
America/Grand_Turk
|
120
|
+
America/Grenada
|
121
|
+
America/Guadeloupe
|
122
|
+
America/Guatemala
|
123
|
+
America/Guayaquil
|
124
|
+
America/Guyana
|
125
|
+
America/Halifax
|
126
|
+
America/Havana
|
127
|
+
America/Hermosillo
|
128
|
+
America/Indiana
|
129
|
+
America/Indiana/Indianapolis
|
130
|
+
America/Indiana/Knox
|
131
|
+
America/Indiana/Marengo
|
132
|
+
America/Indiana/Petersburg
|
133
|
+
America/Indiana/Tell_City
|
134
|
+
America/Indiana/Vevay
|
135
|
+
America/Indiana/Vincennes
|
136
|
+
America/Indiana/Winamac
|
137
|
+
America/Indianapolis
|
138
|
+
America/Inuvik
|
139
|
+
America/Iqaluit
|
140
|
+
America/Jamaica
|
141
|
+
America/Jujuy
|
142
|
+
America/Juneau
|
143
|
+
America/Kentucky
|
144
|
+
America/Kentucky/Louisville
|
145
|
+
America/Kentucky/Monticello
|
146
|
+
America/Knox_IN
|
147
|
+
America/Kralendijk
|
148
|
+
America/La_Paz
|
149
|
+
America/Lima
|
150
|
+
America/Los_Angeles
|
151
|
+
America/Louisville
|
152
|
+
America/Lower_Princes
|
153
|
+
America/Maceio
|
154
|
+
America/Managua
|
155
|
+
America/Manaus
|
156
|
+
America/Marigot
|
157
|
+
America/Martinique
|
158
|
+
America/Matamoros
|
159
|
+
America/Mazatlan
|
160
|
+
America/Mendoza
|
161
|
+
America/Menominee
|
162
|
+
America/Merida
|
163
|
+
America/Metlakatla
|
164
|
+
America/Mexico_City
|
165
|
+
America/Miquelon
|
166
|
+
America/Moncton
|
167
|
+
America/Monterrey
|
168
|
+
America/Montevideo
|
169
|
+
America/Montreal
|
170
|
+
America/Montserrat
|
171
|
+
America/Nassau
|
172
|
+
America/New_York
|
173
|
+
America/Nipigon
|
174
|
+
America/Nome
|
175
|
+
America/Noronha
|
176
|
+
America/North_Dakota
|
177
|
+
America/North_Dakota/Beulah
|
178
|
+
America/North_Dakota/Center
|
179
|
+
America/North_Dakota/New_Salem
|
180
|
+
America/Ojinaga
|
181
|
+
America/Panama
|
182
|
+
America/Pangnirtung
|
183
|
+
America/Paramaribo
|
184
|
+
America/Phoenix
|
185
|
+
America/Port-au-Prince
|
186
|
+
America/Port_of_Spain
|
187
|
+
America/Porto_Acre
|
188
|
+
America/Porto_Velho
|
189
|
+
America/Puerto_Rico
|
190
|
+
America/Rainy_River
|
191
|
+
America/Rankin_Inlet
|
192
|
+
America/Recife
|
193
|
+
America/Regina
|
194
|
+
America/Resolute
|
195
|
+
America/Rio_Branco
|
196
|
+
America/Rosario
|
197
|
+
America/Santa_Isabel
|
198
|
+
America/Santarem
|
199
|
+
America/Santiago
|
200
|
+
America/Santo_Domingo
|
201
|
+
America/Sao_Paulo
|
202
|
+
America/Scoresbysund
|
203
|
+
America/Shiprock
|
204
|
+
America/Sitka
|
205
|
+
America/St_Barthelemy
|
206
|
+
America/St_Johns
|
207
|
+
America/St_Kitts
|
208
|
+
America/St_Lucia
|
209
|
+
America/St_Thomas
|
210
|
+
America/St_Vincent
|
211
|
+
America/Swift_Current
|
212
|
+
America/Tegucigalpa
|
213
|
+
America/Thule
|
214
|
+
America/Thunder_Bay
|
215
|
+
America/Tijuana
|
216
|
+
America/Toronto
|
217
|
+
America/Tortola
|
218
|
+
America/Vancouver
|
219
|
+
America/Virgin
|
220
|
+
America/Whitehorse
|
221
|
+
America/Winnipeg
|
222
|
+
America/Yakutat
|
223
|
+
America/Yellowknife
|
224
|
+
Antarctica
|
225
|
+
Antarctica/Casey
|
226
|
+
Antarctica/Davis
|
227
|
+
Antarctica/DumontDUrville
|
228
|
+
Antarctica/Macquarie
|
229
|
+
Antarctica/Mawson
|
230
|
+
Antarctica/McMurdo
|
231
|
+
Antarctica/Palmer
|
232
|
+
Antarctica/Rothera
|
233
|
+
Antarctica/South_Pole
|
234
|
+
Antarctica/Syowa
|
235
|
+
Antarctica/Vostok
|
236
|
+
Arctic
|
237
|
+
Arctic/Longyearbyen
|
238
|
+
Asia
|
239
|
+
Asia/Aden
|
240
|
+
Asia/Almaty
|
241
|
+
Asia/Amman
|
242
|
+
Asia/Anadyr
|
243
|
+
Asia/Aqtau
|
244
|
+
Asia/Aqtobe
|
245
|
+
Asia/Ashgabat
|
246
|
+
Asia/Ashkhabad
|
247
|
+
Asia/Baghdad
|
248
|
+
Asia/Bahrain
|
249
|
+
Asia/Baku
|
250
|
+
Asia/Bangkok
|
251
|
+
Asia/Beirut
|
252
|
+
Asia/Bishkek
|
253
|
+
Asia/Brunei
|
254
|
+
Asia/Calcutta
|
255
|
+
Asia/Choibalsan
|
256
|
+
Asia/Chongqing
|
257
|
+
Asia/Chungking
|
258
|
+
Asia/Colombo
|
259
|
+
Asia/Dacca
|
260
|
+
Asia/Damascus
|
261
|
+
Asia/Dhaka
|
262
|
+
Asia/Dili
|
263
|
+
Asia/Dubai
|
264
|
+
Asia/Dushanbe
|
265
|
+
Asia/Gaza
|
266
|
+
Asia/Harbin
|
267
|
+
Asia/Ho_Chi_Minh
|
268
|
+
Asia/Hong_Kong
|
269
|
+
Asia/Hovd
|
270
|
+
Asia/Irkutsk
|
271
|
+
Asia/Istanbul
|
272
|
+
Asia/Jakarta
|
273
|
+
Asia/Jayapura
|
274
|
+
Asia/Jerusalem
|
275
|
+
Asia/Kabul
|
276
|
+
Asia/Kamchatka
|
277
|
+
Asia/Karachi
|
278
|
+
Asia/Kashgar
|
279
|
+
Asia/Kathmandu
|
280
|
+
Asia/Katmandu
|
281
|
+
Asia/Kolkata
|
282
|
+
Asia/Krasnoyarsk
|
283
|
+
Asia/Kuala_Lumpur
|
284
|
+
Asia/Kuching
|
285
|
+
Asia/Kuwait
|
286
|
+
Asia/Macao
|
287
|
+
Asia/Macau
|
288
|
+
Asia/Magadan
|
289
|
+
Asia/Makassar
|
290
|
+
Asia/Manila
|
291
|
+
Asia/Muscat
|
292
|
+
Asia/Nicosia
|
293
|
+
Asia/Novokuznetsk
|
294
|
+
Asia/Novosibirsk
|
295
|
+
Asia/Omsk
|
296
|
+
Asia/Oral
|
297
|
+
Asia/Phnom_Penh
|
298
|
+
Asia/Pontianak
|
299
|
+
Asia/Pyongyang
|
300
|
+
Asia/Qatar
|
301
|
+
Asia/Qyzylorda
|
302
|
+
Asia/Rangoon
|
303
|
+
Asia/Riyadh
|
304
|
+
Asia/Riyadh87
|
305
|
+
Asia/Riyadh88
|
306
|
+
Asia/Riyadh89
|
307
|
+
Asia/Saigon
|
308
|
+
Asia/Sakhalin
|
309
|
+
Asia/Samarkand
|
310
|
+
Asia/Seoul
|
311
|
+
Asia/Shanghai
|
312
|
+
Asia/Singapore
|
313
|
+
Asia/Taipei
|
314
|
+
Asia/Tashkent
|
315
|
+
Asia/Tbilisi
|
316
|
+
Asia/Tehran
|
317
|
+
Asia/Tel_Aviv
|
318
|
+
Asia/Thimbu
|
319
|
+
Asia/Thimphu
|
320
|
+
Asia/Tokyo
|
321
|
+
Asia/Ujung_Pandang
|
322
|
+
Asia/Ulaanbaatar
|
323
|
+
Asia/Ulan_Bator
|
324
|
+
Asia/Urumqi
|
325
|
+
Asia/Vientiane
|
326
|
+
Asia/Vladivostok
|
327
|
+
Asia/Yakutsk
|
328
|
+
Asia/Yekaterinburg
|
329
|
+
Asia/Yerevan
|
330
|
+
Atlantic
|
331
|
+
Atlantic/Azores
|
332
|
+
Atlantic/Bermuda
|
333
|
+
Atlantic/Canary
|
334
|
+
Atlantic/Cape_Verde
|
335
|
+
Atlantic/Faeroe
|
336
|
+
Atlantic/Faroe
|
337
|
+
Atlantic/Jan_Mayen
|
338
|
+
Atlantic/Madeira
|
339
|
+
Atlantic/Reykjavik
|
340
|
+
Atlantic/South_Georgia
|
341
|
+
Atlantic/St_Helena
|
342
|
+
Atlantic/Stanley
|
343
|
+
Australia
|
344
|
+
Australia/ACT
|
345
|
+
Australia/Adelaide
|
346
|
+
Australia/Brisbane
|
347
|
+
Australia/Broken_Hill
|
348
|
+
Australia/Canberra
|
349
|
+
Australia/Currie
|
350
|
+
Australia/Darwin
|
351
|
+
Australia/Eucla
|
352
|
+
Australia/Hobart
|
353
|
+
Australia/LHI
|
354
|
+
Australia/Lindeman
|
355
|
+
Australia/Lord_Howe
|
356
|
+
Australia/Melbourne
|
357
|
+
Australia/North
|
358
|
+
Australia/NSW
|
359
|
+
Australia/Perth
|
360
|
+
Australia/Queensland
|
361
|
+
Australia/South
|
362
|
+
Australia/Sydney
|
363
|
+
Australia/Tasmania
|
364
|
+
Australia/Victoria
|
365
|
+
Australia/West
|
366
|
+
Australia/Yancowinna
|
367
|
+
Brazil
|
368
|
+
Brazil/Acre
|
369
|
+
Brazil/DeNoronha
|
370
|
+
Brazil/East
|
371
|
+
Brazil/West
|
372
|
+
Canada
|
373
|
+
Canada/Atlantic
|
374
|
+
Canada/Central
|
375
|
+
Canada/East-Saskatchewan
|
376
|
+
Canada/Eastern
|
377
|
+
Canada/Mountain
|
378
|
+
Canada/Newfoundland
|
379
|
+
Canada/Pacific
|
380
|
+
Canada/Saskatchewan
|
381
|
+
Canada/Yukon
|
382
|
+
CET
|
383
|
+
Chile
|
384
|
+
Chile/Continental
|
385
|
+
Chile/EasterIsland
|
386
|
+
CST6CDT
|
387
|
+
Cuba
|
388
|
+
EET
|
389
|
+
Egypt
|
390
|
+
Eire
|
391
|
+
EST
|
392
|
+
EST5EDT
|
393
|
+
Etc
|
394
|
+
Etc/GMT
|
395
|
+
Etc/GMT+0
|
396
|
+
Etc/GMT+1
|
397
|
+
Etc/GMT+10
|
398
|
+
Etc/GMT+11
|
399
|
+
Etc/GMT+12
|
400
|
+
Etc/GMT+2
|
401
|
+
Etc/GMT+3
|
402
|
+
Etc/GMT+4
|
403
|
+
Etc/GMT+5
|
404
|
+
Etc/GMT+6
|
405
|
+
Etc/GMT+7
|
406
|
+
Etc/GMT+8
|
407
|
+
Etc/GMT+9
|
408
|
+
Etc/GMT-0
|
409
|
+
Etc/GMT-1
|
410
|
+
Etc/GMT-10
|
411
|
+
Etc/GMT-11
|
412
|
+
Etc/GMT-12
|
413
|
+
Etc/GMT-13
|
414
|
+
Etc/GMT-14
|
415
|
+
Etc/GMT-2
|
416
|
+
Etc/GMT-3
|
417
|
+
Etc/GMT-4
|
418
|
+
Etc/GMT-5
|
419
|
+
Etc/GMT-6
|
420
|
+
Etc/GMT-7
|
421
|
+
Etc/GMT-8
|
422
|
+
Etc/GMT-9
|
423
|
+
Etc/GMT0
|
424
|
+
Etc/Greenwich
|
425
|
+
Etc/UCT
|
426
|
+
Etc/Universal
|
427
|
+
Etc/UTC
|
428
|
+
Etc/Zulu
|
429
|
+
Europe
|
430
|
+
Europe/Amsterdam
|
431
|
+
Europe/Andorra
|
432
|
+
Europe/Athens
|
433
|
+
Europe/Belfast
|
434
|
+
Europe/Belgrade
|
435
|
+
Europe/Berlin
|
436
|
+
Europe/Bratislava
|
437
|
+
Europe/Brussels
|
438
|
+
Europe/Bucharest
|
439
|
+
Europe/Budapest
|
440
|
+
Europe/Chisinau
|
441
|
+
Europe/Copenhagen
|
442
|
+
Europe/Dublin
|
443
|
+
Europe/Gibraltar
|
444
|
+
Europe/Guernsey
|
445
|
+
Europe/Helsinki
|
446
|
+
Europe/Isle_of_Man
|
447
|
+
Europe/Istanbul
|
448
|
+
Europe/Jersey
|
449
|
+
Europe/Kaliningrad
|
450
|
+
Europe/Kiev
|
451
|
+
Europe/Lisbon
|
452
|
+
Europe/Ljubljana
|
453
|
+
Europe/London
|
454
|
+
Europe/Luxembourg
|
455
|
+
Europe/Madrid
|
456
|
+
Europe/Malta
|
457
|
+
Europe/Mariehamn
|
458
|
+
Europe/Minsk
|
459
|
+
Europe/Monaco
|
460
|
+
Europe/Moscow
|
461
|
+
Europe/Nicosia
|
462
|
+
Europe/Oslo
|
463
|
+
Europe/Paris
|
464
|
+
Europe/Podgorica
|
465
|
+
Europe/Prague
|
466
|
+
Europe/Riga
|
467
|
+
Europe/Rome
|
468
|
+
Europe/Samara
|
469
|
+
Europe/San_Marino
|
470
|
+
Europe/Sarajevo
|
471
|
+
Europe/Simferopol
|
472
|
+
Europe/Skopje
|
473
|
+
Europe/Sofia
|
474
|
+
Europe/Stockholm
|
475
|
+
Europe/Tallinn
|
476
|
+
Europe/Tirane
|
477
|
+
Europe/Tiraspol
|
478
|
+
Europe/Uzhgorod
|
479
|
+
Europe/Vaduz
|
480
|
+
Europe/Vatican
|
481
|
+
Europe/Vienna
|
482
|
+
Europe/Vilnius
|
483
|
+
Europe/Volgograd
|
484
|
+
Europe/Warsaw
|
485
|
+
Europe/Zagreb
|
486
|
+
Europe/Zaporozhye
|
487
|
+
Europe/Zurich
|
488
|
+
Factory
|
489
|
+
GB
|
490
|
+
GB-Eire
|
491
|
+
GMT
|
492
|
+
GMT+0
|
493
|
+
GMT-0
|
494
|
+
GMT0
|
495
|
+
Greenwich
|
496
|
+
Hongkong
|
497
|
+
HST
|
498
|
+
Iceland
|
499
|
+
Indian
|
500
|
+
Indian/Antananarivo
|
501
|
+
Indian/Chagos
|
502
|
+
Indian/Christmas
|
503
|
+
Indian/Cocos
|
504
|
+
Indian/Comoro
|
505
|
+
Indian/Kerguelen
|
506
|
+
Indian/Mahe
|
507
|
+
Indian/Maldives
|
508
|
+
Indian/Mauritius
|
509
|
+
Indian/Mayotte
|
510
|
+
Indian/Reunion
|
511
|
+
Iran
|
512
|
+
iso3166.tab
|
513
|
+
Israel
|
514
|
+
Jamaica
|
515
|
+
Japan
|
516
|
+
Kwajalein
|
517
|
+
Libya
|
518
|
+
MET
|
519
|
+
Mexico
|
520
|
+
Mexico/BajaNorte
|
521
|
+
Mexico/BajaSur
|
522
|
+
Mexico/General
|
523
|
+
Mideast
|
524
|
+
Mideast/Riyadh87
|
525
|
+
Mideast/Riyadh88
|
526
|
+
Mideast/Riyadh89
|
527
|
+
MST
|
528
|
+
MST7MDT
|
529
|
+
Navajo
|
530
|
+
NZ
|
531
|
+
NZ-CHAT
|
532
|
+
Pacific
|
533
|
+
Pacific/Apia
|
534
|
+
Pacific/Auckland
|
535
|
+
Pacific/Chatham
|
536
|
+
Pacific/Chuuk
|
537
|
+
Pacific/Easter
|
538
|
+
Pacific/Efate
|
539
|
+
Pacific/Enderbury
|
540
|
+
Pacific/Fakaofo
|
541
|
+
Pacific/Fiji
|
542
|
+
Pacific/Funafuti
|
543
|
+
Pacific/Galapagos
|
544
|
+
Pacific/Gambier
|
545
|
+
Pacific/Guadalcanal
|
546
|
+
Pacific/Guam
|
547
|
+
Pacific/Honolulu
|
548
|
+
Pacific/Johnston
|
549
|
+
Pacific/Kiritimati
|
550
|
+
Pacific/Kosrae
|
551
|
+
Pacific/Kwajalein
|
552
|
+
Pacific/Majuro
|
553
|
+
Pacific/Marquesas
|
554
|
+
Pacific/Midway
|
555
|
+
Pacific/Nauru
|
556
|
+
Pacific/Niue
|
557
|
+
Pacific/Norfolk
|
558
|
+
Pacific/Noumea
|
559
|
+
Pacific/Pago_Pago
|
560
|
+
Pacific/Palau
|
561
|
+
Pacific/Pitcairn
|
562
|
+
Pacific/Pohnpei
|
563
|
+
Pacific/Ponape
|
564
|
+
Pacific/Port_Moresby
|
565
|
+
Pacific/Rarotonga
|
566
|
+
Pacific/Saipan
|
567
|
+
Pacific/Samoa
|
568
|
+
Pacific/Tahiti
|
569
|
+
Pacific/Tarawa
|
570
|
+
Pacific/Tongatapu
|
571
|
+
Pacific/Truk
|
572
|
+
Pacific/Wake
|
573
|
+
Pacific/Wallis
|
574
|
+
Pacific/Yap
|
575
|
+
Poland
|
576
|
+
Portugal
|
577
|
+
posixrules
|
578
|
+
PRC
|
579
|
+
PST8PDT
|
580
|
+
ROC
|
581
|
+
ROK
|
582
|
+
Singapore
|
583
|
+
Turkey
|
584
|
+
UCT
|
585
|
+
Universal
|
586
|
+
US
|
587
|
+
US/Alaska
|
588
|
+
US/Aleutian
|
589
|
+
US/Arizona
|
590
|
+
US/Central
|
591
|
+
US/East-Indiana
|
592
|
+
US/Eastern
|
593
|
+
US/Hawaii
|
594
|
+
US/Indiana-Starke
|
595
|
+
US/Michigan
|
596
|
+
US/Mountain
|
597
|
+
US/Pacific
|
598
|
+
US/Samoa
|
599
|
+
UTC
|
600
|
+
W-SU
|
601
|
+
WET
|
602
|
+
zone.tab
|
603
|
+
Zulu
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dr Nic Williams
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70249305163460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.14.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70249305163460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: engineyard
|
27
|
-
requirement: &
|
27
|
+
requirement: &70249305162760 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.4.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70249305162760
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70249305162080 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.9.2
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70249305162080
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: cucumber
|
49
|
-
requirement: &
|
49
|
+
requirement: &70249305177800 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.1.2
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70249305177800
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70249305176900 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 2.7.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70249305176900
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: launchy
|
71
|
-
requirement: &
|
71
|
+
requirement: &70249305176100 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70249305176100
|
80
80
|
description: Tools to generate, upload, test and apply chef recipes for Engine Yard
|
81
81
|
Cloud.
|
82
82
|
email:
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- features/support/common.rb
|
108
108
|
- features/support/env.rb
|
109
109
|
- features/support/matchers.rb
|
110
|
+
- features/timezone_override.feature
|
110
111
|
- features/wrap-sm-extension.feature
|
111
112
|
- fixtures/projects/rails/Gemfile
|
112
113
|
- fixtures/projects/rails/Rakefile
|
@@ -139,9 +140,12 @@ files:
|
|
139
140
|
- lib/engineyard-recipes/generators/sm_generator/templates/cookbooks/%recipe_name%/attributes/recipe.rb.tt
|
140
141
|
- lib/engineyard-recipes/generators/sm_generator/templates/cookbooks/%recipe_name%/recipes/default.rb.tt
|
141
142
|
- lib/engineyard-recipes/generators/sm_generator/templates/cookbooks/%recipe_name%/recipes/install_sm_ext.rb.tt
|
143
|
+
- lib/engineyard-recipes/generators/timezone_generator.rb
|
144
|
+
- lib/engineyard-recipes/generators/timezone_generator/templates/cookbooks/%recipe_name%/recipes/default.rb.tt
|
142
145
|
- lib/engineyard-recipes/git_cmd.rb
|
143
146
|
- lib/engineyard-recipes/thor-ext/actions/directory.rb
|
144
147
|
- lib/engineyard-recipes/version.rb
|
148
|
+
- lib/engineyard-recipes/zonefiles
|
145
149
|
- spec/fetch_uri_spec.rb
|
146
150
|
- spec/spec_helper.rb
|
147
151
|
homepage: ''
|
@@ -156,15 +160,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
160
|
- - ! '>='
|
157
161
|
- !ruby/object:Gem::Version
|
158
162
|
version: '0'
|
159
|
-
segments:
|
160
|
-
- 0
|
161
|
-
hash: 4716824879858602
|
162
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
164
|
none: false
|
164
165
|
requirements:
|
165
|
-
- - ! '
|
166
|
+
- - ! '>='
|
166
167
|
- !ruby/object:Gem::Version
|
167
|
-
version:
|
168
|
+
version: '0'
|
168
169
|
requirements: []
|
169
170
|
rubyforge_project: engineyard-recipes
|
170
171
|
rubygems_version: 1.8.10
|
@@ -184,6 +185,7 @@ test_files:
|
|
184
185
|
- features/support/common.rb
|
185
186
|
- features/support/env.rb
|
186
187
|
- features/support/matchers.rb
|
188
|
+
- features/timezone_override.feature
|
187
189
|
- features/wrap-sm-extension.feature
|
188
190
|
- spec/fetch_uri_spec.rb
|
189
191
|
- spec/spec_helper.rb
|