diff options
author | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2013-07-22 14:27:09 -0700 |
---|---|---|
committer | Tatsuhiko Miyagawa <miyagawa@bulknews.net> | 2013-07-22 14:27:09 -0700 |
commit | fe439cd9d2c3a6a147be092f66e3a70eb2f6948c (patch) | |
tree | 1ef30e72c580e009bb526cfdf879e7f2842ecd01 /xt/CLI.pm | |
parent | 277c543e4052405a4c87d847d2e15ce13a0359c6 (diff) | |
download | carton-fe439cd9d2c3a6a147be092f66e3a70eb2f6948c.tar.gz |
Builder now takes install target off of detected cpanfile location
Diffstat (limited to 'xt/CLI.pm')
-rw-r--r-- | xt/CLI.pm | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -31,6 +31,12 @@ sub write_cpanfile { $self->dir->child('cpanfile')->spew(@args); } +sub run_in_dir { + my($self, $dir, @args) = @_; + local $self->{dir} = $self->dir->child($dir); + $self->run(@args); +} + sub run { my($self, @args) = @_; |