1
# Copyright 2012 Canonical Ltd.
3
# This program is free software: you can redistribute it and/or modify it
4
# under the terms of the GNU General Public License version 3, as published
5
# by the Free Software Foundation.
7
# This program is distributed in the hope that it will be useful, but
8
# WITHOUT ANY WARRANTY; without even the implied warranties of
9
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
10
# PURPOSE. See the GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License along
13
# with this program. If not, see <http://www.gnu.org/licenses/>.
15
"""A fabric proxy to u1sdtool on a given host/user."""
18
from fabric import api as fab
21
def u1sdtool_connect():
22
return fab.run('u1sdtool --connect')
25
def u1sdtool_disconnect():
26
return fab.run('u1sdtool --disconnect')
29
def u1sdtool_status():
30
return fab.run('u1sdtool --status')