OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86cf6fd
)
Command::configdump: tidy output
author
hylom
<hylom@users.osdn.me>
Fri, 21 Sep 2018 10:29:08 +0000
(19:29 +0900)
committer
hylom
<hylom@users.osdn.me>
Fri, 21 Sep 2018 10:29:08 +0000
(19:29 +0900)
src/newslash_web/lib/Newslash/Command/configdump.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Command/configdump.pm
b/src/newslash_web/lib/Newslash/Command/configdump.pm
index
9c0c29a
..
aa9d677
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Command/configdump.pm
+++ b/
src/newslash_web/lib/Newslash/Command/configdump.pm
@@
-29,6
+29,8
@@
sub run {
my $conf = $self->app->config;
my $yaml = Dump($conf);
+ $yaml =~ s/^(\S.*:)$/\n$1/gm;
+
my $path = Mojo::File::path($filename);
$path->spurt($yaml);
}