Class: Crowbar::Client::App::Interface

Inherits:
Base
  • Object
show all
Defined in:
lib/crowbar/client/app/interface.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Crowbar::Client::App::Base

Instance Method Details

#disable(proposal, node, network) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/crowbar/client/app/interface.rb', line 49

def disable(proposal, node, network)
  Command::Interface::Disable.new(
    *command_params(
      proposal: proposal,
      node: node,
      network: network
    )
  ).execute
rescue SimpleCatchableError => e
  err e.message, 1
end

#enable(proposal, node, network) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/crowbar/client/app/interface.rb', line 29

def enable(proposal, node, network)
  Command::Interface::Enable.new(
    *command_params(
      proposal: proposal,
      node: node,
      network: network
    )
  ).execute
rescue SimpleCatchableError => e
  err e.message, 1
end