Skip to content

Commit

Permalink
🚀 - colors with no bugs!
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandademic committed Oct 8, 2021
1 parent 0652897 commit 343b205
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/latte.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,21 @@
module Pkg
def self.findPkg(query)
$query = query
puts "Getting #{$query}".colorize(:yellow)
puts "Starting install of #{$query}".colorize(:yellow)
Pkg.getPkgfile
end

def self.getPkgfile
pfr = URI.open("https://raw.githubusercontent.com/Pandademic/Latte/master/pkgs/#{$query}.ini").read
packageFileURL = "https://raw.githubusercontent.com/Pandademic/Latte/master/pkgs/#{$query}.ini"
puts "Package file:#{pfr}"
# implemnt no donwload of pkg file by using pfr
system("curl -O #{packageFileURL}")
puts 'package file download complete'.colorize(:yellow)
puts 'package file download complete!'.colorize(:green)
Pkg.downloadLatest
end

def self.downloadLatest
file = IniFile.load("#{$query}.ini")
puts 'loaded file'
puts 'Package file read!'.colorize(:green)
pkgdata = file['package']
zipsupport = pkgdata['Media']
if zipsupport == true
Expand Down

0 comments on commit 343b205

Please sign in to comment.