class RakeGatling::Shell

Public Instance Methods

execute(command) click to toggle source
# File lib/src/Shell.rb, line 3
def execute(command)
        puts `#{command}`
end
move_directory_contents_up(location) click to toggle source
# File lib/src/Shell.rb, line 11
def move_directory_contents_up(location)
        directories = Dir.glob("#{location}/*")
        Dir.glob("#{location}/*/*") {
                |folder_object| mv File.expand_path(folder_object), location
        }
        directories.each do | directory |
                rm_rf File.expand_path(directory)
        end
end
remove_directory(directory_name) click to toggle source
# File lib/src/Shell.rb, line 7
def remove_directory(directory_name)
        rm_rf directory_name
end