def execute(self, server, argv): install_path = deploy_bash_completion() sys.stdout.write( "Installed bash completion script in {}\n".format(install_path)) return OK
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)
def test_no_deploy_dirs(stderr, stdout): path = '/THIS/IS/A/NON/EXISTING/PATH' ret = acmd.deploy_bash_completion(paths=[path]) eq_(None, ret)
def execute(self, server, argv): install_path = deploy_bash_completion() sys.stdout.write("Installed bash completion script in {}\n".format(install_path)) return OK