Class: DTK::Network::Client::Command::Unpublish
- Inherits:
-
DTK::Network::Client::Command
- Object
- DTK::Network::Client::Command
- DTK::Network::Client::Command::Unpublish
- Defined in:
- lib/client/command/unpublish.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(module_ref, options = {}) ⇒ Unpublish
constructor
A new instance of Unpublish.
- #unpublish ⇒ Object
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 = {}) ⇒ Unpublish
Returns a new instance of Unpublish.
4 5 6 7 |
# File 'lib/client/command/unpublish.rb', line 4 def initialize(module_ref, = {}) @module_ref = module_ref @options = end |
Class Method Details
Instance Method Details
#unpublish ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/client/command/unpublish.rb', line 14 def unpublish version = @module_ref.version params = { name: @module_ref.name, namespace: @module_ref.namespace, version: version.str_version } rest_post("modules/unpublish", params) nil end |