Sha256: 8c79c6c38479e6277ccd1d6d6ce3215f535e14b2ad9450e225793ef068fadfe2
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_host_to_guest (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 65</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy_file_from_host_to_guest</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>) <span class="ruby-identifier">command</span> = <span class="ruby-value str">'copyFileFromHostToGuest'</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