Class: SwissAdmin::Commands::Network

Inherits:
Thor
  • Object
show all
Defined in:
lib/swiss_admin/cli/network_cli.rb

Instance Method Summary collapse

Instance Method Details

#first_ipv4Object



13
14
15
# File 'lib/swiss_admin/cli/network_cli.rb', line 13

def first_ipv4
  $stdout.puts SwissAdmin::Network.first_ipv4 
end

#ip_addressesObject



8
9
10
# File 'lib/swiss_admin/cli/network_cli.rb', line 8

def ip_addresses
  $stdout.puts SwissAdmin::Network.ip_addresses
end