This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |