popularity question answers views user  
0
How to execute Terminal commands in recipe

Hi all,

i want to execute Terminal commands in a recipe and i donĀ“t know how to write the ruby file. I already tried to upload and run this recipe: package “install-faban” do

command "wget http://java.net/downloads/faban/faban-kit/faban-kit-022311.tar.gz"

command "untar -xzf faban-kit-022311.tar.gz"

command "cd faban/"
#Install required Faban Services
#Glassfish
command "cp cp samples/services/GlassfishService/build/GlassfishService.jar services"
#MySQL
command "cp samples/services/MysqlService/build/MysqlService.jar services"
#Memcached
command "cp samples/services/MemcachedService/build/MemcachedService.jar services"

end

but after running the client the error NoMethodError: undefined Method ‘command’ came up.

Can somebody help?

more →
1 237