line |
true |
false |
branch |
65
|
2 |
49 |
if $opt{'help'}
|
67
|
2 |
47 |
if ($opt{'version'} or $opt{'verbose'} and not @argv)
|
73
|
1 |
46 |
unless $method
|
76
|
7 |
39 |
if ($method eq 'create')
|
84
|
2 |
37 |
unless (-e $opt{'config'})
|
91
|
4 |
33 |
if ($@)
|
92
|
4 |
0 |
if (&blessed($@) and $@->isa('Beam::Wire::Exception::Config'))
|
94
|
2 |
2 |
if ($@ =~ /found character that cannot start any token/ or $@ =~ /YAML_PARSE_ERR_NONSPACE_INDENTATION/) { }
|
|
2 |
0 |
elsif ($@ =~ /did not find expected key/ or $@ =~ /YAML_PARSE_ERR_INCONSISTENT_INDENTATION/) { }
|
|
0 |
0 |
elsif ($@ =~ /Syck parser/ and $@ =~ /syntax error/) { }
|
104
|
2 |
2 |
!$opt{'verbose'} ? :
|
111
|
2 |
2 |
$opt{'verbose'} ? :
|
121
|
4 |
29 |
if ($@)
|
122
|
2 |
1 |
if (&blessed($@) and $@->isa('Beam::Wire::Exception::NotFound') and $@->name eq $opt{'site'})
|
134
|
4 |
25 |
if ($opt{'verbose'})
|
139
|
11 |
18 |
if ($method eq 'build') { }
|
|
7 |
11 |
elsif ($method eq 'deploy') { }
|
|
1 |
10 |
elsif ($method eq 'apps') { }
|
|
0 |
10 |
elsif ($method eq 'status') { }
|
|
3 |
7 |
elsif ($method eq 'daemon') { }
|
|
4 |
3 |
elsif ($method eq 'bundle') { }
|
170
|
0 |
0 |
if ($status->{'last_deploy_date'}) { }
|
200
|
1 |
2 |
if ($opt{'port'})
|
217
|
4 |
0 |
if ($what eq 'theme')
|
219
|
1 |
3 |
unless ($theme_name)
|
234
|
1 |
2 |
if (not $app) { }
|
|
1 |
1 |
elsif (not $app->can('command')) { }
|
255
|
5 |
2 |
if (@$argv)
|
257
|
3 |
2 |
if ($base =~ m[^https?://(.+)]) { }
|
285
|
0 |
7 |
if $answer{'flavor'} eq ''
|
294
|
2 |
5 |
if $answer{'bundle_theme'} eq ''
|
296
|
2 |
5 |
unless ($answer{'base_url'})
|
300
|
1 |
1 |
unless ($answer{'base_url'} =~ m[^https?://])
|
312
|
2 |
5 |
if $answer{'deploy_class'} eq ''
|
314
|
2 |
5 |
if ($answer{'deploy_class'} == 1) { }
|
|
3 |
2 |
elsif ($answer{'deploy_class'} == 2) { }
|
338
|
2 |
5 |
if ($answer{'flavor'} == 1) { }
|
|
3 |
2 |
elsif ($answer{'flavor'} == 2) { }
|
360
|
2 |
5 |
if (lc $answer{'bundle_theme'} eq 'y') { }
|
370
|
7 |
0 |
if ($answer{'base_url'})
|
374
|
2 |
5 |
if ($answer{'deploy_class'} == 1) { }
|
|
3 |
2 |
elsif ($answer{'deploy_class'} == 2) { }
|
403
|
0 |
21 |
unless $path
|
409
|
7 |
0 |
if (my $ref = $site->{'site'}{'args'}{'apps'}{'blog'})
|
411
|
7 |
0 |
if ($path)
|
429
|
7 |
0 |
if (my $ref = $site->{'site'}{'args'}{'apps'}{'page'})
|
431
|
7 |
0 |
if ($path)
|
449
|
4 |
1 |
if (not @files) { }
|
452
|
28 |
88 |
unless $path->is_file
|
465
|
5 |
87 |
if $abs_path->stat->size == 0 and $dest->exists
|
467
|
17 |
70 |
if $dest->exists
|
493
|
0 |
2 |
unless $self->cleanup
|
505
|
3 |
0 |
if ($self->site->base_url)
|
511
|
0 |
3 |
if ($base)
|
523
|
0 |
3 |
if (not $can_watch and $^O =~ /darwin/)
|
528
|
0 |
3 |
if ($can_watch)
|
533
|
0 |
0 |
if ($app->can('store'))
|
540
|
0 |
0 |
unless ('Path::Tiny'->new(dist_dir('Statocles'))->subsumes($theme_path))
|
560
|
0 |
0 |
unless $fs and $handle
|
571
|
0 |
0 |
if ($event->path =~ /^\Q$build_dir\E/)
|
580
|
0 |
0 |
if ($rebuild)
|
596
|
0 |
0 |
if $path->canonicalize->parts->[0] eq '..'
|
600
|
0 |
0 |
unless ($asset)
|
601
|
0 |
0 |
if ($path =~ m[/$]) { }
|
|
0 |
0 |
elsif ($c->app->site->build_store->path->child($path)->is_dir) { }
|
611
|
0 |
0 |
unless ($asset)
|
619
|
0 |
3 |
if ($base) { }
|