Skip to content

Commit

Permalink
Merge pull request #1155 from NREL/fix/remove_aws_gem_dependency
Browse files Browse the repository at this point in the history
remove redundant dependency calls
  • Loading branch information
mdahlhausen authored Jul 28, 2021
2 parents 714b5d5 + d5036db commit 2012e32
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
require 'openstudio'
require 'openstudio-standards'
require 'aws-sdk-s3'
require 'securerandom'
require 'optparse'
require 'yaml'
require 'git-revision'
resource_folder = File.join(__dir__, '..', '..', 'measures/btap_results/resources')
require_relative File.join(__dir__, 'btap_data.rb')
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
# resource_folder = File.join(__dir__, '..', '..', 'measures/btap_results/resources')
# OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

class BTAPDatapoint
def initialize(input_folder: nil,
Expand Down Expand Up @@ -250,7 +246,6 @@ def initialize(input_folder: nil,
end

def s3_copy_file_to_s3(bucket_name:, source_file:, target_file:, n: 0)
require 'aws-sdk-s3'
s3_resource = Aws::S3::Resource.new(region: 'ca-central-1')

puts("Copying File to S3. source_file:#{source_file} bucket:#{bucket_name} target_folder:#{target_file}")
Expand Down

0 comments on commit 2012e32

Please sign in to comment.