Skip to content

Commit

Permalink
implement Refinery::Images#s3_region and Refinery::Resources#s3_region
Browse files Browse the repository at this point in the history
  • Loading branch information
bartocc committed May 23, 2012
1 parent f8f7ad3 commit 5ef0821
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/lib/refinery/images/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ def s3_access_key_id
def s3_secret_access_key
config.s3_secret_access_key.nil? ? Refinery::Core.s3_secret_access_key : config.s3_secret_access_key
end

def s3_region
config.s3_region.nil? ? Refinery::Core.s3_region : config.s3_region
end

end
end
end
5 changes: 5 additions & 0 deletions resources/lib/refinery/resources/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def s3_access_key_id
def s3_secret_access_key
config.s3_secret_access_key.nil? ? Refinery::Core.s3_secret_access_key : config.s3_secret_access_key
end

def s3_region
config.s3_region.nil? ? Refinery::Core.s3_region : config.s3_region
end

end
end
end

0 comments on commit 5ef0821

Please sign in to comment.