lib/um/umconfig.rb
# Cache the current pages directory in a file. This is used by the bash
# completion script to avoid spinning up Ruby.
Cache the current pages directory in a file. This is used by the bash
completion script to avoid spinning up Ruby.
Cache the current pages directory in a file . This is used by the bash completion script to avoid spinning up Ruby .
def write_pages_directory(pages_directory_path)
      tmp_dir_path = '/var/tmp/um/' + Etc.getlogin
      FileUtils.mkdir_p tmp_dir_path
      tmp_file_path = tmp_dir_path + '/current.pagedir'
      unless File.exist?(tmp_file_path)
        File.write(tmp_file_path, pages_directory_path)
      end
    end
def write_pages_directory ( pages_directory_path ) tmp_dir_path = '/var/tmp/um/' + Etc . getlogin FileUtils . mkdir_p tmp_dir_path tmp_file_path = tmp_dir_path + '/current.pagedir' unless File . exist? ( tmp_file_path ) File . write ( tmp_file_path , pages_directory_path ) end end
Cache the current pages directory in a file.
Cache the current pages directory in a file .
pages_directory_path