lib/cloudstrap/config.rb in cloudstrap-0.46.1.pre vs lib/cloudstrap/config.rb in cloudstrap-0.46.3.pre
- old
+ new
@@ -9,10 +9,14 @@
include ::Contracts::Core
include ::Contracts::Builtin
Contract None => String
def region
- lookup(:region) { 'us-west-2' }
+ lookup(:region) do
+ ENV.fetch('AWS_REGION') do
+ ENV.fetch('AWS_DEFAULT_REGION') { 'us-west-2' }
+ end
+ end
end
Contract None => String
def cache_path
lookup(:cache_path) { [workdir, '.cache'].join('/') }