Commit graph

24 commits

Author SHA1 Message Date
Nico Schottelius
612fb4cb7b fix type and add fixme
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:27:38 +02:00
Nico Schottelius
e05c5e699c always call umask 077 before doing stuff on the remote side
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:24:58 +02:00
Nico Schottelius
5f2f8e2bd2 no == true needed
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-03-09 23:14:15 +01:00
Matt Coddington
3e6b866cae support rsync for remote copy 2012-03-09 15:43:49 -05:00
Nico Schottelius
72fb77f135 extend not append
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:02:21 +01:00
Nico Schottelius
f031a40746 rebuild the command string
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:01:03 +01:00
Nico Schottelius
ab48a72ce1 return results from run()
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 16:25:18 +01:00
Nico Schottelius
a4882e7e30 remove useless script printing and reuse run() method
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 16:17:49 +01:00
Nico Schottelius
53c61d42ad remove useless if env:
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:12:49 +01:00
Nico Schottelius
1dcc420a38 no, no common base class for local/remote
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:09:32 +01:00
Steven Armstrong
654e19f28b mark _run_command as private
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-18 14:40:25 +01:00
Steven Armstrong
c29c419f61 also export __target_host to check_call
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:50:19 +02:00
Steven Armstrong
17e7642615 implement: export __target_host in remote exec
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:17:19 +02:00
Nico Schottelius
7bb81e2f18 Whitespace does not not weigh anything - remove - sed -i 's/ *$//g' *py */*py
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-18 13:32:36 +02:00
Nico Schottelius
67b1094712 flatten error message in remotescripterror as well
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:25:57 +02:00
Nico Schottelius
ad1e51cb2e catch unicodedecodeerror
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-15 01:11:54 +02:00
Steven Armstrong
b5b7d8e727 add missing return_output=True argument when fetching script content
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:52:05 +02:00
Steven Armstrong
bbef928a6d --copy paste error
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 16:04:55 +02:00
Steven Armstrong
829b0b2d0b implement: dont return command output by default
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 15:52:16 +02:00
Steven Armstrong
d47039e91e prepend variables to remote commands
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 23:49:42 +02:00
Steven Armstrong
0a1418f4d3 forward env
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 23:01:41 +02:00
Steven Armstrong
a254e1f31e return output of command execution as string instead of bytestring
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 17:12:22 +02:00
Steven Armstrong
84e044407e +FIXME
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 15:16:33 +02:00
Steven Armstrong
7da3a3c305 remote code execution and tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-12 14:30:10 +02:00