| 1 | 1 | ▶ | use strict; use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package YamlTime::Git; | ||
| 3 | our $VERSION = '0.09'; | ||
| 4 | |||
| 5 | 0 | ▶ | use YamlTime(); |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 6 | |||
| 7 | # XXX Put this here on 28/07/2011. Leave in for a while... | ||
| 8 | { | ||
| 9 | no warnings; | ||
| 10 | eval "require YamlTime::Extension::Git"; | ||
| 11 | die <<"..." unless $@; | ||
| 12 | |||
| 13 | It looks like you have YamlTime::Extension::Git installed. | ||
| 14 | You need to remove it from your system. It has been replaced | ||
| 15 | by YamlTime::Git. | ||
| 16 | |||
| 17 | Please remove $INC{'YamlTime/Extension/Git.pm'} | ||
| 18 | |||
| 19 | ... | ||
| 20 | } | ||
| 21 | |||
| 22 | package YamlTime::Command::commit; | ||
| 23 | use Mouse; | ||
| 24 | YamlTime->import( -command ); | ||
| 25 | extends qw[YamlTime::Command]; | ||
| 26 | use constant abstract => "'git commit' your YamlTime changes"; | ||
| 27 | |||
| 28 | sub execute { | ||
| 29 | my ($self, $opt, $args) = @_; | ||
| 30 | my @args = @$args || ('-m', 'YamlTime!'); | ||
| 31 | $self->run('git add .') and | ||
| 32 | $self->run("git commit @args"); | ||
| 33 | } | ||
| 34 | |||
| 35 | package YamlTime::Command::push; | ||
| 36 | use Mouse; | ||
| 37 | YamlTime->import( -command ); | ||
| 38 | extends qw[YamlTime::Command]; | ||
| 39 | use constant abstract => "'git push' your YamlTime repository"; | ||
| 40 | |||
| 41 | sub execute { | ||
| 42 | my ($self, $opt, $args) = @_; | ||
| 43 | my @args = @$args || qw(origin master); | ||
| 44 | $self->run("git push @args"); | ||
| 45 | } | ||
| 46 | |||
| 47 | 1; | ||