Module: Capistrano::SecretsGenerate::Paths

Defined in:
lib/capistrano/secrets_generate/paths.rb

Instance Method Summary collapse

Instance Method Details

#secret_token_current_pathObject



18
19
20
# File 'lib/capistrano/secrets_generate/paths.rb', line 18

def secret_token_current_path
  return current_path.join(secret_token_path)
end

#secret_token_linked_dirObject



14
15
16
# File 'lib/capistrano/secrets_generate/paths.rb', line 14

def secret_token_linked_dir
  return secret_token_linked_path.join('..')
end

#secret_token_linked_pathObject



10
11
12
# File 'lib/capistrano/secrets_generate/paths.rb', line 10

def secret_token_linked_path
  return shared_path.join(secret_token_path)
end

#secret_token_pathObject



6
7
8
# File 'lib/capistrano/secrets_generate/paths.rb', line 6

def secret_token_path
  return Pathname.new(fetch(:secret_file))
end