class Dotrepo::DotFileManager

Attributes

destination[R]
source[R]

Public Class Methods

new(source, destination) click to toggle source
# File lib/dotrepo/dot_file_manager.rb, line 5
def initialize source, destination
  @source      = File.expand_path( source )
  @destination = File.expand_path( destination )
end

Public Instance Methods

dotfiles() click to toggle source
# File lib/dotrepo/dot_file_manager.rb, line 10
def dotfiles
  Dir.glob( File.join( source, '**/.*' ) )
     .map { |f| f.sub( /#{source}\/?/, '' ) }
     .reject { |f| f.match /.git/ }
     .map { |path| DotFile.new( path, self ) }
end