Class: Bmc::Sdk::Reset
- Inherits:
-
Object
- Object
- Bmc::Sdk::Reset
- Defined in:
- lib/commands.rb
Overview
Reset command will reset the configuration for a specific server.
Instance Attribute Summary collapse
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(client, server) ⇒ Reset
constructor
server is a ProvisionedServer.
Constructor Details
#initialize(client, server) ⇒ Reset
server is a ProvisionedServer
152 153 154 155 |
# File 'lib/commands.rb', line 152 def initialize(client, server) @client = client @server = server end |
Instance Attribute Details
#server ⇒ Object
Returns the value of attribute server.
149 150 151 |
# File 'lib/commands.rb', line 149 def server @server end |
Instance Method Details
#execute ⇒ Object
157 158 159 160 161 162 |
# File 'lib/commands.rb', line 157 def execute return @client.post( "#{Entrypoint}servers/#{@server.id}/actions/reset", headers: {'Content-Type': 'application/json'}, body: @server.to_json) end |