Class: Piculet::Client
- Inherits:
-
Object
- Object
- Piculet::Client
- Includes:
- Logger::ClientHelper
- Defined in:
- lib/piculet/client.rb
Instance Method Summary collapse
- #apply(file) ⇒ Object
- #export ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Logger::ClientHelper
Constructor Details
Instance Method Details
#apply(file) ⇒ Object
17 18 19 20 |
# File 'lib/piculet/client.rb', line 17 def apply(file) @options.ec2.owner_id AWS.memoize { walk(file) } end |
#export ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/piculet/client.rb', line 22 def export exported = AWS.memoize { Exporter.export(@options.ec2) } if block_given? converter = proc do |src| DSL.convert(src, @options.ec2.owner_id) end yield(exported, converter) else DSL.convert(exported, @options.ec2.owner_id) end end |