Class: PetitFelix::Process
- Inherits:
-
Object
- Object
- PetitFelix::Process
- Defined in:
- lib/petit-felix.rb
Instance Method Summary collapse
-
#initialize(cl_args: [], options: {}) ⇒ Process
constructor
cl_args - command line arguments passed from CLI options - hash passed by developer containing default rendering options.
- #output(options: {}) ⇒ Object
Constructor Details
#initialize(cl_args: [], options: {}) ⇒ Process
cl_args - command line arguments passed from CLI options - hash passed by developer containing default rendering options
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/petit-felix.rb', line 34 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 = config.load_config @wm, , cl_args end |
Instance Method Details
#output(options: {}) ⇒ Object
45 46 47 48 49 |
# File 'lib/petit-felix.rb', line 45 def output(options: {}) ## Starts producing stuff PetitFelix::Generator.new.render_files @wm, , override_options: end |