Class: DTK::Network::Client::Command::Chmod
- Inherits:
-
DTK::Network::Client::Command
- Object
- DTK::Network::Client::Command
- DTK::Network::Client::Command::Chmod
- Defined in:
- lib/client/command/chmod.rb
Class Method Summary collapse
Instance Method Summary collapse
- #chmod ⇒ Object
-
#initialize(namespace, permissions, options = {}) ⇒ Chmod
constructor
A new instance of Chmod.
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(namespace, permissions, options = {}) ⇒ Chmod
Returns a new instance of Chmod.
4 5 6 7 |
# File 'lib/client/command/chmod.rb', line 4 def initialize(namespace, , = {}) @namespace = namespace @permissions = end |
Class Method Details
.run(namespace, permissions, opts = {}) ⇒ Object
9 10 11 |
# File 'lib/client/command/chmod.rb', line 9 def self.run(namespace, , opts = {}) new(namespace, , opts).chmod end |
Instance Method Details
#chmod ⇒ Object
13 14 15 16 17 |
# File 'lib/client/command/chmod.rb', line 13 def chmod (@permissions) rest_post("namespaces/#{@namespace}/chmod", { name: @namespace, permissions: @permissions }) nil end |