Module: Capistrano::NFS::DSL

Defined in:
lib/capistrano/nfs/dsl.rb

Instance Method Summary collapse

Instance Method Details

#linked_nfs_dir_parents(parent) ⇒ Object



25
26
27
# File 'lib/capistrano/nfs/dsl.rb', line 25

def linked_nfs_dir_parents(parent)
  map_dirnames(linked_nfs_dirs(parent))
end

#linked_nfs_dirs(parent) ⇒ Object



11
12
13
14
# File 'lib/capistrano/nfs/dsl.rb', line 11

def linked_nfs_dirs(parent)
  paths = fetch(:linked_nfs_dirs)
  join_paths(parent, paths)
end

#linked_nfs_file_dirs(parent) ⇒ Object



21
22
23
# File 'lib/capistrano/nfs/dsl.rb', line 21

def linked_nfs_file_dirs(parent)
  map_dirnames(linked_nfs_files(parent))
end

#linked_nfs_files(parent) ⇒ Object



16
17
18
19
# File 'lib/capistrano/nfs/dsl.rb', line 16

def linked_nfs_files(parent)
  paths = fetch(:linked_nfs_files)
  join_paths(parent, paths)
end

#nfs_pathObject



7
8
9
# File 'lib/capistrano/nfs/dsl.rb', line 7

def nfs_path
  Pathname.new fetch(:nfs_path, "#{shared_path}")
end