Class: Dotpack::Cli::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/dotpack/cli/app.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



29
30
31
# File 'lib/dotpack/cli/app.rb', line 29

def clear
  Runner.clear
end


14
15
16
17
18
19
20
# File 'lib/dotpack/cli/app.rb', line 14

def relink
  Runner.clear
  runner = Runner.new
  Package.all.each do |package|
    runner.start package
  end
end

#updateObject



23
24
25
26
# File 'lib/dotpack/cli/app.rb', line 23

def update
  repos = Dotpack::Repo.all
  relink if repos.map(&:update).any?
end