Skip to content

Commit

Permalink
Add Pubsub to fog bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Temikus committed Jul 20, 2018
1 parent d49dbea commit 77125ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fog/bin/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def class_for(key)
Fog::Storage::Google
when :sql
Fog::Google::SQL
when :pubsub
Fog::Google::Pubsub
else
raise ArgumentError, "Unsupported #{self} service: #{key}"
end
Expand All @@ -33,6 +35,8 @@ def [](service)
Fog::Google::Monitoring.new
when :sql
Fog::Google::SQL.new
when :pubsub
Fog::Google::Pubsub.new
when :storage
Fog::Logger.warning("Google[:storage] is not recommended, use Storage[:google] for portability")
Fog::Storage.new(:provider => "Google")
Expand Down

0 comments on commit 77125ea

Please sign in to comment.