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

Inherits:
Object
  • Object
show all
Extended by:
Client::PermissionsUtil, RestWrapper
Includes:
Client::PermissionsUtil, RestWrapper, Util::Tar
Defined in:
lib/client/command/info.rb,
lib/client/command/list.rb,
lib/client/command/pull.rb,
lib/client/command/push.rb,
lib/client/command/chmod.rb,
lib/client/command/delete.rb,
lib/client/command/update.rb,
lib/client/command/install.rb,
lib/client/command/publish.rb,
lib/client/command/unpublish.rb,
lib/client/command/add_to_group.rb,
lib/client/command/list_namespaces.rb,
lib/client/command/create_namespace.rb,
lib/client/command/delete_namespace.rb,
lib/client/command/remove_from_group.rb,
lib/client/command.rb

Defined Under Namespace

Classes: AddToGroup, Chmod, CreateNamespace, Delete, DeleteNamespace, Info, Install, List, ListNamespaces, Publish, Pull, Push, RemoveFromGroup, Unpublish, Update

Class Method Summary collapse

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

.wrap_command(args = Args.new, &block) ⇒ Object



26
27
28
# File 'lib/client/command.rb', line 26

def self.wrap_command(args = Args.new, &block)
  block.call(Args.convert(args))
end