aptible-rails 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/rails/decorators/account_decorator.rb +17 -0
- data/lib/aptible/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d75095a31c6bc5ace1897afa019c96c617d394f
|
4
|
+
data.tar.gz: 588c7936341c72c31dee4a4df35a8a6679e7136c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654d3a530c43fc80a67ea614e0e6e68696df445af0f08d2b7949aa53e255ffe09d8a2f8bb096df7f1ac27ce56073a841bf6192dcc13c6f738afef6dcacec33e7
|
7
|
+
data.tar.gz: ebf45438e77378d1056bb54eeacf813a42dacfc388eb7e84fd53a41b6820e5d9d5e6831a9f004f9a0f244ae4bf63570f9ca8fef3a540471abaa50925167922fb
|
@@ -14,4 +14,21 @@ class AccountDecorator < ApplicationDecorator
|
|
14
14
|
cached_permissions.map(&:scope).include? scope
|
15
15
|
end
|
16
16
|
# rubocop:enable PredicateName
|
17
|
+
|
18
|
+
def syslog_drain_host
|
19
|
+
drain = syslog_drain
|
20
|
+
drain.drain_host if drain
|
21
|
+
end
|
22
|
+
|
23
|
+
def syslog_drain_port
|
24
|
+
drain = syslog_drain
|
25
|
+
drain.drain_port if drain
|
26
|
+
end
|
27
|
+
|
28
|
+
def syslog_drain
|
29
|
+
drains = (object.log_drains || []).select do |d|
|
30
|
+
d.drain_type == 'syslog_tls_tcp'
|
31
|
+
end
|
32
|
+
drains.first unless drains.empty?
|
33
|
+
end
|
17
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_config
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.
|
222
|
+
rubygems_version: 2.0.14
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Rails helpers for Aptible service applications
|