lib/commands/network.rb in testlab-0.9.1 vs lib/commands/network.rb in testlab-1.0.0
- old
+ new
@@ -52,11 +52,11 @@
route.desc 'Add routes to lab networks'
route.command :add do |add|
add.action do |global_options,options,args|
iterate_objects_by_name(options[:name], TestLab::Network) do |network|
p = TestLab::Provisioner::Route.new({}, @ui)
- p.on_network_setup(network)
+ p.on_network_provision(network)
@testlab.ui.stdout.puts("Added routes successfully!".green.bold)
@testlab.ui.stdout.puts %x(netstat -nr | grep '#{network.node.ip}').strip
end
end
end
@@ -66,10 +66,10 @@
route.desc 'Delete routes to lab networks'
route.command :del do |del|
del.action do |global_options,options,args|
iterate_objects_by_name(options[:name], TestLab::Network) do |network|
p = TestLab::Provisioner::Route.new({}, @ui)
- p.on_network_teardown(network)
+ p.on_network_deprovision(network)
@testlab.ui.stdout.puts("Deleted routes successfully!".red.bold)
@testlab.ui.stdout.puts %x(netstat -nr | grep '#{network.node.ip}').strip
end
end
end