Class: Tm2Gsv::Theme

Inherits:
Object show all
Defined in:
lib/tm2gsv/theme.rb

Instance Method Summary collapse

Constructor Details

#initialize(task) ⇒ Theme

Returns a new instance of Theme.



7
8
9
# File 'lib/tm2gsv/theme.rb', line 7

def initialize(task)
  @task = task || ::Thor.new()
end

Instance Method Details

#convert(source, destination) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/tm2gsv/theme.rb', line 11

def convert(source, destination)
  @themes = []
  @source = source
  @destination = destination || default_path
  @parser = Tm2Gsv::ThemeParser.new(@task)
  @writer = Tm2Gsv::ThemeWriter.new(@task)

  parse_files
  write_files
end