Class: RHC::Commands::Base
- Includes:
- RHC::ContextHelpers, Helpers
- Defined in:
- lib/rhc/commands/base.rb
Direct Known Subclasses
Account, Alias, App, Apps, Authorization, Cartridge, Deployment, Domain, Env, GitClone, Logout, Member, PortForward, Scp, Server, Setup, Snapshot, Ssh, Sshkey, Tail, Team, Threaddump
Defined Under Namespace
Classes: InvalidCommand
Constant Summary
Constants included from Helpers
Helpers::BOUND_WARNING, Helpers::PREFIX, Helpers::ROLES
Instance Attribute Summary collapse
-
#config ⇒ Object
writeonly
Sets the attribute config.
-
#options ⇒ Object
writeonly
Sets the attribute options.
Instance Method Summary collapse
-
#initialize(options = Commander::Command::Options.new, config = RHC::Config.new) ⇒ Base
constructor
A new instance of Base.
Methods included from RHC::ContextHelpers
#find_app, #find_domain, #find_membership_container, #find_team, #from_local_git, included, #namespace_context, #server_context
Methods included from GitHelpers
#git_clone_application, #git_clone_deploy_hooks, #git_clone_repo, #git_cmd, #git_config_get, #git_config_set, #git_remote_add, #git_version, #has_git?
Methods included from Helpers
#agree, #certificate_file, #client_from_options, #collect_env_vars, #color, #confirm_action, #date, #datetime_rfc3339, #debug, #debug?, #debug_error, #decode_json, #deprecated, #deprecated_command, #disable_deprecated?, #distance_of_time_in_words, #env_var_regex_pattern, #error, #exec, #host_exists?, #hosts_file_contains?, #human_size, #info, #interactive?, #jruby?, #mac?, #openshift_online_server?, #openshift_rest_endpoint, #openshift_server, #openshift_url, #pluralize, #results, #role_name, #run_with_tee, #ssh_string, #ssh_string_parts, #ssl_options, #success, #system_path, #table_heading, #to_host, #to_uri, #token_for_user, #unix?, #user_agent, #warn, #windows?, #with_tolerant_encoding
Methods included from OutputHelpers
#default_display_env_var, #display_app, #display_app_configurations, #display_authorization, #display_cart, #display_cart_storage_info, #display_cart_storage_list, #display_deployment, #display_deployment_list, #display_domain, #display_env_var_list, #display_key, #display_team, #format_cart_gears, #format_cart_header, #format_gear_info, #format_key_header, #format_scaling_info, #format_usage_message
Constructor Details
#initialize(options = Commander::Command::Options.new, config = RHC::Config.new) ⇒ Base
Returns a new instance of Base.
14 15 16 17 |
# File 'lib/rhc/commands/base.rb', line 14 def initialize(=Commander::Command::Options.new, config=RHC::Config.new) @options, @config = , config end |
Instance Attribute Details
#config=(value) ⇒ Object
Sets the attribute config
12 13 14 |
# File 'lib/rhc/commands/base.rb', line 12 def config=(value) @config = value end |
#options=(value) ⇒ Object
Sets the attribute options
12 13 14 |
# File 'lib/rhc/commands/base.rb', line 12 def (value) @options = value end |