Script rhncfg_manager_py
[hide private]
[frames] | no frames]

Source Code for Script script-rhncfg_manager_py

 1  #!/usr/bin/python 
 2  # 
 3  # Copyright (c) 2008--2013 Red Hat, Inc. 
 4  # 
 5  # This software is licensed to you under the GNU General Public License, 
 6  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
 7  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
 8  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
 9  # along with this software; if not, see 
10  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
11  # 
12  # Red Hat trademarks are not licensed under GPLv2. No permission is 
13  # granted to use or replicate Red Hat trademarks that are incorporated 
14  # in this software or its documentation. 
15  # 
16   
17  import sys 
18   
19  from config_common.rhn_main import BaseMain 
20   
21 -class Main(BaseMain):
22 modes = [ 23 'add', 24 'create-channel', 25 'diff', 26 'diff-revisions', 27 'download-channel', 28 'get', 29 'list', 30 'list-channels', 31 'remove', 32 'remove-channel', 33 'revisions', 34 'update', 35 'upload-channel', 36 ] 37 plugins_dir = 'config_management' 38 config_section = 'rhncfg-manager' 39 mode_prefix = 'rhncfg'
40 41 if __name__ == '__main__': 42 try: 43 sys.exit(Main().main() or 0) 44 except KeyboardInterrupt: 45 sys.stderr.write("user interrupted\n") 46 sys.exit(0) 47