This file contains 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
module Supergraph | |
# Custom HttpExecutable | |
# - Uses RestClient instead of Net::HTTP | |
# - Adds Authenticator | |
# - Adds Guard | |
# - Adds pre and post processing hooks | |
# - Handles multipart form file uploads | |
class HttpExecutable < GraphQL::Stitching::HttpExecutable | |
attr_accessor :uri, :headers |
This file contains 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
# == Clrzr | |
# A static class for colorizing terminal output | |
# in Ruby scripts. I was learning Ruby ¯\_(ツ)_/¯ | |
class Clrzr | |
private_class_method :new | |
class << self | |
CLR = { | |
:black => 30, | |
:bright_black => 90, |
This file contains 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 'optparse' | |
require 'net/http' | |
require 'json' | |
require 'jwt' | |
require 'time' | |
def flow | |
env_opts | |
combine_opts | |
validate_opts |
This file contains 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
#!/bin/sh | |
usage="\e[44;1m ENVY \e[0m A poor man's dotenv for POSIX shells\n\n" | |
usage+="This script will \"source\" the provided .env file within a subshell, and then\n" | |
usage+="run the commands you pass within that subshell. This is a simple but effective way\n" | |
usage+="to get the basic advantages of dotenv in a shell. It uses a naive regexp to parse\n" | |
usage+="the provided .env, so it is not a full dotenv implementation.\n\n" | |
usage+="Usage: ./envy <dotenv> <commands>\n\n" | |
usage+="Options: \n" |