[ _mode => qw(P M) ] ],
[ is_directory => [ 'Path' ],
- [ not => [ _is_directory => 'Path' ] ],
+ [ not => [ [ _is_directory => 'Path' ] ] ],
[ act => [ 'Path' ], sub {
DX::Lib::FS::Action::CreateDirectory->new(
path => $_[0],
[ _is_directory => 'Path' ] ],
[ is_file => [ 'Path' ],
- [ not => [ _is_file => 'Path' ] ],
+ [ not => [ [ _is_file => 'Path' ] ] ],
[ act => [ 'Path' ], sub {
DX::Lib::FS::Action::CreateFile->new(
path => $_[0],
[ mode => [ qw(P M) ],
[ path_status_at => qw(PS P) ],
- [ not => [ _mode => qw(P M) ] ],
+ [ not => [ [ _mode => qw(P M) ] ] ],
[ act => [ qw(PS M) ], sub {
DX::Lib::FS::Action::SetPathMode->new(
path_status => $_[0], mode => $_[1]
[ does => 'A' => \'DX::Lib::FS::Action::RewriteFile' ] ],
[ contains_line => [ qw(P L) ],
- [ not => [ _contains_line => qw(P L) ] ],
+ [ not => [ [ _contains_line => qw(P L) ] ] ],
[ file_content_at => qw(FC P) ],
[ has_action => qw(FC A) ],
[ _action_modifying_fc => 'A' ],
[ 'cut' ] ],
[ contains_line => [ qw(P L) ],
- [ not => [ _contains_line => qw(P L) ] ],
+ [ not => [ [ _contains_line => qw(P L) ] ] ],
[ file_content_at => qw(FC P) ],
[ act => [ qw(FC L) ], sub {
DX::Lib::FS::Action::RewriteFile->new(
} ] ],
[ not_contains_line => [ qw(P L) ],
- [ not => [ _contains_line => qw(P L) ] ] ],
+ [ not => [ [ _contains_line => qw(P L) ] ] ] ],
[ _arrange_removal_of => [ qw(FC L) ],
[ has_action => qw(FC A) ],
$path_status{'.ssh/authorized_keys'} = $protos{'.ssh/authorized_keys'};
is(
- paths_for([ path_status => 'PS' ], [ not => [ is_directory => 'PS' ] ]),
+ paths_for([ path_status => 'PS' ], [ not => [ [ is_directory => 'PS' ] ] ]),
'.ssh/authorized_keys',
'Negation'
);
$solver->add_rule(@$_) for (
[ is_directory => [ qw(PS) ],
- [ not => [ exists_path => 'PS' ] ],
+ [ not => [ [ exists_path => 'PS' ] ] ],
[ act => [ 'PS' ],
sub {
my ($value) = @_;
[ catfile => qw(DirPath FileName FilePath) ],
[ file_at => qw(FileStatus FilePath) ] ],
[ is_file => [ qw(PS) ],
- [ not => [ exists_path => 'PS' ] ],
+ [ not => [ [ exists_path => 'PS' ] ] ],
[ act => [ 'PS' ],
sub {
my ($value) = @_;