# File lib/deltacloud/drivers/gogrid/gogrid_driver.rb, line 142
  def run_on_instance(credentials, opts={})
    target = instance(credentials, opts[:id])
    param = {}
    param[:credentials] = {
      :username => target.username,
      :password => target.password,
    }
    param[:credentials].merge!({ :password => opts[:password]}) if opts[:password].length>0
    param[:port] = opts[:port] || '22'
    param[:ip] = target.public_addresses
    Deltacloud::Runner.execute(opts[:cmd], param)
  end