mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
string != symbol always evaluates to true
This commit is contained in:
parent
0ee324c8f5
commit
bff9088bfa
1 changed files with 2 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -8,7 +8,7 @@ Rails.application.load_tasks
|
|||
namespace :justask do
|
||||
desc "Upload to AWS"
|
||||
task paperclaws: :environment do
|
||||
if APP_CONFIG["fog"]["credentials"].nil? or APP_CONFIG["fog"]["credentials"]["provider"] != :AWS
|
||||
if APP_CONFIG["fog"]["credentials"].nil? or APP_CONFIG["fog"]["credentials"]["provider"] != "AWS"
|
||||
throw "Needs fog (AWS) to be defined in justask.yml"
|
||||
end
|
||||
|
||||
|
@ -20,7 +20,7 @@ namespace :justask do
|
|||
# weird voodoo, something is causing just using "APP_CONFIG["fog"]["credentials"]" as Fog::Storage.new to cause an exception
|
||||
# TODO: Programmatically copy?
|
||||
credentials = {
|
||||
provider: :AWS,
|
||||
provider: "AWS",
|
||||
aws_access_key_id: APP_CONFIG["fog"]["credentials"]["aws_access_key_id"],
|
||||
aws_secret_access_key: APP_CONFIG["fog"]["credentials"]["aws_secret_access_key"],
|
||||
region: APP_CONFIG["fog"]["credentials"]["region"]
|
||||
|
|
Loading…
Reference in a new issue