salt/scripts/salt-cp

21 lines
356 B
Plaintext
Raw Normal View History

2011-04-05 02:14:58 +00:00
#!/usr/bin/env python2
'''
Publish commands to the salt system from the command line on the master.
'''
2011-04-05 02:14:58 +00:00
import salt.cli
2011-04-05 02:14:58 +00:00
def main():
'''
The main function
'''
cp_ = salt.cli.SaltCP()
cp_.run()
2011-04-05 02:14:58 +00:00
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
raise SystemExit('\nExiting gracefully on Ctrl-c')