src/main/ruby/vmm_mad/jclouds_labs_driver.rb
# Prepare a remote context for the Virtual Machine
Prepare a remote context for the Virtual Machine
Prepare a remote context for the Virtual Machine
def prepare_context(deployment_id, id)         
        tar_filename = 'context.tgz'
        iso_dir = DS_LOCATION + '/' + ".isofiles" + "/" + id
        remote_context_dir = JCLOUDS_LABS_CONTEXT_PATH + '/' + deployment_id
        FileUtils.mkdir_p remote_context_dir       
        rc, info = do_action("cd #{iso_dir}; tar -cvzf #{tar_filename} * > /dev/null 2>&1; cp #{tar_filename} #{remote_context_dir} ")
        FileUtils.rm_rf iso_dir               
    end
def prepare_context ( deployment_id , id ) tar_filename = 'context.tgz' iso_dir = DS_LOCATION + '/' + ".isofiles" + "/" + id remote_context_dir = JCLOUDS_LABS_CONTEXT_PATH + '/' + deployment_id FileUtils . mkdir_p remote_context_dir rc , info = do_action ( "cd #{iso_dir}; tar -cvzf #{tar_filename} * > /dev/null 2>&1; cp #{tar_filename} #{remote_context_dir} " ) FileUtils . rm_rf iso_dir end
Prepare a remote context for the Virtual Machine
Prepare a remote context for the Virtual Machine
# Creating remote context dir         # Creating tarball and copying it in the remote_context_dir                 # Removing the iso_dir created by Opennebula       
deployment_id
<not_specific>
id
<not_specific>