awspec 0.44.0 → 0.45.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14f9ebf7d5d0d6d6e6f62a1296fc0c22cdced016
4
- data.tar.gz: 6563a937076d325f272b6dd2ccf0f9b4502b12ae
3
+ metadata.gz: f921cf684604412caaa4006e719f5678b649b8b7
4
+ data.tar.gz: b142ec92301b724468289160753fdf265b97d52c
5
5
  SHA512:
6
- metadata.gz: f38dc6bfb7fb319aaa9a94249447ccb22ad60256fc29567567947c8a1122655b421a2e07938a6d027fa805aba61095c379e865e6849a6f03ff34fb537a4ae780
7
- data.tar.gz: 410b0e18306a43264f9be9f91f0a316e894daf143ccdd6814481737fc081ee24343a6432b20a9a8c1331622c9a72a11d263f20880c5ff01e5e537157c1ca40b2
6
+ metadata.gz: d29020c166fc765e536d77709e98ff45574ba414ebb2cc73d62f1630597f7bf69592ee2e52cc009ac340773a18566ed94fbcee3fc4defb2ca8ec10b58130ee72
7
+ data.tar.gz: cda323ba6548e84e06151e36d01ea6a966f1837b0ade67e2f4f872df8a61632501594ea3abf80e35317f3351dfe481764dafd887ea97f89b525d6f928e427523
@@ -0,0 +1,15 @@
1
+ # exist
2
+
3
+ ```ruby
4
+ describe elastictranscoder_pipeline('my-elastictranscoder-pipeline') do
5
+ it { should exist }
6
+ end
7
+ ```
8
+
9
+ ### be_active, be_paused
10
+
11
+ ```ruby
12
+ describe elastictranscoder_pipeline('my-elastictranscoder-pipeline') do
13
+ it { should be_active }
14
+ end
15
+ ```
@@ -29,6 +29,7 @@
29
29
  | [subnet](#subnet)
30
30
  | [vpc](#vpc)
31
31
  | [cloudfront_distribution](#cloudfront_distribution)
32
+ | [elastictranscoder_pipeline](#elastictranscoder_pipeline)
32
33
 
33
34
  ## <a name="ami">ami</a>
34
35
 
@@ -1621,3 +1622,16 @@ end
1621
1622
  ```
1622
1623
 
1623
1624
  ### its(:id), its(:status), its(:last_modified_time), its(:domain_name), its(:comment), its(:price_class), its(:enabled), its(:web_acl_id)
1625
+ ## <a name="elastictranscoder_pipeline">elastictranscoder_pipeline</a>
1626
+
1627
+ ElastictranscoderPipeline resource type.
1628
+
1629
+ ### exist
1630
+
1631
+ ### be_active, be_paused
1632
+
1633
+ ```ruby
1634
+ describe elastictranscoder_pipeline('my-elastictranscoder-pipeline') do
1635
+ it { should be_active }
1636
+ end
1637
+ ```
@@ -0,0 +1,21 @@
1
+ module Awspec::Generator
2
+ module Doc
3
+ module Type
4
+ class ElastictranscoderPipeline < Base
5
+ def initialize
6
+ super
7
+ @type_name = 'ElastictranscoderPipeline'
8
+ @type = Awspec::Type::ElastictranscoderPipeline.new('my-elastic-transcoder-pipeline')
9
+ @ret = @type.resource_via_client
10
+ @matchers = [
11
+ Awspec::Type::ElastictranscoderPipeline::STATUSES.map { |status| 'be_' + status.underscore }.join(', ')
12
+ ]
13
+ @ignore_matchers = Awspec::Type::ElastictranscoderPipeline::STATUSES.map do |status|
14
+ 'be_' + status.underscore
15
+ end
16
+ @describes = []
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -17,6 +17,7 @@ require 'awspec/helper/finder/ses'
17
17
  require 'awspec/helper/finder/directconnect'
18
18
  require 'awspec/helper/finder/ami'
19
19
  require 'awspec/helper/finder/cloudfront'
20
+ require 'awspec/helper/finder/elastictranscoder'
20
21
 
21
22
  module Awspec::Helper
22
23
  module Finder
@@ -38,6 +39,7 @@ module Awspec::Helper
38
39
  include Awspec::Helper::Finder::Directconnect
39
40
  include Awspec::Helper::Finder::Ami
40
41
  include Awspec::Helper::Finder::Cloudfront
42
+ include Awspec::Helper::Finder::Elastictranscoder
41
43
 
42
44
  CLIENTS = {
43
45
  ec2_client: Aws::EC2::Client,
@@ -52,7 +54,8 @@ module Awspec::Helper
52
54
  cloudwatch_client: Aws::CloudWatch::Client,
53
55
  ses_client: Aws::SES::Client,
54
56
  directconnect_client: Aws::DirectConnect::Client,
55
- cloudfront_client: Aws::CloudFront::Client
57
+ cloudfront_client: Aws::CloudFront::Client,
58
+ elastictranscoder_client: Aws::ElasticTranscoder::Client
56
59
  }
57
60
 
58
61
  CLIENTS.each do |method_name, client|
@@ -0,0 +1,18 @@
1
+ module Awspec::Helper
2
+ module Finder
3
+ module Elastictranscoder
4
+ def find_pipeline(id)
5
+ selected = []
6
+ res = elastictranscoder_client.list_pipelines
7
+ loop do
8
+ selected += res.pipelines.select do |pipeline|
9
+ pipeline.id == id || pipeline.name == id
10
+ end
11
+ (res.next_page? && res = res.next_page) || break
12
+ end
13
+
14
+ selected.single_resource(id)
15
+ end
16
+ end
17
+ end
18
+ end
@@ -9,6 +9,7 @@ module Awspec
9
9
  iam_policy iam_role iam_user lambda launch_configuration nat_gateway
10
10
  network_acl network_interface rds rds_db_cluster_parameter_group rds_db_parameter_group route53_hosted_zone
11
11
  route_table s3_bucket security_group ses_identity subnet vpc cloudfront_distribution
12
+ elastictranscoder_pipeline
12
13
  )
13
14
 
14
15
  TYPES.each do |type|
@@ -0,0 +1,63 @@
1
+ Aws.config[:elastictranscoder] = {
2
+ stub_responses: {
3
+ list_pipelines: {
4
+ pipelines: [
5
+ {
6
+ id: '12345678901234-a0bc4d',
7
+ arn:
8
+ 'arn:aws:elastictranscoder:ap-northeast-1:406412696610:pipeline/12345678901234-a0bc4d',
9
+ name: 'my-elastictranscoder-pipeline',
10
+ status: 'Active',
11
+ input_bucket: 'ets-input-bucket-name',
12
+ output_bucket: 'ets-output-bucket-name',
13
+ role: 'arn:aws:iam::01234567890:role/Elastic_Transcoder_Default_Role',
14
+ aws_kms_key_arn: nil,
15
+ notifications: {
16
+ progressing: '',
17
+ completed: '',
18
+ warning: '',
19
+ error: ''
20
+ },
21
+ content_config: {
22
+ bucket: 'ets-output-bucket-name',
23
+ storage_class: 'ReducedRedundancy',
24
+ permissions: []
25
+ },
26
+ thumbnail_config: {
27
+ bucket: 'ets-output-bucket-name',
28
+ storage_class: 'ReducedRedundancy',
29
+ permissions: []
30
+ }
31
+ },
32
+ {
33
+ id: '234567890123-9zyxv',
34
+ arn:
35
+ 'arn:aws:elastictranscoder:ap-northeast-1:406412696610:pipeline/234567890123-9zyxv',
36
+ name: 'yet-another-my-slastictranscoder-pipeline',
37
+ status: 'Active',
38
+ input_bucket: 'ya-input-bucket-name',
39
+ output_bucket: 'ya-output-bucket-name',
40
+ role: 'arn:aws:iam::01234567890:role/Elastic_Transcoder_Default_Role',
41
+ aws_kms_key_arn: nil,
42
+ notifications: {
43
+ progressing: '',
44
+ completed: '',
45
+ warning: '',
46
+ error: ''
47
+ },
48
+ content_config: {
49
+ bucket: 'ya-output-bucket-name',
50
+ storage_class: 'Standard',
51
+ permissions: []
52
+ },
53
+ thumbnail_config: {
54
+ bucket: 'ya-output-bucket-name',
55
+ storage_class: 'Standard',
56
+ permissions: []
57
+ }
58
+ }
59
+ ],
60
+ next_page_token: nil
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,19 @@
1
+ module Awspec::Type
2
+ class ElastictranscoderPipeline < Base
3
+ def initialize(id)
4
+ super
5
+ @resource_via_client = find_pipeline(id)
6
+ @id = @resource_via_client.id if @resource_via_client
7
+ end
8
+
9
+ STATUSES = %w(
10
+ Active Paused
11
+ )
12
+
13
+ STATUSES.each do |status|
14
+ define_method status.underscore + '?' do
15
+ @resource_via_client.status == status
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.44.0'
2
+ VERSION = '0.45.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-06 00:00:00.000000000 Z
11
+ date: 2016-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -209,6 +209,7 @@ files:
209
209
  - doc/_resource_types/ec2.md
210
210
  - doc/_resource_types/elasticache.md
211
211
  - doc/_resource_types/elasticache_cache_parameter_group.md
212
+ - doc/_resource_types/elastictranscoder_pipeline.md
212
213
  - doc/_resource_types/elb.md
213
214
  - doc/_resource_types/iam_group.md
214
215
  - doc/_resource_types/iam_policy.md
@@ -251,6 +252,7 @@ files:
251
252
  - lib/awspec/generator/doc/type/ec2.rb
252
253
  - lib/awspec/generator/doc/type/elasticache.rb
253
254
  - lib/awspec/generator/doc/type/elasticache_cache_parameter_group.rb
255
+ - lib/awspec/generator/doc/type/elastictranscoder_pipeline.rb
254
256
  - lib/awspec/generator/doc/type/elb.rb
255
257
  - lib/awspec/generator/doc/type/iam_group.rb
256
258
  - lib/awspec/generator/doc/type/iam_policy.rb
@@ -303,6 +305,7 @@ files:
303
305
  - lib/awspec/helper/finder/ebs.rb
304
306
  - lib/awspec/helper/finder/ec2.rb
305
307
  - lib/awspec/helper/finder/elasticache.rb
308
+ - lib/awspec/helper/finder/elastictranscoder.rb
306
309
  - lib/awspec/helper/finder/elb.rb
307
310
  - lib/awspec/helper/finder/iam.rb
308
311
  - lib/awspec/helper/finder/lambda.rb
@@ -347,6 +350,7 @@ files:
347
350
  - lib/awspec/stub/ec2.rb
348
351
  - lib/awspec/stub/elasticache.rb
349
352
  - lib/awspec/stub/elasticache_cache_parameter_group.rb
353
+ - lib/awspec/stub/elastictranscoder_pipeline.rb
350
354
  - lib/awspec/stub/elb.rb
351
355
  - lib/awspec/stub/iam_group.rb
352
356
  - lib/awspec/stub/iam_policy.rb
@@ -378,6 +382,7 @@ files:
378
382
  - lib/awspec/type/ec2.rb
379
383
  - lib/awspec/type/elasticache.rb
380
384
  - lib/awspec/type/elasticache_cache_parameter_group.rb
385
+ - lib/awspec/type/elastictranscoder_pipeline.rb
381
386
  - lib/awspec/type/elb.rb
382
387
  - lib/awspec/type/iam_group.rb
383
388
  - lib/awspec/type/iam_policy.rb