Method: RokuBuilder.run

Defined in:
lib/roku_builder.rb

.run(options: nil) ⇒ Object

Run the builder

Parameters:

  • options (Hash) (defaults to: nil)

    The options hash



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/roku_builder.rb', line 43

def self.run(options: nil)
  @@options = nil
  @@testing ||= false
  setup_plugins
  setup_options(options: options)
  return unless @@options
  initialize_logger
  if @@options[:debug]
    execute
  else
    begin
      execute
    rescue StandardError => e
      Logger.instance.fatal "#{e.class}: #{e.message}"
      exit false unless @@testing
    end
  end
end