Skip to content

Commit

Permalink
more consistent heredocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 26, 2013
1 parent 0913683 commit 88c3814
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.17 2013-06-24
4.17 2013-06-26
- Fixed Mojo::Transaction::WebSocket to generate RFC 6455 compliant
Sec-WebSocket-Key headers. (josh)

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command.pm
Expand Up @@ -104,7 +104,7 @@ Mojolicious::Command - Command base class
has description => "My first Mojo command.\n";
# Short usage message
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 mycommand [OPTIONS]
These options are available:
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/cgi.pm
Expand Up @@ -5,7 +5,7 @@ use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
use Mojo::Server::CGI;

has description => "Start application with CGI.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 cgi [OPTIONS]
These options are available:
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/cpanify.pm
Expand Up @@ -6,7 +6,7 @@ use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
use Mojo::UserAgent;

has description => "Upload distribution to CPAN.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 cpanify [OPTIONS] [FILE]
mojo cpanify -u sri -p secr3t Mojolicious-Plugin-MyPlugin-0.01.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/daemon.pm
Expand Up @@ -5,7 +5,7 @@ use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
use Mojo::Server::Daemon;

has description => "Start application with HTTP and WebSocket server.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 daemon [OPTIONS]
These options are available:
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/eval.pm
Expand Up @@ -4,7 +4,7 @@ use Mojo::Base 'Mojolicious::Command';
use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);

has description => "Run code against application.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 eval [OPTIONS] CODE
mojo eval 'say app->ua->get("/")->res->body'
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Command/generate.pm
Expand Up @@ -2,11 +2,11 @@ package Mojolicious::Command::generate;
use Mojo::Base 'Mojolicious::Commands';

has description => "Generate files and directories from templates.\n";
has hint => <<"EOF";
has hint => <<EOF;
See '$0 generate help GENERATOR' for more information on a specific generator.
EOF
has message => <<"EOF";
has message => <<EOF;
usage: $0 generate GENERATOR [OPTIONS]
These generators are currently available:
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -11,7 +11,7 @@ use Mojo::Util qw(decode encode);
use Scalar::Util 'weaken';

has description => "Perform HTTP request.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 get [OPTIONS] URL [SELECTOR|JSON-POINTER] [COMMANDS]
mojo get /
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/prefork.pm
Expand Up @@ -6,7 +6,7 @@ use Mojo::Server::Prefork;

has description =>
"Start application with preforking HTTP and WebSocket server.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 prefork [OPTIONS]
These options are available:
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/routes.pm
Expand Up @@ -6,7 +6,7 @@ use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
use Mojo::Util 'encode';

has description => "Show available routes.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 routes [OPTIONS]
These options are available:
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/test.pm
Expand Up @@ -8,7 +8,7 @@ use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
use Mojo::Home;

has description => "Run unit tests.\n";
has usage => <<"EOF";
has usage => <<EOF;
usage: $0 test [OPTIONS] [TESTS]
These options are available:
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/version.pm
Expand Up @@ -17,7 +17,7 @@ sub run {
my $tls
= Mojo::IOLoop::Server::TLS ? $IO::Socket::SSL::VERSION : 'not installed';

print <<"EOF";
print <<EOF;
CORE
Perl ($^V, $^O)
Mojolicious ($Mojolicious::VERSION, $Mojolicious::CODENAME)
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Commands.pm
Expand Up @@ -5,7 +5,7 @@ use Getopt::Long 'GetOptions';
use List::Util 'max';
use Mojo::Server;

has hint => <<"EOF";
has hint => <<EOF;
These options are available for all commands:
-h, --help Get more information on a specific command.
Expand All @@ -16,7 +16,7 @@ These options are available for all commands:
See '$0 help COMMAND' for more information on a specific command.
EOF
has message => <<"EOF";
has message => <<EOF;
usage: $0 COMMAND [OPTIONS]
Tip: CGI and PSGI environments can be automatically detected very often and
Expand Down
2 changes: 1 addition & 1 deletion script/hypnotoad
Expand Up @@ -15,7 +15,7 @@ GetOptions(
't|test' => sub { $ENV{HYPNOTOAD_TEST} = 1 }
);

die <<"EOF" if $help || !(my $app = shift || $ENV{HYPNOTOAD_APP});
die <<EOF if $help || !(my $app = shift || $ENV{HYPNOTOAD_APP});
usage: $0 [OPTIONS] [APPLICATION]
hypnotoad script/myapp
Expand Down
2 changes: 1 addition & 1 deletion script/morbo
Expand Up @@ -15,7 +15,7 @@ GetOptions(
'w|watch=s' => \my @watch
);

die <<"EOF" if $help || !(my $app = shift);
die <<EOF if $help || !(my $app = shift);
usage: $0 [OPTIONS] [APPLICATION]
morbo script/myapp
Expand Down

0 comments on commit 88c3814

Please sign in to comment.