class TeslaCam::Config

Parse command-line arguments into config

Constants

DEFAULTS

Attributes

ffmpeg[RW]

Public Class Methods

new() click to toggle source

Create a new Config instance and set defaults.

# File lib/teslacam/config.rb, line 24
def initialize
  # path to ffmpeg command
  @ffmpeg = '/usr/bin/ffmpeg'

  # make ffmpeg only show fatal errors
  @quiet = false

  # video title
  @title = DEFAULTS[:title]

  # output size
  @size = DEFAULTS[:size]

  # font size
  @font_size = DEFAULTS[:font_size]

  # background color for missing videos
  @missing_color = DEFAULTS[:missing_color]
end