Method: Tagstand.disable

Defined in:
lib/tagstand.rb

.disableObject

Allows the initializer to turn off actually communicating to the REST service for certain environments Requires fakeweb gem to be installed



28
29
30
# File 'lib/tagstand.rb', line 28

def disable
  FakeWeb.register_uri(:any, %r|#{Regexp.escape(Tagstand.base_uri)}|, :body => '{"Disabled":true}', :content_type => 'application/json; charset=utf-8')
end