Module RHC
In: lib/rhc/rest.rb
lib/rhc/help_formatter.rb
lib/rhc/ssh_key_helpers.rb
lib/rhc/version.rb
lib/rhc/output_helpers.rb
lib/rhc/rest/key.rb
lib/rhc/rest/base.rb
lib/rhc/rest/domain.rb
lib/rhc/rest/cartridge.rb
lib/rhc/rest/application.rb
lib/rhc/rest/gear_group.rb
lib/rhc/rest/user.rb
lib/rhc/rest/client.rb
lib/rhc/cartridge_helper.rb
lib/rhc/cli.rb
lib/rhc/targz.rb
lib/rhc/exceptions.rb
lib/rhc/context_helper.rb
lib/rhc/helpers.rb
lib/rhc/autocomplete.rb
lib/rhc/json.rb
lib/rhc/config.rb
lib/rhc/git_helper.rb
lib/rhc/vendor/sshkey.rb
lib/rhc/vendor/parseconfig.rb
lib/rhc/vendor/zliby.rb
lib/rhc/vendor/okjson.rb
lib/rhc/command_runner.rb
lib/rhc/commands.rb
lib/rhc/wizard.rb
lib/rhc-common.rb
lib/rhc.rb

Methods

Classes and Modules

Module RHC::CLI
Module RHC::CartridgeHelpers
Module RHC::Commands
Module RHC::ContextHelpers
Module RHC::GitHelpers
Module RHC::Helpers
Module RHC::Json
Module RHC::OutputHelpers
Module RHC::Rest
Module RHC::SSHKeyHelpers
Module RHC::TarGz
Module RHC::VERSION
Module RHC::Vendor
Class RHC::ApplicationNotFoundException
Class RHC::AutoComplete
Class RHC::AutoCompleteBindings
Class RHC::CartridgeNotFoundException
Class RHC::CartridgeNotScalableException
Class RHC::Client
Class RHC::CommandHelpBindings
Class RHC::CommandRunner
Class RHC::Config
Class RHC::DeprecatedError
Class RHC::DomainNotFoundException
Class RHC::Exception
Class RHC::GitException
Class RHC::HelpFormatter
Class RHC::JsonError
Class RHC::KeyDataInvalidException
Class RHC::KeyFileAccessDeniedException
Class RHC::KeyFileNotExistentException
Class RHC::KeyNotFoundException
Class RHC::MissingScalingValueException
Class RHC::MultipleCartridgesException
Class RHC::NoPortsToForwardException
Class RHC::PermissionDeniedException
Class RHC::PortForwardFailedException
Class RHC::RerunWizard
Class RHC::SSHWizard
Class RHC::ScaledApplicationsNotSupportedException
Class RHC::SnapshotRestoreException
Class RHC::SnapshotSaveException
Class RHC::Wizard

Constants

DEFAULT_MAX_LENGTH = 16
APP_NAME_MAX_LENGTH = 32
MAX_RETRIES = 7
DEFAULT_DELAY = 2.0
API = "1.1.3"
PATTERN_VERSION = /\A\d+\.\d+\.\d+\z/
CLEAR_LINE = "\r" + "\e[0K"   reset lines \r moves the cursor to the beginning of line ANSI escape code to clear line from cursor to end of line "\e" is an alternative to "\033" cf. en.wikipedia.org/wiki/ANSI_escape_code
DEBUG_INGORE_KEYS = { 'result' => nil, 'debug' => nil, 'exit_code' => nil, 'messages' => nil, 'data' => nil, 'api' => nil

Public Class methods

An application is considered available if the health check URL unambiguously returns a 1 or 0. Otherwise, if the root URL for the app successfully returns content it is also considered successful. In the future, applications that do not expose a public web interface will need a more advanced check mechanism, or the check should not prevent creation.

Invalid chars (") ($) (^) (<) (>) (|) (%) (/) (;) (:) (,) (\) (*) (=) (~)

Public: Get a list of ssh keys

type - The String type RSA or DSS. libra_server - The String DNS for the broker rhlogin - The String login name password - The String password for login net_http - The NET::HTTP Object to use

Examples

 RHC::get_ssh_keys('openshift.redhat.com',
                   'mylogin@example.com',
                   'mypassword',
                   RHC::Config.default_proxy)
 # => { "ssh_type" => "ssh-rsa",
        "ssh_key" => "AAAAB3NzaC1yc2EAAAADAQAB....",
        "fingerprint" => "ea:08:e3:c7:e3:c3:8e:6a:66:34:65:e4:56:f4:3e:ff"}

FIXME! Exits on failure! Should return something instead

Returns Hash on success or exits on failure

Check if host exists

[Validate]