Class: Crowbar::Client::App::VirtualIP
- Inherits:
-
Base
- Object
- Thor
- Base
- Crowbar::Client::App::VirtualIP
show all
- Defined in:
- lib/crowbar/client/app/virtual_ip.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#allocate(proposal, service, network, range, suggestion = nil) ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/crowbar/client/app/virtual_ip.rb', line 29
def allocate(proposal, service, network, range, suggestion = nil)
Command::VirtualIP::Allocate.new(
*command_params(
proposal: proposal,
service: service,
network: network,
range: range,
suggestion: suggestion
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#deallocate(proposal, service, network) ⇒ Object
51
52
53
54
55
56
57
58
59
60
61
|
# File 'lib/crowbar/client/app/virtual_ip.rb', line 51
def deallocate(proposal, service, network)
Command::VirtualIP::Allocate.new(
*command_params(
proposal: proposal,
service: service,
network: network
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|