module Meroku module CLI module AdminUser def self.load_secrets(obj) env_file = Dir.home+'/.meroku/meroku.env' if !File.exist?(env_file) puts "error: File not found (#{Dir.home}/.meroku/meroku.env)" return nil end Dotenv.load(env_file) obj.ec2_client = ::Aws::EC2::Client.new( region: 'us-east-1', credentials: ::Aws::Credentials.new(ENV['AWS_ACCESS_KEY'], ENV['AWS_SECRET']) ) end end end end