From 562999c6334d10db668ac9c21dc1d1274943b92a Mon Sep 17 00:00:00 2001 From: Uggla Date: Fri, 19 Feb 2016 18:33:56 +0100 Subject: [PATCH] Rename client from redfish-client.py to redfish-client --- doc/source/installation.rst | 10 +++++----- doc/source/usage.rst | 2 +- pbconf/python-redfish.pb | 2 +- pbconf/python-redfish/rpm/python-redfish.spec | 1 - .../{redfish-client.py => redfish-client} | 16 ++++++++-------- setup.cfg | 2 +- 6 files changed, 16 insertions(+), 17 deletions(-) rename redfish-client/{redfish-client.py => redfish-client} (97%) diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 27dbfd4..2418b56 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -104,15 +104,15 @@ Host configuration file configuration #. Verify redfish-client is working correclty:: - redfish-client.py -h + redfish-client -h #. Create a default entry to use the mockup:: - redfish-client.py config add default default http://localhost:8000/redfish/v1 + redfish-client config add default default http://localhost:8000/redfish/v1 #. Verify the entry is correctly registered:: - redfish-client.py config showall + redfish-client config showall =================== Mockup installation @@ -146,11 +146,11 @@ Testing against the mockup #. Follow `Host configuration file configuration`_ and `Mockup installation`_ section. #. Run the following command:: - redfish-client.py manager getinfo + redfish-client manager getinfo The result should be like this:: - (pypi)[uggla@ugglalaptop dmtf]$ redfish-client.py manager getinfo + (pypi)[uggla@ugglalaptop dmtf]$ redfish-client manager getinfo Gathering data from manager, please wait... Redfish API version : 1.00 diff --git a/doc/source/usage.rst b/doc/source/usage.rst index 1c0e083..9bc79e3 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -20,7 +20,7 @@ redfish-client usage The client usage can be display using:: - redfish-client.py -h + redfish-client -h This is also available at http://pythonhosted.org/python-redfish/redfish-client.html . diff --git a/pbconf/python-redfish.pb b/pbconf/python-redfish.pb index 6a8d804..e08000c 100644 --- a/pbconf/python-redfish.pb +++ b/pbconf/python-redfish.pb @@ -130,7 +130,7 @@ defpkgdir python-redfish = . # List of files per pkg on which to apply filters # Files are mentioned relatively to pbroot/defpkgdir -filteredfiles python-redfish = redfish-client/redfish-client.py,doc/source/conf.py +filteredfiles python-redfish = redfish-client/redfish-client,doc/source/conf.py #supfiles python-redfish = python-redfish.init # For perl modules, names are different depending on distro diff --git a/pbconf/python-redfish/rpm/python-redfish.spec b/pbconf/python-redfish/rpm/python-redfish.spec index 5ae762b..1138605 100644 --- a/pbconf/python-redfish/rpm/python-redfish.spec +++ b/pbconf/python-redfish/rpm/python-redfish.spec @@ -33,7 +33,6 @@ make latexpdf %{__python} setup.py install -O1 --skip-build --root %{buildroot} # This will go in a separate script later on to share with other distros %{__mkdir} -p %{buildroot}/%{_bindir} -install -m 755 redfish-client/redfish-client.py %{buildroot}/%{_bindir}/redfish-client rm -fr %{buildroot}/%{python_sitelib}/redfish/old for i in 1; do diff --git a/redfish-client/redfish-client.py b/redfish-client/redfish-client similarity index 97% rename from redfish-client/redfish-client.py rename to redfish-client/redfish-client index d7a509e..377758f 100755 --- a/redfish-client/redfish-client.py +++ b/redfish-client/redfish-client @@ -6,14 +6,14 @@ redfish-client :: Usage: - redfish-client.py [options] config add [] [] - redfish-client.py [options] config del - redfish-client.py [options] config modify (manager_name | url | login | password) - redfish-client.py [options] config show - redfish-client.py [options] config showall - redfish-client.py [options] manager getinfo [] - redfish-client.py (-h | --help) - redfish-client.py --version + redfish-client [options] config add [] [] + redfish-client [options] config del + redfish-client [options] config modify (manager_name | url | login | password) + redfish-client [options] config show + redfish-client [options] config showall + redfish-client [options] manager getinfo [] + redfish-client (-h | --help) + redfish-client --version Options: diff --git a/setup.cfg b/setup.cfg index 162a4f3..08fbfd6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,7 +25,7 @@ packages = redfish scripts = - redfish-client/redfish-client.py + redfish-client/redfish-client data_files = usr/share/redfish-client/templates = redfish-client/templates/*