예제 #1
0
 def execute(self, server, argv):
     install_path = deploy_bash_completion()
     sys.stdout.write(
         "Installed bash completion script in {}\n".format(install_path))
     return OK
예제 #2
0
def test_deploy_bash_completion(stderr, stdout):
    path = tempfile.mkdtemp(suffix='.acmd.bash_completion.d')
    paths = [path]
    ret = acmd.deploy_bash_completion(paths=paths)
    eq_(path, ret)
예제 #3
0
def test_no_deploy_dirs(stderr, stdout):
    path = '/THIS/IS/A/NON/EXISTING/PATH'
    ret = acmd.deploy_bash_completion(paths=[path])
    eq_(None, ret)
예제 #4
0
 def execute(self, server, argv):
     install_path = deploy_bash_completion()
     sys.stdout.write("Installed bash completion script in {}\n".format(install_path))
     return OK