Skip to content

Commit

Permalink
Fix aws deprecation warning message
Browse files Browse the repository at this point in the history
Actualy `aws` is always set here https://github.com/phstc/shoryuken/blob/master/lib/shoryuken.rb#L29
so it's never nil, consequently always showing the warning message no
matter if `aws` is set or not
  • Loading branch information
Pablo Cantero committed Dec 5, 2016
1 parent c4abcef commit 1f4642f
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 1f4642f

Please sign in to comment.