Sha256: 16e7dd5061e23294c170bd06416db28b92493362c8cfc57381b6fbe256031b10

Contents?: true

Size: 490 Bytes

Versions: 101

Compression:

Stored size: 490 Bytes

Contents

module ::ProxyAPI
  class RemoteExecutionSSH < ::ProxyAPI::Resource
    def initialize(args)
      @url = args[:url] + '/ssh'
      super args
    end

    def pubkey
      get('pubkey').strip
    rescue => e
      raise ProxyException.new(url, e, N_('Unable to fetch public key'))
    end

    def drop_from_known_hosts(hostname)
      delete('known_hosts/' + hostname)
    rescue => e
      raise ProxyException.new(url, e, N_('Unable to remove host from known hosts'))
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
foreman_remote_execution-15.0.0 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.1.4 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.1.3 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.1.2 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.1.1 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.1.0 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.0.2 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.0.1 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.2.6 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-14.0.0 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.2.5 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.2.4 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.2.3 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.2.2 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-12.0.7 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.2.1 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.2.0 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-10.1.3 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-13.0.0 app/lib/proxy_api/remote_execution_ssh.rb
foreman_remote_execution-12.0.5 app/lib/proxy_api/remote_execution_ssh.rb