backing up

This commit is contained in:
commitay 2018-02-14 07:56:59 +10:00
parent e078becf4f
commit b864ae7b40
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ module Hbc
raise CaskError, "It seems the #{self.class.english_name} source '#{target}' is not there."
end
ohai "Copying #{self.class.english_name} '#{target.basename}' back to '#{source}'."
ohai "Backing #{self.class.english_name} '#{target.basename}' up to '#{source}'."
source.dirname.mkpath
if target.parent.writable?

View File

@ -13,7 +13,7 @@ describe Hbc::CLI::Reinstall, :cask do
Already downloaded: .*local-caffeine--1.2.3.zip
==> Verifying checksum for Cask local-caffeine
==> Uninstalling Cask local-caffeine
==> Copying App 'Caffeine.app' back to '.*Caffeine.app'.
==> Backing App 'Caffeine.app' up to '.*Caffeine.app'.
==> Removing App '.*Caffeine.app'.
==> Purging files for version 1.2.3 of Cask local-caffeine
==> Installing Cask local-caffeine

View File

@ -12,7 +12,7 @@ describe Hbc::CLI::Uninstall, :cask do
output = Regexp.new <<~EOS
==> Uninstalling Cask local-caffeine
==> Copying App 'Caffeine.app' back to '.*Caffeine.app'.
==> Backing App 'Caffeine.app' up to '.*Caffeine.app'.
==> Removing App '.*Caffeine.app'.
==> Purging files for version 1.2.3 of Cask local-caffeine
EOS