Initial creation of local repo
[p5sagit/Oyster.git] / lib / Oyster / Deploy / Git.pm
CommitLineData
40056462 1package Oyster::Deploy::Git;
2
3use Moose;
4use Git::Wrapper;
5use Error::Simple;
6
7use Data::Dumper;
8
9sub create {
10 my $self = shift;
11 my $location = shift;
12
13 if( -f $location || -d $location ) {
14 Error::Simple->throw("$location already exists");
15 }
16
17 mkdir($location);
18 my $git = Git::Wrapper->new($location);
19
20 return 1;
21}
22
23
241;