Module: RHC::ConfigEnv
- Included in:
- Config
- Defined in:
- lib/rhc/config.rb
Instance Method Summary collapse
- #conf_name ⇒ Object
- #home_conf_dir ⇒ Object
- #local_config_path ⇒ Object
- #ssh_dir ⇒ Object
- #ssh_priv_key_file_path ⇒ Object
- #ssh_pub_key_file_path ⇒ Object
Instance Method Details
#conf_name ⇒ Object
7 8 9 |
# File 'lib/rhc/config.rb', line 7 def conf_name "#{ENV['OPENSHIFT_CONFIG'].presence || 'express'}.conf" end |
#home_conf_dir ⇒ Object
10 11 12 |
# File 'lib/rhc/config.rb', line 10 def home_conf_dir File.join(home_dir, '.startapp') end |
#local_config_path ⇒ Object
13 14 15 |
# File 'lib/rhc/config.rb', line 13 def local_config_path File.join(home_conf_dir, conf_name) end |
#ssh_dir ⇒ Object
16 17 18 |
# File 'lib/rhc/config.rb', line 16 def ssh_dir File.join(home_dir, '.ssh') end |