example vm modifier

git-svn-id: file:///home/svn/framework3/trunk@13410 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Jonathan Cran 2011-07-29 18:23:20 +00:00
parent d4e85c1dfa
commit 5f3cd45d07
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# This assumes you're on a recent ubuntu
# TODO - enforce this, or split it out...
module Lab
module Modifier
module Test
def install_nmap
run_command("sudo apt-get install nmap")
end
def nmap(options)
run_command("nmap #{filter_input(options)}")
end
def test
run_command("echo yo!")
end
end
end
end