Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implemented twiggy -v

  • Loading branch information...
commit 40c2ad057290c9fe82d655bdf282311a32766d56 1 parent c162a31
@miyagawa authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/twiggy
View
7 bin/twiggy
@@ -3,7 +3,12 @@ use strict;
use lib "lib";
use Plack::Runner;
-my $runner = Plack::Runner->new(server => 'Twiggy', env => 'deployment');
+sub version {
+ require Twiggy;
+ print "Twiggy $Twiggy::VERSION\n";
+}
+
+my $runner = Plack::Runner->new(server => 'Twiggy', env => 'deployment', version_cb => \&version);
$runner->parse_options(@ARGV);
$runner->run;
Please sign in to comment.
Something went wrong with that request. Please try again.