projects
/
scpubgit/Tak.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
move exec code to Client.pm, add get_homedir example to Takfile
[scpubgit/Tak.git]
/
Takfile
1
package Tak::MyScript;
2
3
use Tak::Takfile;
4
use Tak::ObjectClient;
5
6
sub each_get_homedir {
7
my ($self, $remote) = @_;
8
my $oc = Tak::ObjectClient->new(remote => $remote);
9
my $home = $oc->new_object('Path::Class::Dir')->absolute->stringify;
10
$self->stdout->print(
11
$remote->host.': '.$home."\n"
12
);
13
}
14
15
1;