class AwsAuditor::Google
Constants
- FILE_NAMES
Public Class Methods
config_path()
click to toggle source
# File lib/aws_auditor/google.rb, line 45 def self.config_path if filepath = FILE_NAMES.detect {|filename| File.exists?(filename)} File.join(Dir.pwd, filepath) else old_dir = Dir.pwd Dir.chdir('..') if old_dir != Dir.pwd config_path else puts "Could not find #{FILE_NAMES.join(' or ')}" exit end end end
configuration()
click to toggle source
# File lib/aws_auditor/google.rb, line 12 def self.configuration GoogleDrive.login_with_oauth(get_authorization) end
file()
click to toggle source
# File lib/aws_auditor/google.rb, line 36 def self.file load_config[:file] end
load_config()
click to toggle source
# File lib/aws_auditor/google.rb, line 40 def self.load_config return @config if @config @config = GoogleConfig[YAML.load_file(config_path)] end