class DotMe::File

Public Class Methods

incubates?(path) click to toggle source
# File lib/dotme/incubators/file.rb, line 11
def self.incubates?(path)
  ::File.file? path
end

Public Instance Methods

incubate(to) click to toggle source
# File lib/dotme/incubators/file.rb, line 5
def incubate(to)
  FileUtils.cp_r @path, ::File.join( to, @basename ) 

  { :link => @basename, :to => ::File.join( '~', @relative ) }
end