43 lines
822 B
Ruby
Raw Normal View History

2016-08-18 22:11:42 +03:00
module InstallHelper
2017-02-08 12:37:45 +01:00
module_function
require "test/support/helper/shutup"
extend Test::Helper::Shutup
def self.install_without_artifacts(cask)
Hbc::Installer.new(cask).tap do |i|
shutup do
2016-08-18 22:11:42 +03:00
i.download
i.extract_primary_container
end
end
end
2017-02-08 12:37:45 +01:00
def self.install_without_artifacts_with_caskfile(cask)
Hbc::Installer.new(cask).tap do |i|
shutup do
i.download
i.extract_primary_container
i.save_caskfile
end
end
end
def install_without_artifacts(cask)
Hbc::Installer.new(cask).tap do |i|
shutup do
i.download
i.extract_primary_container
end
end
end
def install_with_caskfile(cask)
Hbc::Installer.new(cask).tap do |i|
shutup do
i.save_caskfile
end
end
end
2016-08-18 22:11:42 +03:00
end