backing up
This commit is contained in:
parent
e078becf4f
commit
b864ae7b40
@ -62,7 +62,7 @@ module Hbc
|
|||||||
raise CaskError, "It seems the #{self.class.english_name} source '#{target}' is not there."
|
raise CaskError, "It seems the #{self.class.english_name} source '#{target}' is not there."
|
||||||
end
|
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
|
source.dirname.mkpath
|
||||||
|
|
||||||
if target.parent.writable?
|
if target.parent.writable?
|
||||||
|
|||||||
@ -13,7 +13,7 @@ describe Hbc::CLI::Reinstall, :cask do
|
|||||||
Already downloaded: .*local-caffeine--1.2.3.zip
|
Already downloaded: .*local-caffeine--1.2.3.zip
|
||||||
==> Verifying checksum for Cask local-caffeine
|
==> Verifying checksum for Cask local-caffeine
|
||||||
==> Uninstalling 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'.
|
==> Removing App '.*Caffeine.app'.
|
||||||
==> Purging files for version 1.2.3 of Cask local-caffeine
|
==> Purging files for version 1.2.3 of Cask local-caffeine
|
||||||
==> Installing Cask local-caffeine
|
==> Installing Cask local-caffeine
|
||||||
|
|||||||
@ -12,7 +12,7 @@ describe Hbc::CLI::Uninstall, :cask do
|
|||||||
|
|
||||||
output = Regexp.new <<~EOS
|
output = Regexp.new <<~EOS
|
||||||
==> Uninstalling 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'.
|
==> Removing App '.*Caffeine.app'.
|
||||||
==> Purging files for version 1.2.3 of Cask local-caffeine
|
==> Purging files for version 1.2.3 of Cask local-caffeine
|
||||||
EOS
|
EOS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user