awslive-poster 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 2a152c0a326f20e403907ed4e03eebcdbf1c4aecddcd8e99ce3a38bc7cc53440
4
- data.tar.gz: 80abe13a0cd6bee94d5ca8926646d7394ef1957279c5be5ff65979129ddbb517
3
+ metadata.gz: 46d613313ddc2fe0727ddd7d848d4036ba12dfb127ce1f59cb4b28ab111fadc1
4
+ data.tar.gz: a03630438dd58e6250bdbdae95f91c58e4b6cf8344a270f249d2902008ee87b6
5
5
  SHA512:
6
- metadata.gz: acb0ff3bce664b7c27e0c5271dc55e424b7de77a34752eb4a45bf47699cb85eaa4860c1135fad7ce68d90c5605a8a46a836b012e12ff73f17247fbea27039b49
7
- data.tar.gz: ea66913af0b716f445fad40c0887f652d5c8ae8cf48633b69b4e6bf9030a4385c565943d940e332fc562dbc0aec35b3576afb2b119ff7c4173c961c954fd92c4
6
+ metadata.gz: b600f73b6936af7645dc67e9e9938fd9c6367316d5d10251485b44fca3962b1c6a26bb542336311620c0f1b3fd914a0d8a555129a39e92e7bc9ec36367b8365d
7
+ data.tar.gz: 5adc0432f41e2d0422352a5c73e07983cab835ed22e3e8b756c8a6e43e5c62cb43ca66309c89fdc3daea1b780e58712e17c7b5b528fe223b67f081dbb10708fc
@@ -12,9 +12,13 @@ module Awslive
12
12
 
13
13
  MAX_CHANNEL_START_TIME = 2 * 60
14
14
 
15
- def initialize(channel_id)
15
+ def initialize(channel_id, access_key=nil , access_secret =nil, region = nil)
16
16
  credentials = Aws::SharedCredentials.new
17
- if credentials.set?
17
+ if !access_key.nil? && !access_secret.nil?
18
+ aws_region = 'us-east-1' if region.nil?
19
+ @medialiveclient = Aws::MediaLive::Client.new( :access_key_id => access_key, :secret_access_key => access_secret, :region => aws_region )
20
+ @s3 = Aws::S3::Resource.new( :access_key_id => access_key, :secret_access_key => access_secret, :region => aws_region )
21
+ elsif credentials.set?
18
22
  @medialiveclient = Aws::MediaLive::Client.new(:credentials => credentials)
19
23
  @s3 = Aws::S3::Resource.new(:credentials => credentials)
20
24
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awslive-poster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maheshwaran G
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler