Skip to content

Commit

Permalink
Merge pull request #279 from phstc/fix-269
Browse files Browse the repository at this point in the history
Fix aws deprecation warning message
  • Loading branch information
phstc authored Dec 5, 2016
2 parents c4abcef + 1f4642f commit 085b1a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/shoryuken/environment_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def config_file_options
# https://github.com/phstc/shoryuken/blob/a81637d577b36c5cf245882733ea91a335b6602f/lib/shoryuken.rb#L82
# Please delete this method afert next release (v2.0.12 or later)
def initialize_aws
Shoryuken.logger.warn { "[DEPRECATION] aws in shoryuken.yml is deprecated. Please use configure_server and configure_client in your initializer"} unless Shoryuken.options[:aws].nil?
unless Shoryuken.options[:aws].to_h.empty?
Shoryuken.logger.warn { '[DEPRECATION] aws in shoryuken.yml is deprecated. Please use configure_server and configure_client in your initializer' }
end
Shoryuken::AwsConfig.setup(Shoryuken.options[:aws])
end

Expand Down

0 comments on commit 085b1a5

Please sign in to comment.