Skip to content

Instantly share code, notes, and snippets.

##### APP INSTALL FUNCTIONS
def install(uid, aid)
app_deets = "select pub, id, version from apps where aid = ".aid
li = "insert ignore into app_vers (uid_, aid, app_vers) values (".uid.", ".aid.", ".app_deets[:version].")"
return app_deets[pub]
def update(uid, aid)
app_deets = "select pub, id, version from apps where aid = ".aid
require 'json'
require 'net/http'
require 'uri'
require 'rbconfig'
require 'io/console'
puts "Enter Username:"
@username = gets.chomp
puts "Enter Password (input will be hidden):"
@password = STDIN.noecho(&:gets).chomp