Class: Lbrt::Service
- Inherits:
-
Object
- Object
- Lbrt::Service
- Includes:
- Logger::Helper
- Defined in:
- lib/lbrt/service.rb
Defined Under Namespace
Instance Method Summary collapse
- #apply(file) ⇒ Object
- #export(export_options = {}) ⇒ Object
-
#initialize(client, options = {}) ⇒ Service
constructor
A new instance of Service.
Methods included from Logger::Helper
Constructor Details
#initialize(client, options = {}) ⇒ Service
Returns a new instance of Service.
4 5 6 7 8 |
# File 'lib/lbrt/service.rb', line 4 def initialize(client, = {}) @client = client = @driver = Lbrt::Driver.new(@client, ) end |
Instance Method Details
#apply(file) ⇒ Object
15 16 17 |
# File 'lib/lbrt/service.rb', line 15 def apply(file) walk(file) end |
#export(export_options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/lbrt/service.rb', line 10 def export( = {}) exported = Lbrt::Service::Exporter.export(@client, ) Lbrt::Service::DSL.convert(exported, ) end |