aws-codedeploy-agent 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/.gitignore +2 -0
  2. data/CHANGES.md +3 -0
  3. data/Gemfile +13 -0
  4. data/LICENSE +177 -0
  5. data/NOTICE +2 -0
  6. data/README.md +16 -0
  7. data/aws-codedeploy-agent.gemspec +39 -0
  8. data/bin/codedeploy-agent +78 -0
  9. data/bin/codedeploy-install +15 -0
  10. data/bin/codedeploy-uninstall +13 -0
  11. data/certs/host-agent-deployment-signer-ca-chain.pem +76 -0
  12. data/conf/codedeployagent.yml +9 -0
  13. data/init.d/codedeploy-agent +61 -0
  14. data/lib/core_ext.rb +71 -0
  15. data/lib/instance_agent.rb +35 -0
  16. data/lib/instance_agent/agent/base.rb +34 -0
  17. data/lib/instance_agent/codedeploy_plugin/application_specification/ace_info.rb +133 -0
  18. data/lib/instance_agent/codedeploy_plugin/application_specification/acl_info.rb +163 -0
  19. data/lib/instance_agent/codedeploy_plugin/application_specification/application_specification.rb +142 -0
  20. data/lib/instance_agent/codedeploy_plugin/application_specification/context_info.rb +23 -0
  21. data/lib/instance_agent/codedeploy_plugin/application_specification/file_info.rb +23 -0
  22. data/lib/instance_agent/codedeploy_plugin/application_specification/linux_permission_info.rb +121 -0
  23. data/lib/instance_agent/codedeploy_plugin/application_specification/mode_info.rb +66 -0
  24. data/lib/instance_agent/codedeploy_plugin/application_specification/range_info.rb +134 -0
  25. data/lib/instance_agent/codedeploy_plugin/application_specification/script_info.rb +27 -0
  26. data/lib/instance_agent/codedeploy_plugin/codedeploy_control.rb +72 -0
  27. data/lib/instance_agent/codedeploy_plugin/command_executor.rb +357 -0
  28. data/lib/instance_agent/codedeploy_plugin/command_poller.rb +146 -0
  29. data/lib/instance_agent/codedeploy_plugin/deployment_specification.rb +150 -0
  30. data/lib/instance_agent/codedeploy_plugin/hook_executor.rb +206 -0
  31. data/lib/instance_agent/codedeploy_plugin/install_instruction.rb +374 -0
  32. data/lib/instance_agent/codedeploy_plugin/installer.rb +143 -0
  33. data/lib/instance_agent/codedeploy_plugin/request_helper.rb +28 -0
  34. data/lib/instance_agent/config.rb +43 -0
  35. data/lib/instance_agent/log.rb +3 -0
  36. data/lib/instance_agent/platform.rb +17 -0
  37. data/lib/instance_agent/platform/linux_util.rb +57 -0
  38. data/lib/instance_agent/runner/child.rb +57 -0
  39. data/lib/instance_agent/runner/master.rb +103 -0
  40. data/lib/instance_metadata.rb +47 -0
  41. data/test/certificate_helper.rb +120 -0
  42. data/test/helpers/instance_agent_helper.rb +25 -0
  43. data/test/instance_agent/agent/base_test.rb +49 -0
  44. data/test/instance_agent/codedeploy_plugin/application_specification_test.rb +1710 -0
  45. data/test/instance_agent/codedeploy_plugin/codedeploy_control_test.rb +51 -0
  46. data/test/instance_agent/codedeploy_plugin/command_executor_test.rb +513 -0
  47. data/test/instance_agent/codedeploy_plugin/command_poller_test.rb +459 -0
  48. data/test/instance_agent/codedeploy_plugin/deployment_specification_test.rb +335 -0
  49. data/test/instance_agent/codedeploy_plugin/hook_executor_test.rb +250 -0
  50. data/test/instance_agent/codedeploy_plugin/install_instruction_test.rb +566 -0
  51. data/test/instance_agent/codedeploy_plugin/installer_test.rb +519 -0
  52. data/test/instance_agent/codedeploy_plugin/request_helper_test.rb +37 -0
  53. data/test/instance_agent/config_test.rb +64 -0
  54. data/test/instance_agent/runner/child_test.rb +87 -0
  55. data/test/instance_metadata_test.rb +97 -0
  56. data/test/test_helper.rb +16 -0
  57. data/vendor/gems/.codedeploy-commands-1.0.0.created.rid +1 -0
  58. data/vendor/gems/codedeploy-commands/apis/CodeDeployCommand.api.json +372 -0
  59. data/vendor/gems/codedeploy-commands/codedeploy-commands-1.0.0.gemspec +28 -0
  60. data/vendor/gems/codedeploy-commands/lib/aws/codedeploy_commands.rb +18 -0
  61. data/vendor/gems/codedeploy-commands/lib/aws/plugins/certificate_authority.rb +12 -0
  62. data/vendor/gems/codedeploy-commands/lib/aws/plugins/deploy_control_endpoint.rb +22 -0
  63. data/vendor/gems/process_manager/README.md +1 -0
  64. data/vendor/gems/process_manager/lib/blank.rb +153 -0
  65. data/vendor/gems/process_manager/lib/core_ext.rb +73 -0
  66. data/vendor/gems/process_manager/lib/process_manager.rb +49 -0
  67. data/vendor/gems/process_manager/lib/process_manager/child.rb +119 -0
  68. data/vendor/gems/process_manager/lib/process_manager/config.rb +112 -0
  69. data/vendor/gems/process_manager/lib/process_manager/log.rb +107 -0
  70. data/vendor/gems/process_manager/lib/process_manager/master.rb +322 -0
  71. data/vendor/gems/process_manager/process_manager-0.0.13.gemspec +42 -0
  72. data/vendor/specifications/aws-sdk-core-2.0.5.gemspec +39 -0
  73. data/vendor/specifications/builder-3.2.2.gemspec +29 -0
  74. data/vendor/specifications/codedeploy-commands-1.0.0.gemspec +28 -0
  75. data/vendor/specifications/gli-2.5.6.gemspec +51 -0
  76. data/vendor/specifications/jamespath-0.5.1.gemspec +35 -0
  77. data/vendor/specifications/little-plugger-1.1.3.gemspec +32 -0
  78. data/vendor/specifications/logging-1.8.1.gemspec +44 -0
  79. data/vendor/specifications/multi_json-1.7.7.gemspec +30 -0
  80. data/vendor/specifications/multi_json-1.8.4.gemspec +30 -0
  81. data/vendor/specifications/multi_xml-0.5.5.gemspec +30 -0
  82. data/vendor/specifications/process_manager-0.0.13.gemspec +42 -0
  83. data/vendor/specifications/simple_pid-0.2.1.gemspec +28 -0
  84. metadata +377 -0
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "simple_pid"
5
+ s.version = "0.2.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["watsonian"]
9
+ s.date = "2010-06-01"
10
+ s.description = "A simple, but complete library for managing pidfiles."
11
+ s.email = "watsonian@gmail.com"
12
+ s.extra_rdoc_files = ["LICENSE", "README.rdoc"]
13
+ s.files = ["LICENSE", "README.rdoc"]
14
+ s.homepage = "http://github.com/watsonian/simple_pid"
15
+ s.rdoc_options = ["--charset=UTF-8"]
16
+ s.require_paths = ["lib"]
17
+ s.rubygems_version = "1.8.23"
18
+ s.summary = "A simple, but complete library for managing pidfiles."
19
+
20
+ if s.respond_to? :specification_version then
21
+ s.specification_version = 3
22
+
23
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24
+ else
25
+ end
26
+ else
27
+ end
28
+ end
metadata ADDED
@@ -0,0 +1,377 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-codedeploy-agent
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Amazon Web Services
9
+ - Pan Thomakos
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2015-01-29 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: json
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rubyzip
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: httpclient
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ - !ruby/object:Gem::Dependency
80
+ name: gli
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ~>
85
+ - !ruby/object:Gem::Version
86
+ version: '2.5'
87
+ type: :runtime
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: '2.5'
95
+ - !ruby/object:Gem::Dependency
96
+ name: aws-sdk-core
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
102
+ version: 2.0.5
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 2.0.5
111
+ - !ruby/object:Gem::Dependency
112
+ name: builder
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ version: 3.2.2
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ~>
125
+ - !ruby/object:Gem::Version
126
+ version: 3.2.2
127
+ - !ruby/object:Gem::Dependency
128
+ name: gli
129
+ requirement: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ~>
133
+ - !ruby/object:Gem::Version
134
+ version: 2.5.6
135
+ type: :runtime
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 2.5.6
143
+ - !ruby/object:Gem::Dependency
144
+ name: jamespath
145
+ requirement: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ~>
149
+ - !ruby/object:Gem::Version
150
+ version: 0.5.1
151
+ type: :runtime
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ~>
157
+ - !ruby/object:Gem::Version
158
+ version: 0.5.1
159
+ - !ruby/object:Gem::Dependency
160
+ name: little-plugger
161
+ requirement: !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: 1.1.3
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ~>
173
+ - !ruby/object:Gem::Version
174
+ version: 1.1.3
175
+ - !ruby/object:Gem::Dependency
176
+ name: logging
177
+ requirement: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ~>
181
+ - !ruby/object:Gem::Version
182
+ version: 1.8.1
183
+ type: :runtime
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ~>
189
+ - !ruby/object:Gem::Version
190
+ version: 1.8.1
191
+ - !ruby/object:Gem::Dependency
192
+ name: multi_json
193
+ requirement: !ruby/object:Gem::Requirement
194
+ none: false
195
+ requirements:
196
+ - - ~>
197
+ - !ruby/object:Gem::Version
198
+ version: 1.8.4
199
+ type: :runtime
200
+ prerelease: false
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ~>
205
+ - !ruby/object:Gem::Version
206
+ version: 1.8.4
207
+ - !ruby/object:Gem::Dependency
208
+ name: multi_xml
209
+ requirement: !ruby/object:Gem::Requirement
210
+ none: false
211
+ requirements:
212
+ - - ~>
213
+ - !ruby/object:Gem::Version
214
+ version: 0.5.5
215
+ type: :runtime
216
+ prerelease: false
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ~>
221
+ - !ruby/object:Gem::Version
222
+ version: 0.5.5
223
+ - !ruby/object:Gem::Dependency
224
+ name: simple_pid
225
+ requirement: !ruby/object:Gem::Requirement
226
+ none: false
227
+ requirements:
228
+ - - ~>
229
+ - !ruby/object:Gem::Version
230
+ version: 0.2.1
231
+ type: :runtime
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ none: false
235
+ requirements:
236
+ - - ~>
237
+ - !ruby/object:Gem::Version
238
+ version: 0.2.1
239
+ description: CodeDeploy Agent is responsible for doing the actual work of deploying
240
+ software on an individual EC2 instance.
241
+ email:
242
+ - pan.thomakos@gmail.com
243
+ executables:
244
+ - codedeploy-agent
245
+ - codedeploy-install
246
+ - codedeploy-uninstall
247
+ extensions: []
248
+ extra_rdoc_files: []
249
+ files:
250
+ - .gitignore
251
+ - CHANGES.md
252
+ - Gemfile
253
+ - LICENSE
254
+ - NOTICE
255
+ - README.md
256
+ - aws-codedeploy-agent.gemspec
257
+ - bin/codedeploy-agent
258
+ - bin/codedeploy-install
259
+ - bin/codedeploy-uninstall
260
+ - certs/host-agent-deployment-signer-ca-chain.pem
261
+ - conf/codedeployagent.yml
262
+ - init.d/codedeploy-agent
263
+ - lib/core_ext.rb
264
+ - lib/instance_agent.rb
265
+ - lib/instance_agent/agent/base.rb
266
+ - lib/instance_agent/codedeploy_plugin/application_specification/ace_info.rb
267
+ - lib/instance_agent/codedeploy_plugin/application_specification/acl_info.rb
268
+ - lib/instance_agent/codedeploy_plugin/application_specification/application_specification.rb
269
+ - lib/instance_agent/codedeploy_plugin/application_specification/context_info.rb
270
+ - lib/instance_agent/codedeploy_plugin/application_specification/file_info.rb
271
+ - lib/instance_agent/codedeploy_plugin/application_specification/linux_permission_info.rb
272
+ - lib/instance_agent/codedeploy_plugin/application_specification/mode_info.rb
273
+ - lib/instance_agent/codedeploy_plugin/application_specification/range_info.rb
274
+ - lib/instance_agent/codedeploy_plugin/application_specification/script_info.rb
275
+ - lib/instance_agent/codedeploy_plugin/codedeploy_control.rb
276
+ - lib/instance_agent/codedeploy_plugin/command_executor.rb
277
+ - lib/instance_agent/codedeploy_plugin/command_poller.rb
278
+ - lib/instance_agent/codedeploy_plugin/deployment_specification.rb
279
+ - lib/instance_agent/codedeploy_plugin/hook_executor.rb
280
+ - lib/instance_agent/codedeploy_plugin/install_instruction.rb
281
+ - lib/instance_agent/codedeploy_plugin/installer.rb
282
+ - lib/instance_agent/codedeploy_plugin/request_helper.rb
283
+ - lib/instance_agent/config.rb
284
+ - lib/instance_agent/log.rb
285
+ - lib/instance_agent/platform.rb
286
+ - lib/instance_agent/platform/linux_util.rb
287
+ - lib/instance_agent/runner/child.rb
288
+ - lib/instance_agent/runner/master.rb
289
+ - lib/instance_metadata.rb
290
+ - test/certificate_helper.rb
291
+ - test/helpers/instance_agent_helper.rb
292
+ - test/instance_agent/agent/base_test.rb
293
+ - test/instance_agent/codedeploy_plugin/application_specification_test.rb
294
+ - test/instance_agent/codedeploy_plugin/codedeploy_control_test.rb
295
+ - test/instance_agent/codedeploy_plugin/command_executor_test.rb
296
+ - test/instance_agent/codedeploy_plugin/command_poller_test.rb
297
+ - test/instance_agent/codedeploy_plugin/deployment_specification_test.rb
298
+ - test/instance_agent/codedeploy_plugin/hook_executor_test.rb
299
+ - test/instance_agent/codedeploy_plugin/install_instruction_test.rb
300
+ - test/instance_agent/codedeploy_plugin/installer_test.rb
301
+ - test/instance_agent/codedeploy_plugin/request_helper_test.rb
302
+ - test/instance_agent/config_test.rb
303
+ - test/instance_agent/runner/child_test.rb
304
+ - test/instance_metadata_test.rb
305
+ - test/test_helper.rb
306
+ - vendor/gems/.codedeploy-commands-1.0.0.created.rid
307
+ - vendor/gems/codedeploy-commands/apis/CodeDeployCommand.api.json
308
+ - vendor/gems/codedeploy-commands/codedeploy-commands-1.0.0.gemspec
309
+ - vendor/gems/codedeploy-commands/lib/aws/codedeploy_commands.rb
310
+ - vendor/gems/codedeploy-commands/lib/aws/plugins/certificate_authority.rb
311
+ - vendor/gems/codedeploy-commands/lib/aws/plugins/deploy_control_endpoint.rb
312
+ - vendor/gems/process_manager/README.md
313
+ - vendor/gems/process_manager/lib/blank.rb
314
+ - vendor/gems/process_manager/lib/core_ext.rb
315
+ - vendor/gems/process_manager/lib/process_manager.rb
316
+ - vendor/gems/process_manager/lib/process_manager/child.rb
317
+ - vendor/gems/process_manager/lib/process_manager/config.rb
318
+ - vendor/gems/process_manager/lib/process_manager/log.rb
319
+ - vendor/gems/process_manager/lib/process_manager/master.rb
320
+ - vendor/gems/process_manager/process_manager-0.0.13.gemspec
321
+ - vendor/specifications/aws-sdk-core-2.0.5.gemspec
322
+ - vendor/specifications/builder-3.2.2.gemspec
323
+ - vendor/specifications/codedeploy-commands-1.0.0.gemspec
324
+ - vendor/specifications/gli-2.5.6.gemspec
325
+ - vendor/specifications/jamespath-0.5.1.gemspec
326
+ - vendor/specifications/little-plugger-1.1.3.gemspec
327
+ - vendor/specifications/logging-1.8.1.gemspec
328
+ - vendor/specifications/multi_json-1.7.7.gemspec
329
+ - vendor/specifications/multi_json-1.8.4.gemspec
330
+ - vendor/specifications/multi_xml-0.5.5.gemspec
331
+ - vendor/specifications/process_manager-0.0.13.gemspec
332
+ - vendor/specifications/simple_pid-0.2.1.gemspec
333
+ homepage: https://github.com/panthomakos/aws-codedeploy-agent
334
+ licenses:
335
+ - Apache-2.0
336
+ post_install_message:
337
+ rdoc_options: []
338
+ require_paths:
339
+ - lib
340
+ - vendor/gems/codedeploy-commands/lib
341
+ - vendor/gems/process_manager/lib
342
+ required_ruby_version: !ruby/object:Gem::Requirement
343
+ none: false
344
+ requirements:
345
+ - - ! '>='
346
+ - !ruby/object:Gem::Version
347
+ version: '0'
348
+ required_rubygems_version: !ruby/object:Gem::Requirement
349
+ none: false
350
+ requirements:
351
+ - - ! '>='
352
+ - !ruby/object:Gem::Version
353
+ version: '0'
354
+ requirements: []
355
+ rubyforge_project:
356
+ rubygems_version: 1.8.23.2
357
+ signing_key:
358
+ specification_version: 3
359
+ summary: AWS CodeDeploy Agent
360
+ test_files:
361
+ - test/certificate_helper.rb
362
+ - test/helpers/instance_agent_helper.rb
363
+ - test/instance_agent/agent/base_test.rb
364
+ - test/instance_agent/codedeploy_plugin/application_specification_test.rb
365
+ - test/instance_agent/codedeploy_plugin/codedeploy_control_test.rb
366
+ - test/instance_agent/codedeploy_plugin/command_executor_test.rb
367
+ - test/instance_agent/codedeploy_plugin/command_poller_test.rb
368
+ - test/instance_agent/codedeploy_plugin/deployment_specification_test.rb
369
+ - test/instance_agent/codedeploy_plugin/hook_executor_test.rb
370
+ - test/instance_agent/codedeploy_plugin/install_instruction_test.rb
371
+ - test/instance_agent/codedeploy_plugin/installer_test.rb
372
+ - test/instance_agent/codedeploy_plugin/request_helper_test.rb
373
+ - test/instance_agent/config_test.rb
374
+ - test/instance_agent/runner/child_test.rb
375
+ - test/instance_metadata_test.rb
376
+ - test/test_helper.rb
377
+ has_rdoc: