Skip to content

Commit

Permalink
Use MouseX::App::Cmd instead of MooseX::App::Cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jun 28, 2011
1 parent b86e8a3 commit 3628956
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/App/Git/HomeSync.pm
@@ -1,10 +1,10 @@
package App::Git::HomeSync;
use Moose;
use Mouse;
use namespace::autoclean;

# ABSTRACT: Sync your home directories via Git

extends qw(MooseX::App::Cmd);
extends qw(MouseX::App::Cmd);

__PACKAGE__->meta->make_immutable;

Expand Down
12 changes: 6 additions & 6 deletions lib/App/Git/HomeSync/Command.pm
@@ -1,12 +1,12 @@
package App::Git::HomeSync::Command;
use Moose;
use Mouse;
use namespace::autoclean;

extends qw(MooseX::App::Cmd::Command);
extends qw(MouseX::App::Cmd::Command);

use App::Git::HomeSync::Util;

use MooseX::Types::Path::Class;
use MouseX::Types::Path::Class;
use Sys::Hostname qw(hostname);
use DateTime;
use Cwd qw(getcwd);
Expand All @@ -16,7 +16,7 @@ use File::Copy qw(move);
has 'debug' => (
isa => 'Bool',
is => 'rw',
traits => ['MooseX::Getopt::Meta::Attribute::Trait'],
traits => ['MouseX::Getopt::Meta::Attribute::Trait'],
cmd_aliases => 'd',
# XXX Use --nodebug to disable output
default => 1,
Expand All @@ -26,7 +26,7 @@ has 'debug' => (
has 'dry-run' => (
isa => 'Bool',
is => 'rw',
traits => ['MooseX::Getopt::Meta::Attribute::Trait'],
traits => ['MouseX::Getopt::Meta::Attribute::Trait'],
documentation => 'Only print the commands',
);

Expand Down Expand Up @@ -266,7 +266,7 @@ sub _move_aside_conflicting_files {
if ( @awaiting_remote_files and not $self->{'dry-run'} ) {
foreach my $file (@awaiting_remote_files) {
if ( -f $file || -d $file ) {
# TODO Try MooseX::Types::DateTime
# TODO Try MouseX::Types::DateTime
my $dt = DateTime->today->set_time_zone('local');
my $date = $dt->strftime('%Y%m%d');

Expand Down
2 changes: 1 addition & 1 deletion lib/App/Git/HomeSync/Command/config.pm
@@ -1,5 +1,5 @@
package App::Git::HomeSync::Command::config;
use Moose;
use Mouse;
use namespace::autoclean;

extends qw(App::Git::HomeSync::Command);
Expand Down
8 changes: 4 additions & 4 deletions lib/App/Git/HomeSync/Command/init.pm
@@ -1,5 +1,5 @@
package App::Git::HomeSync::Command::init;
use Moose;
use Mouse;
use namespace::autoclean;

extends qw(App::Git::HomeSync::Command);
Expand All @@ -20,11 +20,11 @@ has 'central-repo' => (
isa => 'Str',
is => 'rw',
required => 0,
traits => ['MooseX::Getopt::Meta::Attribute::Trait'],
traits => ['MouseX::Getopt::Meta::Attribute::Trait'],
documentation => 'The full path to the central repository to sync to',
);

# TODO Convert to MooseX::Types::Path::Class
# TODO Convert to MouseX::Types::Path::Class
has '_central_repo' => (
isa => 'Str',
is => 'rw',
Expand All @@ -50,7 +50,7 @@ around '_central_repo' => sub {
return $self->$orig(@_);
};

# TODO Convert to MooseX::Types::Path::Class
# TODO Convert to MouseX::Types::Path::Class
has '_repo_dir' => (
isa => 'Str',
is => 'rw',
Expand Down

0 comments on commit 3628956

Please sign in to comment.