Class: Lbrt::Service

Inherits:
Object
  • Object
show all
Includes:
Logger::Helper
Defined in:
lib/lbrt/service.rb

Defined Under Namespace

Classes: DSL, Exporter

Instance Method Summary collapse

Methods included from Logger::Helper

#log

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, options = {})
  @client = client
  @options = options
  @driver = Lbrt::Driver.new(@client, @options)
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(export_options = {})
  exported = Lbrt::Service::Exporter.export(@client, @options)
  Lbrt::Service::DSL.convert(exported, @options)
end