Module RHC
In: lib/rhc-common.rb

Methods

Constants

DEFAULT_MAX_LENGTH = 16
APP_NAME_MAX_LENGTH = 32
MAX_RETRIES = 7
DEFAULT_DELAY = 2
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

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

Check if host exists

Runs rhc-list-ports on server to check available ports :stderr return user-friendly port name, :stdout returns 127.0.0.1:8080 format

Runs rhc-list-ports on server to check available ports :stderr return user-friendly port name, :stdout returns 127.0.0.1:8080 format

[Validate]