Class: Crowbar::Client::Request::Node::Role
- Inherits:
-
Base
- Object
- Base
- Crowbar::Client::Request::Node::Role
show all
- Defined in:
- lib/crowbar/client/request/node/role.rb
Instance Attribute Summary
Attributes inherited from Base
#attrs, #request
Instance Method Summary
collapse
Methods inherited from Base
#headers, #initialize, #params, #process
Instance Method Details
#content ⇒ Object
24
25
26
27
28
|
# File 'lib/crowbar/client/request/node/role.rb', line 24
def content
super.easy_merge!(
role: attrs.value
)
end
|
#method ⇒ Object
30
31
32
|
# File 'lib/crowbar/client/request/node/role.rb', line 30
def method
:post
end
|
#url ⇒ Object
34
35
36
37
38
39
40
41
42
|
# File 'lib/crowbar/client/request/node/role.rb', line 34
def url
[
"crowbar",
"machines",
"1.0",
"role",
attrs.name
].join("/")
end
|