Class: Filedots::Runner

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/filedots/runner.rb

Instance Method Summary collapse

Instance Method Details

#installObject



8
9
10
11
12
13
# File 'lib/filedots/runner.rb', line 8

def install
  return unless load_config
  @config.links.each do |source, target|
    link(source, target)
  end
end

#uninstallObject



16
17
18
19
20
21
# File 'lib/filedots/runner.rb', line 16

def uninstall
  return unless load_config
  @config.links.each do |source, target|
    unlink(target)
  end
end