fog-bouncer 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/fog/bouncer.rb +8 -1
- data/lib/fog/bouncer/version.rb +1 -1
- metadata +2 -2
data/lib/fog/bouncer.rb
CHANGED
@@ -11,6 +11,13 @@ require "fog/bouncer/source_manager"
|
|
11
11
|
|
12
12
|
module Fog
|
13
13
|
module Bouncer
|
14
|
+
module Logger
|
15
|
+
def self.log(data, &block)
|
16
|
+
STDOUT.puts data
|
17
|
+
yield if block_given?
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
14
21
|
# Public: An AWS account ID
|
15
22
|
#
|
16
23
|
# Example
|
@@ -81,7 +88,7 @@ module Fog
|
|
81
88
|
#
|
82
89
|
# Returns an Object
|
83
90
|
def self.logger
|
84
|
-
@logger ||
|
91
|
+
@logger || Fog::Bouncer::Logger.method(:log)
|
85
92
|
end
|
86
93
|
|
87
94
|
# Public: Load a file for evaluation
|
data/lib/fog/bouncer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-bouncer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|