| 1 | # PODNAME: General.pm | ||
| 2 | # ABSTRACT: NetworkManager properties general class | ||
| 3 | |||
| 4 | use v5.37.9; | ||
| 5 | use experimental qw( class builtin try ); | ||
| 6 | |||
| 7 | package NetworkManager::General; | ||
| 8 | class NetworkManager::General { | ||
| 9 | |||
| 10 | use Path::Tiny qw(); | ||
| 11 | |||
| 12 | field $path = Path::Tiny -> new( '/etc/NetworkManager/system-connections/' ); | ||
| 13 | # Configuration directory path | ||
| 14 | |||
| 15 | field $ethernet = 'Wired connection 1'; | ||
| 16 | # Network interface profile name | ||
| 17 | |||
| 18 | field $extension = 'nmconnection'; | ||
| 19 | # Network interface profile file extension | ||
| 20 | |||
| 21 | method path ( ) { $path; } | ||
| 22 | |||
| 23 | |||
| 24 | method ethernet ( ) { $ethernet; } | ||
| 25 | |||
| 26 | |||
| 27 | method extension ( ) { $extension; } | ||
| 28 | |||
| 29 | |||
| 30 | } | ||
| 31 | |||
| 32 | __END__ |