Class: Bim::Subcommands::Snat
- Inherits:
-
Thor
- Object
- Thor
- Bim::Subcommands::Snat
- Defined in:
- lib/bim/subcommands/snat.rb
Overview
Snat class defines subcommands
Instance Method Summary collapse
- #add_address(name) ⇒ Object
- #create(name) ⇒ Object
- #detail(name) ⇒ Object
- #ls ⇒ Object
- #remove_address(name) ⇒ Object
- #update(name) ⇒ Object
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, [: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, [:translation], [:address_list], [: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 |
#ls ⇒ Object
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, [:addresses]) end |