Class: OneOne::BaseResource
- Inherits:
-
ResourceKit::Resource
- Object
- ResourceKit::Resource
- OneOne::BaseResource
- Defined in:
- lib/one_one/resources/base_resource.rb
Direct Known Subclasses
FirewallPolicyResource, ImageResource, ServerApplianceResource, ServerResource
Instance Method Summary collapse
-
#shared_handlers(context) ⇒ Object
TODO: find a way to get this working.
Instance Method Details
#shared_handlers(context) ⇒ Object
TODO: find a way to get this working
4 5 6 7 8 9 10 |
# File 'lib/one_one/resources/base_resource.rb', line 4 def shared_handlers(context) proc do default_handler do |response| fail "Unexpected response status #{response.status}... #{response.body}" end end.call(context) end |