Sha256: d8ed3fb8dd541c7c29d852c7683f7ea0e218a7eb667aeea11f56215e67897b6f
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true module Avm module Instances class Base module AutoValues module Filesystem FS_PATH_KEY = :fs_path def auto_fs_path inherited_entry_value(:host_id, FS_PATH_KEY) { |v| v + '/' + id } end def auto_data_fs_path inherited_entry_value(:host_id, :data_fs_path) { |v| v + '/' + id } end def auto_fs_url read_entry_optional('ssh.url').if_present do |ssh_url| read_entry_optional('fs_path').if_present do |fs_path| "#{ssh_url}#{fs_path}" end end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems