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 +4 -4
- data/lib/awslive-poster/awslive_poster.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46d613313ddc2fe0727ddd7d848d4036ba12dfb127ce1f59cb4b28ab111fadc1
|
4
|
+
data.tar.gz: a03630438dd58e6250bdbdae95f91c58e4b6cf8344a270f249d2902008ee87b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|