Sha256: a663735beadef6fd79c77e789f4ecd1158b0d28d4ca78f1fb8282cba55aef44b
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
module Braid module Commands class Remove < Command def run(path) mirror = config.get!(path) bail_on_local_changes! with_reset_on_error do msg "Removing mirror from '#{mirror.path}'." git.rm_r(mirror.path) # will need this in case we decide to remove the .git/config entry also # setup_remote(mirror) config.remove(mirror) add_config_file commit_message = "Removed mirror '#{mirror.path}'" git.commit(commit_message) msg commit_message end end end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
evilchelu-braid-0.5 | lib/braid/commands/remove.rb |
norbert-braid-0.5.1 | lib/braid/commands/remove.rb |
braid-0.5 | lib/braid/commands/remove.rb |