blob: 1205512bff622c8883ff2093951533621c9db15c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
module InstallHelper
module_function
def self.install_without_artifacts(cask)
Hbc::Installer.new(cask).tap do |i|
i.download
i.extract_primary_container
end
end
def self.install_without_artifacts_with_caskfile(cask)
Hbc::Installer.new(cask).tap do |i|
i.download
i.extract_primary_container
i.save_caskfile
end
end
def install_without_artifacts(cask)
Hbc::Installer.new(cask).tap do |i|
i.download
i.extract_primary_container
end
end
def install_with_caskfile(cask)
Hbc::Installer.new(cask).tap(&:save_caskfile)
end
end
|