aws-codedeploy-agent 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -1
  3. data/.travis.yml +10 -0
  4. data/CHANGES.md +5 -0
  5. data/Gemfile +6 -3
  6. data/README.md +35 -0
  7. data/Rakefile +52 -0
  8. data/aws-codedeploy-agent.gemspec +5 -10
  9. data/conf/codedeployagent.yml +1 -0
  10. data/features/AwsCredentials.yml +4 -0
  11. data/features/agent.feature +11 -0
  12. data/features/aws_credentials.rb +35 -0
  13. data/features/step_definitions.rb +233 -0
  14. data/init.d/codedeploy-agent +11 -6
  15. data/lib/instance_agent.rb +1 -1
  16. data/lib/instance_agent/config.rb +3 -1
  17. data/lib/instance_agent/log.rb +18 -0
  18. data/lib/instance_agent/platform/linux_util.rb +27 -5
  19. data/lib/instance_agent/plugins/codedeploy/application_specification/application_specification.rb +2 -1
  20. data/lib/instance_agent/plugins/codedeploy/application_specification/file_info.rb +2 -2
  21. data/lib/instance_agent/plugins/codedeploy/application_specification/script_info.rb +3 -2
  22. data/lib/instance_agent/plugins/codedeploy/codedeploy_control.rb +15 -14
  23. data/lib/instance_agent/plugins/codedeploy/command_executor.rb +34 -6
  24. data/lib/instance_agent/plugins/codedeploy/command_poller.rb +12 -1
  25. data/lib/instance_agent/plugins/codedeploy/deployment_specification.rb +2 -12
  26. data/lib/instance_agent/plugins/codedeploy/hook_executor.rb +8 -4
  27. data/lib/instance_agent/plugins/codedeploy/install_instruction.rb +3 -1
  28. data/lib/instance_metadata.rb +1 -1
  29. data/test/instance_agent/config_test.rb +3 -1
  30. data/test/instance_agent/platform/linux_util_test.rb +35 -0
  31. data/test/instance_agent/plugins/codedeploy/application_specification_test.rb +7 -6
  32. data/test/instance_agent/plugins/codedeploy/command_executor_test.rb +13 -10
  33. data/test/instance_agent/plugins/codedeploy/command_poller_test.rb +28 -6
  34. data/test/instance_agent/plugins/codedeploy/deployment_specification_test.rb +9 -9
  35. data/test/instance_agent/plugins/codedeploy/hook_executor_test.rb +12 -4
  36. data/test/test_helper.rb +6 -1
  37. data/vendor/gems/codedeploy-commands/apis/CodeDeployCommand.api.json +1 -0
  38. data/vendor/gems/codedeploy-commands/lib/aws/codedeploy_commands.rb +2 -0
  39. data/vendor/gems/codedeploy-commands/lib/aws/plugins/deploy_agent_version.rb +31 -0
  40. data/vendor/gems/codedeploy-commands/lib/aws/plugins/deploy_control_endpoint.rb +1 -12
  41. data/vendor/gems/process_manager/lib/process_manager/master.rb +3 -3
  42. data/vendor/specifications/codedeploy-commands-1.0.0.gemspec +5 -5
  43. metadata +52 -149
  44. data/vendor/gems/codedeploy-commands/codedeploy-commands-1.0.0.gemspec +0 -28
  45. data/vendor/gems/process_manager/process_manager-0.0.13.gemspec +0 -42
  46. data/vendor/specifications/aws-sdk-core-2.0.42.gemspec +0 -37
  47. data/vendor/specifications/builder-3.2.2.gemspec +0 -29
  48. data/vendor/specifications/gli-2.5.6.gemspec +0 -51
  49. data/vendor/specifications/jmespath-1.0.1.gemspec +0 -29
  50. data/vendor/specifications/little-plugger-1.1.3.gemspec +0 -32
  51. data/vendor/specifications/logging-1.8.1.gemspec +0 -44
  52. data/vendor/specifications/multi_json-1.7.7.gemspec +0 -30
  53. data/vendor/specifications/multi_json-1.8.4.gemspec +0 -30
  54. data/vendor/specifications/multi_xml-0.5.5.gemspec +0 -30
  55. data/vendor/specifications/simple_pid-0.2.1.gemspec +0 -28
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-codedeploy-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Amazon Web Services
@@ -10,214 +9,118 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2015-07-15 00:00:00.000000000 Z
12
+ date: 2016-01-26 00:00:00.000000000 Z
14
13
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: archive-tar-minitar
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: 0.5.2
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.5.2
31
- - !ruby/object:Gem::Dependency
32
- name: aws-sdk-core
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ~>
37
- - !ruby/object:Gem::Version
38
- version: 2.0.42
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: 2.0.42
47
- - !ruby/object:Gem::Dependency
48
- name: builder
49
- requirement: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 3.2.2
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: 3.2.2
63
14
  - !ruby/object:Gem::Dependency
64
15
  name: gli
65
16
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
17
  requirements:
68
- - - ~>
18
+ - - "~>"
69
19
  - !ruby/object:Gem::Version
70
20
  version: '2.5'
71
21
  type: :runtime
72
22
  prerelease: false
73
23
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
24
  requirements:
76
- - - ~>
25
+ - - "~>"
77
26
  - !ruby/object:Gem::Version
78
27
  version: '2.5'
79
- - !ruby/object:Gem::Dependency
80
- name: httpclient
81
- requirement: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ! '>='
85
- - !ruby/object:Gem::Version
86
- version: '0'
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: '0'
95
28
  - !ruby/object:Gem::Dependency
96
29
  name: json_pure
97
30
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
31
  requirements:
100
- - - ~>
32
+ - - "~>"
101
33
  - !ruby/object:Gem::Version
102
34
  version: '1.6'
103
35
  type: :runtime
104
36
  prerelease: false
105
37
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
38
  requirements:
108
- - - ~>
39
+ - - "~>"
109
40
  - !ruby/object:Gem::Version
110
41
  version: '1.6'
111
42
  - !ruby/object:Gem::Dependency
112
- name: little-plugger
113
- requirement: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ~>
117
- - !ruby/object:Gem::Version
118
- version: 1.1.3
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: 1.1.3
127
- - !ruby/object:Gem::Dependency
128
- name: logging
43
+ name: archive-tar-minitar
129
44
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
45
  requirements:
132
- - - ~>
46
+ - - "~>"
133
47
  - !ruby/object:Gem::Version
134
- version: '1.8'
48
+ version: 0.5.2
135
49
  type: :runtime
136
50
  prerelease: false
137
51
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
52
  requirements:
140
- - - ~>
53
+ - - "~>"
141
54
  - !ruby/object:Gem::Version
142
- version: '1.8'
55
+ version: 0.5.2
143
56
  - !ruby/object:Gem::Dependency
144
- name: multi_json
57
+ name: rubyzip
145
58
  requirement: !ruby/object:Gem::Requirement
146
- none: false
147
59
  requirements:
148
- - - ~>
60
+ - - "~>"
149
61
  - !ruby/object:Gem::Version
150
- version: 1.8.4
62
+ version: 1.1.0
151
63
  type: :runtime
152
64
  prerelease: false
153
65
  version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
66
  requirements:
156
- - - ~>
67
+ - - "~>"
157
68
  - !ruby/object:Gem::Version
158
- version: 1.8.4
69
+ version: 1.1.0
159
70
  - !ruby/object:Gem::Dependency
160
- name: multi_xml
71
+ name: rake
161
72
  requirement: !ruby/object:Gem::Requirement
162
- none: false
163
73
  requirements:
164
- - - ~>
74
+ - - "~>"
165
75
  - !ruby/object:Gem::Version
166
- version: 0.5.5
76
+ version: '0.9'
167
77
  type: :runtime
168
78
  prerelease: false
169
79
  version_requirements: !ruby/object:Gem::Requirement
170
- none: false
171
80
  requirements:
172
- - - ~>
81
+ - - "~>"
173
82
  - !ruby/object:Gem::Version
174
- version: 0.5.5
83
+ version: '0.9'
175
84
  - !ruby/object:Gem::Dependency
176
- name: rake
85
+ name: logging
177
86
  requirement: !ruby/object:Gem::Requirement
178
- none: false
179
87
  requirements:
180
- - - ~>
88
+ - - "~>"
181
89
  - !ruby/object:Gem::Version
182
- version: '0.9'
90
+ version: '1.8'
183
91
  type: :runtime
184
92
  prerelease: false
185
93
  version_requirements: !ruby/object:Gem::Requirement
186
- none: false
187
94
  requirements:
188
- - - ~>
95
+ - - "~>"
189
96
  - !ruby/object:Gem::Version
190
- version: '0.9'
97
+ version: '1.8'
191
98
  - !ruby/object:Gem::Dependency
192
- name: rubyzip
99
+ name: aws-sdk-core
193
100
  requirement: !ruby/object:Gem::Requirement
194
- none: false
195
101
  requirements:
196
- - - ~>
102
+ - - "~>"
197
103
  - !ruby/object:Gem::Version
198
- version: 1.1.0
104
+ version: 2.2.0
199
105
  type: :runtime
200
106
  prerelease: false
201
107
  version_requirements: !ruby/object:Gem::Requirement
202
- none: false
203
108
  requirements:
204
- - - ~>
109
+ - - "~>"
205
110
  - !ruby/object:Gem::Version
206
- version: 1.1.0
111
+ version: 2.2.0
207
112
  - !ruby/object:Gem::Dependency
208
113
  name: simple_pid
209
114
  requirement: !ruby/object:Gem::Requirement
210
- none: false
211
115
  requirements:
212
- - - ~>
116
+ - - "~>"
213
117
  - !ruby/object:Gem::Version
214
118
  version: 0.2.1
215
119
  type: :runtime
216
120
  prerelease: false
217
121
  version_requirements: !ruby/object:Gem::Requirement
218
- none: false
219
122
  requirements:
220
- - - ~>
123
+ - - "~>"
221
124
  - !ruby/object:Gem::Version
222
125
  version: 0.2.1
223
126
  description: CodeDeploy Agent is responsible for doing the actual work of deploying
@@ -231,18 +134,24 @@ executables:
231
134
  extensions: []
232
135
  extra_rdoc_files: []
233
136
  files:
234
- - .gitignore
137
+ - ".gitignore"
138
+ - ".travis.yml"
235
139
  - CHANGES.md
236
140
  - Gemfile
237
141
  - LICENSE
238
142
  - NOTICE
239
143
  - README.md
144
+ - Rakefile
240
145
  - aws-codedeploy-agent.gemspec
241
146
  - bin/codedeploy-agent
242
147
  - bin/codedeploy-install
243
148
  - bin/codedeploy-uninstall
244
149
  - certs/host-agent-deployment-signer-ca-chain.pem
245
150
  - conf/codedeployagent.yml
151
+ - features/AwsCredentials.yml
152
+ - features/agent.feature
153
+ - features/aws_credentials.rb
154
+ - features/step_definitions.rb
246
155
  - init.d/codedeploy-agent
247
156
  - lib/core_ext.rb
248
157
  - lib/instance_agent.rb
@@ -277,6 +186,7 @@ files:
277
186
  - test/helpers/instance_agent_helper.rb
278
187
  - test/instance_agent/agent/base_test.rb
279
188
  - test/instance_agent/config_test.rb
189
+ - test/instance_agent/platform/linux_util_test.rb
280
190
  - test/instance_agent/plugins/codedeploy/application_specification_test.rb
281
191
  - test/instance_agent/plugins/codedeploy/codedeploy_control_test.rb
282
192
  - test/instance_agent/plugins/codedeploy/command_executor_test.rb
@@ -291,9 +201,9 @@ files:
291
201
  - test/test_helper.rb
292
202
  - vendor/gems/.codedeploy-commands-1.0.0.created.rid
293
203
  - vendor/gems/codedeploy-commands/apis/CodeDeployCommand.api.json
294
- - vendor/gems/codedeploy-commands/codedeploy-commands-1.0.0.gemspec
295
204
  - vendor/gems/codedeploy-commands/lib/aws/codedeploy_commands.rb
296
205
  - vendor/gems/codedeploy-commands/lib/aws/plugins/certificate_authority.rb
206
+ - vendor/gems/codedeploy-commands/lib/aws/plugins/deploy_agent_version.rb
297
207
  - vendor/gems/codedeploy-commands/lib/aws/plugins/deploy_control_endpoint.rb
298
208
  - vendor/gems/process_manager/README.md
299
209
  - vendor/gems/process_manager/lib/blank.rb
@@ -303,22 +213,12 @@ files:
303
213
  - vendor/gems/process_manager/lib/process_manager/config.rb
304
214
  - vendor/gems/process_manager/lib/process_manager/log.rb
305
215
  - vendor/gems/process_manager/lib/process_manager/master.rb
306
- - vendor/gems/process_manager/process_manager-0.0.13.gemspec
307
- - vendor/specifications/aws-sdk-core-2.0.42.gemspec
308
- - vendor/specifications/builder-3.2.2.gemspec
309
216
  - vendor/specifications/codedeploy-commands-1.0.0.gemspec
310
- - vendor/specifications/gli-2.5.6.gemspec
311
- - vendor/specifications/jmespath-1.0.1.gemspec
312
- - vendor/specifications/little-plugger-1.1.3.gemspec
313
- - vendor/specifications/logging-1.8.1.gemspec
314
- - vendor/specifications/multi_json-1.7.7.gemspec
315
- - vendor/specifications/multi_json-1.8.4.gemspec
316
- - vendor/specifications/multi_xml-0.5.5.gemspec
317
217
  - vendor/specifications/process_manager-0.0.13.gemspec
318
- - vendor/specifications/simple_pid-0.2.1.gemspec
319
218
  homepage: https://github.com/panthomakos/aws-codedeploy-agent
320
219
  licenses:
321
220
  - Apache-2.0
221
+ metadata: {}
322
222
  post_install_message:
323
223
  rdoc_options: []
324
224
  require_paths:
@@ -326,28 +226,31 @@ require_paths:
326
226
  - vendor/gems/codedeploy-commands/lib
327
227
  - vendor/gems/process_manager/lib
328
228
  required_ruby_version: !ruby/object:Gem::Requirement
329
- none: false
330
229
  requirements:
331
- - - ! '>='
230
+ - - ">="
332
231
  - !ruby/object:Gem::Version
333
232
  version: '0'
334
233
  required_rubygems_version: !ruby/object:Gem::Requirement
335
- none: false
336
234
  requirements:
337
- - - ! '>='
235
+ - - ">="
338
236
  - !ruby/object:Gem::Version
339
237
  version: '0'
340
238
  requirements: []
341
239
  rubyforge_project:
342
- rubygems_version: 1.8.23.2
240
+ rubygems_version: 2.4.5.1
343
241
  signing_key:
344
- specification_version: 3
242
+ specification_version: 4
345
243
  summary: AWS CodeDeploy Agent
346
244
  test_files:
245
+ - features/AwsCredentials.yml
246
+ - features/agent.feature
247
+ - features/aws_credentials.rb
248
+ - features/step_definitions.rb
347
249
  - test/certificate_helper.rb
348
250
  - test/helpers/instance_agent_helper.rb
349
251
  - test/instance_agent/agent/base_test.rb
350
252
  - test/instance_agent/config_test.rb
253
+ - test/instance_agent/platform/linux_util_test.rb
351
254
  - test/instance_agent/plugins/codedeploy/application_specification_test.rb
352
255
  - test/instance_agent/plugins/codedeploy/codedeploy_control_test.rb
353
256
  - test/instance_agent/plugins/codedeploy/command_executor_test.rb
@@ -1,28 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = "codedeploy-commands"
5
- s.version = "1.0.0"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Amazon Web Services"]
9
- s.date = "2014-11-04"
10
- s.description = "Provides client libraries for CodeDeploy Command."
11
- s.files = ["lib/aws/codedeploy_commands.rb", "lib/aws/plugins/deploy_control_endpoint.rb", "lib/aws/plugins/certificate_authority.rb", "apis/CodeDeployCommand.api.json"]
12
- s.licenses = ["Apache 2.0"]
13
- s.require_paths = ["lib"]
14
- s.rubygems_version = "1.8.23"
15
- s.summary = "Deploy Control Ruby SDK"
16
-
17
- if s.respond_to? :specification_version then
18
- s.specification_version = 3
19
-
20
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
21
- s.add_runtime_dependency(%q<aws-sdk-core>, ["= 2.0.5"])
22
- else
23
- s.add_dependency(%q<aws-sdk-core>, ["= 2.0.5"])
24
- end
25
- else
26
- s.add_dependency(%q<aws-sdk-core>, ["= 2.0.5"])
27
- end
28
- end
@@ -1,42 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = "process_manager"
5
- s.version = "0.0.13"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Jonathan Weiss"]
9
- s.date = "2013-01-31"
10
- s.description = "A framework to manage processes using one master and many children processes"
11
- s.email = "info@peritor.com"
12
- s.extra_rdoc_files = ["README.md"]
13
- s.files = ["README.md"]
14
- s.homepage = "http://github.com/scalarium/process_manager"
15
- s.require_paths = ["lib"]
16
- s.rubygems_version = "1.8.23"
17
- s.summary = "A framework to manage processes"
18
-
19
- if s.respond_to? :specification_version then
20
- s.specification_version = 3
21
-
22
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
23
- s.add_runtime_dependency(%q<rake>, [">= 0"])
24
- s.add_runtime_dependency(%q<simple_pid>, [">= 0"])
25
- s.add_runtime_dependency(%q<gli>, [">= 2.2.1"])
26
- s.add_runtime_dependency(%q<simple_pid>, [">= 0"])
27
- s.add_runtime_dependency(%q<gli>, [">= 0"])
28
- else
29
- s.add_dependency(%q<rake>, [">= 0"])
30
- s.add_dependency(%q<simple_pid>, [">= 0"])
31
- s.add_dependency(%q<gli>, [">= 2.2.1"])
32
- s.add_dependency(%q<simple_pid>, [">= 0"])
33
- s.add_dependency(%q<gli>, [">= 0"])
34
- end
35
- else
36
- s.add_dependency(%q<rake>, [">= 0"])
37
- s.add_dependency(%q<simple_pid>, [">= 0"])
38
- s.add_dependency(%q<gli>, [">= 2.2.1"])
39
- s.add_dependency(%q<simple_pid>, [">= 0"])
40
- s.add_dependency(%q<gli>, [">= 0"])
41
- end
42
- end
@@ -1,37 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = "aws-sdk-core"
5
- s.version = "2.0.42"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Amazon Web Services"]
9
- s.date = "2015-05-07"
10
- s.description = "Provides API clients for AWS. This gem is part of the official AWS SDK for Ruby."
11
- s.email = ["trevrowe@amazon.com"]
12
- s.executables = ["aws.rb"]
13
- s.files = ["bin/aws.rb"]
14
- s.homepage = "http://github.com/aws/aws-sdk-ruby"
15
- s.licenses = ["Apache 2.0"]
16
- s.require_paths = ["lib"]
17
- s.rubygems_version = "1.8.23.2"
18
- s.summary = "AWS SDK for Ruby - Core"
19
-
20
- if s.respond_to? :specification_version then
21
- s.specification_version = 4
22
-
23
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24
- s.add_runtime_dependency(%q<multi_json>, ["~> 1.0"])
25
- s.add_runtime_dependency(%q<builder>, ["~> 3.0"])
26
- s.add_runtime_dependency(%q<jmespath>, ["~> 1.0"])
27
- else
28
- s.add_dependency(%q<multi_json>, ["~> 1.0"])
29
- s.add_dependency(%q<builder>, ["~> 3.0"])
30
- s.add_dependency(%q<jmespath>, ["~> 1.0"])
31
- end
32
- else
33
- s.add_dependency(%q<multi_json>, ["~> 1.0"])
34
- s.add_dependency(%q<builder>, ["~> 3.0"])
35
- s.add_dependency(%q<jmespath>, ["~> 1.0"])
36
- end
37
- end