32 lines
647 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-08-18 22:11:42 +03:00
module InstallHelper
2017-02-08 12:37:45 +01:00
module_function
def self.install_without_artifacts(cask)
2018-09-06 08:29:14 +02:00
Cask::Installer.new(cask).tap do |i|
2017-07-29 19:55:05 +02:00
i.download
i.extract_primary_container
2016-08-18 22:11:42 +03:00
end
end
2017-02-08 12:37:45 +01:00
def self.install_without_artifacts_with_caskfile(cask)
2018-09-06 08:29:14 +02:00
Cask::Installer.new(cask).tap do |i|
2017-07-29 19:55:05 +02:00
i.download
i.extract_primary_container
i.save_caskfile
2017-02-08 12:37:45 +01:00
end
end
def install_without_artifacts(cask)
2018-09-06 08:29:14 +02:00
Cask::Installer.new(cask).tap do |i|
2017-07-29 19:55:05 +02:00
i.download
i.extract_primary_container
2017-02-08 12:37:45 +01:00
end
end
def install_with_caskfile(cask)
2018-09-06 08:29:14 +02:00
Cask::Installer.new(cask).tap(&:save_caskfile)
2017-02-08 12:37:45 +01:00
end
2016-08-18 22:11:42 +03:00
end