Class: DTK::Network::Client::Command::Delete
- Inherits:
-
DTK::Network::Client::Command
- Object
- DTK::Network::Client::Command
- DTK::Network::Client::Command::Delete
- Defined in:
- lib/client/command/delete.rb
Class Method Summary collapse
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(module_ref, options = {}) ⇒ Delete
constructor
A new instance of Delete.
Methods inherited from DTK::Network::Client::Command
Methods included from RestWrapper
#rest_delete, #rest_get, #rest_post
Methods included from Client::PermissionsUtil
Methods included from Util::Tar
Constructor Details
#initialize(module_ref, options = {}) ⇒ Delete
Returns a new instance of Delete.
4 5 6 7 |
# File 'lib/client/command/delete.rb', line 4 def initialize(module_ref, = {}) @module_ref = module_ref @options = end |
Class Method Details
Instance Method Details
#delete ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/client/command/delete.rb', line 14 def delete params = { name: @module_ref.name, namespace: @module_ref.namespace } rest_delete("modules/#{@module_ref.name}", params) nil end |