1Config::Model::FuseUI(3U)ser Contributed Perl DocumentatiCoonnfig::Model::FuseUI(3)
2
3
4

NAME

6       Config::Model::FuseUI - Fuse virtual file interface for Config::Model
7

VERSION

9       version 2.140
10

SYNOPSIS

12        # command line
13        mkdir mydir
14        cme fusefs popcon -fuse-dir mydir
15        ll mydir
16        fusermount -u mydir
17
18        # programmatic
19        use Config::Model ;
20        use Config::Model::FuseUI ;
21
22        my $model = Config::Model -> new;
23        my $root = $model -> instance (root_class_name => "PopCon") -> config_root ;
24        my $ui = Config::Model::FuseUI->new( root => $root, mountpoint => "mydir" );
25        $ui -> run_loop ;  # blocking call
26
27        # explore mydir in another terminal then umount mydir directory
28

DESCRIPTION

30       This module provides a virtual file system interface for you
31       configuration data. Each possible parameter of your configuration file
32       is mapped to a file.
33

Example

35        $ cme fusefs popcon -fuse-dir fused
36        Mounting config on fused in background.
37        Use command 'fusermount -u fused' to unmount
38        $ ll fused
39        total 4
40        -rw-r--r-- 1 domi domi  1 Dec  8 19:27 DAY
41        -rw-r--r-- 1 domi domi  0 Dec  8 19:27 HTTP_PROXY
42        -rw-r--r-- 1 domi domi  0 Dec  8 19:27 MAILFROM
43        -rw-r--r-- 1 domi domi  0 Dec  8 19:27 MAILTO
44        -rw-r--r-- 1 domi domi 32 Dec  8 19:27 MY_HOSTID
45        -rw-r--r-- 1 domi domi  3 Dec  8 19:27 PARTICIPATE
46        -rw-r--r-- 1 domi domi  0 Dec  8 19:27 SUBMITURLS
47        -rw-r--r-- 1 domi domi  3 Dec  8 19:27 USEHTTP
48        $ fusermount -u fuse_dir
49

BUGS

51       ·   For some configuration, mapping each parameter to a file may lead
52           to a high number of files.
53
54       ·   The content of a file is when writing a wrong value. I.e. the files
55           is empty and the old value is lost.
56

constructor

new

59       parameters are:
60
61       model
62           Config::Model object
63
64       root
65           Root of the configuration tree ("Config::Model::Node" object )
66
67       mountpoint
68

Methods

70   run_loop
71       Parameters: "( fork_in_loop => 1|0, debug => 1|0 )"
72
73       Mount the file system either in the current process or fork a new
74       process before mounting the file system.  In the former case, the call
75       is blocking. In the latter case, the call returns after forking a
76       process that performs the mount. Debug parameter is passed to Fuse
77       system to get traces from Fuse.
78
79   fuse_mount
80       Mount the fuse file system. This method blocks until the file system is
81       unmounted (with "fusermount -u mount_point" command)
82

SEE ALSO

84       Fuse, Config::Model, cme
85

AUTHOR

87       Dominique Dumont
88
90       This software is Copyright (c) 2005-2020 by Dominique Dumont.
91
92       This is free software, licensed under:
93
94         The GNU Lesser General Public License, Version 2.1, February 1999
95
96
97
98perl v5.32.0                      2020-08-02          Config::Model::FuseUI(3)
Impressum