Class: DTK::Network::Client::Command::ListNamespaces

Inherits:
DTK::Network::Client::Command show all
Defined in:
lib/client/command/list_namespaces.rb

Class Method Summary collapse

Methods inherited from DTK::Network::Client::Command

wrap_command

Methods included from RestWrapper

#rest_delete, #rest_get, #rest_post

Methods included from Client::PermissionsUtil

#validate_permissions!

Methods included from Util::Tar

#gzip, #tar, #ungzip, #untar

Class Method Details

.run(opts = {}) ⇒ Object



4
5
6
7
# File 'lib/client/command/list_namespaces.rb', line 4

def self.run(opts = {})
  namespaces = rest_get('namespaces')
  {'status' => 'ok', 'datatype' => 'remote_namespaces', 'data' => namespaces}
end