string != symbol always evaluates to true
This commit is contained in:
parent
0ee324c8f5
commit
bff9088bfa
4
Rakefile
4
Rakefile
|
@ -8,7 +8,7 @@ Rails.application.load_tasks
|
||||||
namespace :justask do
|
namespace :justask do
|
||||||
desc "Upload to AWS"
|
desc "Upload to AWS"
|
||||||
task paperclaws: :environment do
|
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"
|
throw "Needs fog (AWS) to be defined in justask.yml"
|
||||||
end
|
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
|
# weird voodoo, something is causing just using "APP_CONFIG["fog"]["credentials"]" as Fog::Storage.new to cause an exception
|
||||||
# TODO: Programmatically copy?
|
# TODO: Programmatically copy?
|
||||||
credentials = {
|
credentials = {
|
||||||
provider: :AWS,
|
provider: "AWS",
|
||||||
aws_access_key_id: APP_CONFIG["fog"]["credentials"]["aws_access_key_id"],
|
aws_access_key_id: APP_CONFIG["fog"]["credentials"]["aws_access_key_id"],
|
||||||
aws_secret_access_key: APP_CONFIG["fog"]["credentials"]["aws_secret_access_key"],
|
aws_secret_access_key: APP_CONFIG["fog"]["credentials"]["aws_secret_access_key"],
|
||||||
region: APP_CONFIG["fog"]["credentials"]["region"]
|
region: APP_CONFIG["fog"]["credentials"]["region"]
|
||||||
|
|
Loading…
Reference in New Issue