Class: Indocker::EnvFileHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/indocker/env_file_helper.rb

Constant Summary collapse

ENV_FILES_FOLDER =
'env_files'.freeze

Class Method Summary collapse

Class Method Details

.folderObject



9
10
11
# File 'lib/indocker/env_file_helper.rb', line 9

def folder
   File.join(Indocker.deploy_dir, ENV_FILES_FOLDER)
end

.path(env_file) ⇒ Object



5
6
7
# File 'lib/indocker/env_file_helper.rb', line 5

def path(env_file)
  File.expand_path(File.join(folder, File.basename(env_file.path)))
end