Module: Flexdot

Defined in:
lib/flexdot.rb,
lib/flexdot/index.rb,
lib/flexdot/tasks.rb,
lib/flexdot/backup.rb,
lib/flexdot/output.rb,
lib/flexdot/version.rb,
lib/flexdot/installer.rb

Defined Under Namespace

Classes: Backup, Index, Installer, Options, Output, Tasks

Constant Summary collapse

DEFAULT_OPTIONS =
{
  dotfiles_dir: '.',
  output_colorize: true,
  keep_max_backup_count: nil
}
VERSION =
'3.4.0'

Class Method Summary collapse

Class Method Details

.setup(home_dir:, **options) ⇒ Object



32
33
34
35
# File 'lib/flexdot.rb', line 32

def self.setup(home_dir:, **options)
  opts = Options.new(DEFAULT_OPTIONS.merge(options))
  Tasks.new(home_dir, opts).install
end