Skip to content

Commit

Permalink
reloadwwwc command
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Jul 7, 2020
1 parent c9e96d3 commit f3dac74
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/lib/ce.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,16 @@ def conan_exec_cmd(args):
exec_remote_to_stdout(instance, args['remote_cmd'])


def conan_reload_cmd(_):
def conan_restart_cmd(_):
instance = ConanInstance.instance()
exec_remote(instance, ["sudo", "service", "ce-conan", "restart"])


def conan_reloadwww_cmd(_):
instance = ConanInstance.instance()
exec_remote(instance, ["sudo", "git", "-C", "/home/ubuntu/ceconan/conanproxy", "pull"])


def builder_cmd(args):
dispatch_global('builder', args)

Expand Down Expand Up @@ -809,7 +814,8 @@ def main():
conan_parser = subparsers.add_parser('conan')
conan_sub = add_required_sub_parsers(conan_parser, 'conan_sub')
conan_sub.required = True
conan_sub.add_parser('reload')
conan_sub.add_parser('restart')
conan_sub.add_parser('reloadwww')
conan_sub.add_parser('login')
conan_exec = conan_sub.add_parser('exec')
conan_exec.add_argument('remote_cmd', nargs='+', help='command to run on conan node')
Expand Down

0 comments on commit f3dac74

Please sign in to comment.