Class: DotfilesInstaller::Base

Inherits:
Object
  • Object
show all
Includes:
Utilities
Defined in:
lib/dotfiles_installer.rb

Direct Known Subclasses

Interactive

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utilities

#source_map, #source_paths

Constructor Details

#initialize(sourcedir, *args) ⇒ Base

Returns a new instance of Base.



46
47
48
49
50
# File 'lib/dotfiles_installer.rb', line 46

def initialize(sourcedir, *args)
  @sourcedir = sourcedir
  @options = args.last.kind_of?(::Hash) ? args.pop : {}
  @homedir = args.pop || ENV["HOME"]
end

Instance Attribute Details

#homedirObject (readonly)

Returns the value of attribute homedir.



44
45
46
# File 'lib/dotfiles_installer.rb', line 44

def homedir
  @homedir
end

#optionsObject (readonly)

Returns the value of attribute options.



44
45
46
# File 'lib/dotfiles_installer.rb', line 44

def options
  @options
end

#sourcedirObject (readonly)

Returns the value of attribute sourcedir.



44
45
46
# File 'lib/dotfiles_installer.rb', line 44

def sourcedir
  @sourcedir
end