Class: MultiRepo::UninitCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/multirepo/commands/uninit-command.rb

Instance Method Summary collapse

Methods inherited from Command

#ensure_in_work_tree, #ensure_multirepo_enabled, #ensure_multirepo_tracked, #initialize, #install_hooks, #multirepo_enabled_dependencies, report_error, #uninstall_hooks, #update_gitconfig, #validate!

Constructor Details

This class inherits a constructor from MultiRepo::Command

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
# File 'lib/multirepo/commands/uninit-command.rb', line 8

def run
  ensure_in_work_tree
  
  FileUtils.rm_f(".multirepo")
  TrackingFiles.new(".").delete
  uninstall_hooks
  
  Console.log_step("All traces of multirepo have been removed from this repository")
end