Class: Bim::Subcommands::Snat

Inherits:
Thor
  • Object
show all
Defined in:
lib/bim/subcommands/snat.rb

Overview

Snat class defines subcommands

Instance Method Summary collapse

Instance Method Details

#add_address(name) ⇒ Object



48
49
50
# File 'lib/bim/subcommands/snat.rb', line 48

def add_address(name)
  puts Bim::Action::Snat.add_address(name, options[:addresses])
end

#create(name) ⇒ Object



28
29
30
# File 'lib/bim/subcommands/snat.rb', line 28

def create(name)
  puts Bim::Action::Snat.create(name, options[:translation], options[:address_list], options[:vlans])
end

#detail(name) ⇒ Object



17
18
19
# File 'lib/bim/subcommands/snat.rb', line 17

def detail(name)
  puts Bim::Action::Snat.detail(name)
end

#lsObject



9
10
11
# File 'lib/bim/subcommands/snat.rb', line 9

def ls
  puts Bim::Action::Snat.ls
end

#remove_address(name) ⇒ Object



57
58
59
# File 'lib/bim/subcommands/snat.rb', line 57

def remove_address(name)
  puts Bim::Action::Snat.remove_address(name, options[:addresses])
end

#update(name) ⇒ Object



39
40
41
# File 'lib/bim/subcommands/snat.rb', line 39

def update(name)
  puts Bim::Action::Snat.update(name, options[:translation], options[:address_list], options[:vlans])
end