X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=.build%2FspEUsgyear%2Flib%2FOyster%2FDeploy%2FGit.pm;fp=.build%2FspEUsgyear%2Flib%2FOyster%2FDeploy%2FGit.pm;h=0000000000000000000000000000000000000000;hb=80a3d4fd17916276f2185756d24e9858ebf6a98d;hp=f64cb82572c4f2ba6c60b3b61d188b6ddf106d43;hpb=6b832bd6eabfef633627b14a5252110b8653e310;p=p5sagit%2FOyster.git diff --git a/.build/spEUsgyear/lib/Oyster/Deploy/Git.pm b/.build/spEUsgyear/lib/Oyster/Deploy/Git.pm deleted file mode 100644 index f64cb82..0000000 --- a/.build/spEUsgyear/lib/Oyster/Deploy/Git.pm +++ /dev/null @@ -1,34 +0,0 @@ -package Oyster::Deploy::Git; - -use Moose; -use Git::Wrapper; -use Error::Simple; - -use Data::Dumper; -use File::Copy; -use File::ShareDir ':ALL'; - -sub create { - my $self = shift; - my $location = shift; - - if( -f $location || -d $location ) { - Error::Simple->throw("$location already exists"); - } - - mkdir($location); - my $git = Git::Wrapper->new($location); - - - copy(dist_file( 'Oyster', './share/deploy/git/post-receive'), ($git->dir . '.git/hooks/')) - or Error::Simple->throw('Creating post commit hooks failed.'); - copy(dist_file( 'Oyster', './share/deploy/git/post-update'), ($git->dir . '.git/hooks/')) - or Error::Simple->throw('Creating post commit hooks failed.'); - - chmod(0x755, ('./bin/git/hooks/post-receive', './bin/git/hooks/post-update')); - - return 1; -} - - -1;