require 'dotenv' require 'optparse' class OptimusCloudEnvLoader def loadEnv p "Loading Env file" p ARGV optparser = OptionParser.new do |parser| parser.on('-e=FILE','--env=FILE', "Optimus Cloud Environment file") do |file| p file Dotenv.load(file) end end optparser.parse!(ARGV) end end