Module: RHC::ConfigEnv

Included in:
Config
Defined in:
lib/rhc/config.rb

Instance Method Summary collapse

Instance Method Details

#conf_nameObject



7
8
9
# File 'lib/rhc/config.rb', line 7

def conf_name
  "#{ENV['OPENSHIFT_CONFIG'].presence || 'express'}.conf"
end

#home_conf_dirObject



10
11
12
# File 'lib/rhc/config.rb', line 10

def home_conf_dir
  File.join(home_dir, '.startapp')
end

#local_config_pathObject



13
14
15
# File 'lib/rhc/config.rb', line 13

def local_config_path
  File.join(home_conf_dir, conf_name)
end

#ssh_dirObject



16
17
18
# File 'lib/rhc/config.rb', line 16

def ssh_dir
  File.join(home_dir, '.ssh')
end

#ssh_priv_key_file_pathObject



19
20
21
# File 'lib/rhc/config.rb', line 19

def ssh_priv_key_file_path
  File.join(ssh_dir, 'id_rsa')
end

#ssh_pub_key_file_pathObject



22
23
24
# File 'lib/rhc/config.rb', line 22

def ssh_pub_key_file_path
  File.join(ssh_dir, 'id_rsa.pub')
end