Class: PetitFelix::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/petit-felix.rb

Instance Method Summary collapse

Constructor Details

#initialize(cl_args: [], options: {}) ⇒ Output

cl_args - command line arguments passed from CLI options - hash passed by developer containing default rendering options



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/petit-felix.rb', line 14

def initialize(cl_args: [], options: {})

  # Creates a new worker manager, which has all the worker stuff
  wm = PetitFelix::TaskManager.new
  
  ## Loads options from default values, ./default.cfg
  config = PetitFelix::Config.new
  loaded_options = config.load_config wm, options, cl_args

  ## Starts producing stuff
  PetitFelix::Generator.new.render_files wm, loaded_options

end