You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
400 B

class Cask::PkgInstaller
def initialize(cask, command=Cask::SystemCommand)
@cask = cask
@command = command
end
def install
@cask.installable_pkgs.each do |pkg|
ohai "Running installer for #{@cask}; your password may be necessary."
output = @command.run("sudo installer -pkg '#{pkg}' -target /")
output.each do |line|
ohai line
end
end
end
end