Sha256: a0699f4b68bd37cf6667055852846fce9e331fc3a935b2b45ef8bc50b18dc189
Contents?: true
Size: 1.69 KB
Versions: 10
Compression:
Stored size: 1.69 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>copy_file_from_guest_to_host (VMServer)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/vmserver.rb, line 78</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy_file_from_guest_to_host</span>(<span class="ruby-identifier">src</span>,<span class="ruby-identifier">dest</span>) <span class="ruby-identifier">command</span> = <span class="ruby-value str">'copyFileFromGuestToHost'</span> <span class="ruby-identifier">vm_command</span> = <span class="ruby-node">"#{@base_command} -gu #{@guest_user} -gp #{@guest_password} #{command} \'#{@datastore}\' \'#{src}\' \'#{dest}\'"</span> <span class="ruby-identifier">log</span> <span class="ruby-identifier">vm_command</span> <span class="ruby-identifier">result</span> = <span class="ruby-identifier">system</span>(<span class="ruby-identifier">vm_command</span>) <span class="ruby-identifier">result</span> <span class="ruby-value">? </span><span class="ruby-identifier">log</span>(<span class="ruby-value str">"Copy successful."</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">log</span>(<span class="ruby-value str">"Error! Copy failed."</span>) <span class="ruby-identifier">result</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
10 entries across 10 versions & 1 rubygems