Skip to content

Commit

Permalink
Add sns to fog bin.
Browse files Browse the repository at this point in the history
  • Loading branch information
phiggins authored and geemus committed Jul 19, 2011
1 parent f3f9650 commit 542cffe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fog/bin/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def class_for(key)
Fog::Storage::AWS
when :rds
Fog::AWS::RDS
when :sns
Fog::AWS::SNS
else
# @todo Replace most instances of ArgumentError with NotImplementedError
# @todo For a list of widely supported Exceptions, see:
Expand Down Expand Up @@ -72,6 +74,8 @@ def [](service)
when :storage
Formatador.display_line("[yellow][WARN] AWS[:storage] is deprecated, use Storage[:aws] instead[/]")
Fog::Storage.new(:provider => 'AWS')
when :sns
Fog::AWS::SNS.new
else
raise ArgumentError, "Unrecognized service: #{key.inspect}"
end
Expand Down

0 comments on commit 542cffe

Please sign in to comment.