google-pubsub-enhancer 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_pubsub_enhancer.rb +4 -0
- data/lib/google_pubsub_enhancer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0923435e653db20ce66d17dc020743d5813c995
|
4
|
+
data.tar.gz: 2c7ede0c7070454907b5b407a555492f3ca412e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee980462b779d06e4827b8ba825c1d627dc839bfa9f95f98a8a16ff967c55ae9033df476a61b91f311265c97062fe086aa8e41f2a9aaa109c078d3742dacb725
|
7
|
+
data.tar.gz: 5b86fde7d77fc6aa36ff1043cc014d4111f1ab3a57ef35f2b40cb7602ab2e69f023377a1cab001708514fe6c098d1cf1323cf5dac0cbdec68d36d51fa2f4ddb6
|
@@ -16,6 +16,8 @@ class GooglePubsubEnhancer
|
|
16
16
|
def pubsub_config
|
17
17
|
key = ::Google::Cloud::Pubsub::Credentials::JSON_ENV_VARS.find { |n| !ENV[n].nil? }
|
18
18
|
@pubsub_config ||= JSON.parse(ENV[key])
|
19
|
+
rescue => ex
|
20
|
+
raise Exception, 'Environment not setted properly'
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
@@ -44,6 +46,8 @@ class GooglePubsubEnhancer
|
|
44
46
|
|
45
47
|
def create_subscription(subscription_short_name)
|
46
48
|
Google::Cloud::Pubsub.new.subscription(self.class.name_by('subscriptions', subscription_short_name))
|
49
|
+
rescue => ex
|
50
|
+
raise Exception, 'Environment not setted properly'
|
47
51
|
end
|
48
52
|
|
49
53
|
def configurate_options(opts)
|