[openlmi-tools/f19] fix unify LMIShell naming

Peter Hatina phatina at fedoraproject.org
Tue Dec 3 10:58:08 UTC 2013


commit 543805ba086604296aecf5c9b0e769bd40c4f088
Author: Peter Hatina <phatina at redhat.com>
Date:   Tue Dec 3 11:47:21 2013 +0100

    fix unify LMIShell naming

 openlmi-tools-06-fix-unify-lmishell-naming.patch |   81 ++++++++++++++++++++++
 openlmi-tools.spec                               |    7 ++-
 2 files changed, 87 insertions(+), 1 deletions(-)
---
diff --git a/openlmi-tools-06-fix-unify-lmishell-naming.patch b/openlmi-tools-06-fix-unify-lmishell-naming.patch
new file mode 100644
index 0000000..d991069
--- /dev/null
+++ b/openlmi-tools-06-fix-unify-lmishell-naming.patch
@@ -0,0 +1,81 @@
+diff --git a/cli/completion/README_zsh.md b/cli/completion/README_zsh.md
+index 3c66c06..6385ed0 100644
+--- a/cli/completion/README_zsh.md
++++ b/cli/completion/README_zsh.md
+@@ -1,4 +1,4 @@
+-# OpenLMI Shell Completion for Zsh
++# LMIShell Completion for Zsh
+ Supplied completion function defined in `_lmishell` supports completion of all
+ command line arguments of `lmishell`. The completion also works for script
+ filename completion with `.lmi` or `.py` extension.
+diff --git a/cli/completion/_lmishell b/cli/completion/_lmishell
+index f6e7c33..d3843b3 100644
+--- a/cli/completion/_lmishell
++++ b/cli/completion/_lmishell
+@@ -18,7 +18,7 @@
+ #
+ # Authors: Peter Hatina <phatina at redhat.com>
+ #
+-# Zsh completion for OpenLMI Shell
++# Zsh completion for LMIShell
+ 
+ _lmishell() {
+     local curcontext="$curcontext" state line
+@@ -26,7 +26,7 @@ _lmishell() {
+ 
+     _arguments -C \
+         '(- 1 *)'{-h,--help}'[print help message and exit]' \
+-        '(- 1 *):OpenLMI Shell Script:_files -g \*.\(lmi\|py\)' \
++        '(- 1 *):LMIShell Script:_files -g \*.\(lmi\|py\)' \
+         '(-i --interact)'{-i,--interact}'[inspect interactively after running a script]' \
+         '(-v --verbose)'{-v,--verbose}'[print log messages to stderr]' \
+         '(-m --more-verbose)'{-m,--more-verbose}'[print all log messages to stderr]' \
+diff --git a/cli/lmi/shell/LMIShellOptions.py b/cli/lmi/shell/LMIShellOptions.py
+index acabf2c..8695fec 100644
+--- a/cli/lmi/shell/LMIShellOptions.py
++++ b/cli/lmi/shell/LMIShellOptions.py
+@@ -29,7 +29,7 @@ class LMIShellOptionsHelpWithVersionFormatter(argparse.HelpFormatter):
+         LMIShell version to the usage message.
+         """
+         return argparse.HelpFormatter._format_usage(self, usage, actions, groups,
+-            "OpenLMI Shell v%s\n\n" % __version__)
++            "LMIShell v%s\n\n" % __version__)
+ 
+ class LMIShellOptionParser(argparse.ArgumentParser):
+     """
+diff --git a/doc/src/man_page.rst b/doc/src/man_page.rst
+index bf1c63f..8e0ec60 100644
+--- a/doc/src/man_page.rst
++++ b/doc/src/man_page.rst
+@@ -7,8 +7,8 @@ Description
+ LMIShell provides a (non)interactive or interactive way how to access CIM
+ objects provided by OpenPegasus or sblim-sfcb CIMOM.
+ 
+-OpenLMI Shell is based on a python interpreter and added logic, therefore what
+-is possible to do in pure python, it is possible in LMIShell. There are classes
++LMIShell is based on a python interpreter and added logic, therefore what is
++possible to do in pure python, it is possible in LMIShell. There are classes
+ added to manipulate with CIM classes, instance names, instances, etc.
+ Additional classes are added to fulfill wrapper pattern and expose only those
+ methods, which are necessary for the purpose of a shell.
+diff --git a/doc/src/structure.rst b/doc/src/structure.rst
+index 07ce4ca..cacd234 100644
+--- a/doc/src/structure.rst
++++ b/doc/src/structure.rst
+@@ -1,10 +1,10 @@
+ Structure
+ =========
+-OpenLMI Shell is based on a python interpreter and added logic, therefore what
+-you can do in pure python, it is possible in OpenLMI Shell. There are classes
+-added to manipulate with CIM classes, instance names, instances, etc.
+-Additional classes are added to fulfill wrapper pattern and expose only those
+-methods, which are necessary for the purpose of a shell. Following scheme
+-depicts a structure of the OpenLMI Shell.
++LMIShell is based on a python interpreter and added logic, therefore what you
++can do in pure python, it is possible in LMIShell. There are classes added to
++manipulate with CIM classes, instance names, instances, etc.  Additional
++classes are added to fulfill wrapper pattern and expose only those methods,
++which are necessary for the purpose of a shell. Following scheme depicts a
++structure of the LMIShell.
+ 
+ .. image:: _static/lmi-scheme.png
diff --git a/openlmi-tools.spec b/openlmi-tools.spec
index 777cfdb..a18d497 100644
--- a/openlmi-tools.spec
+++ b/openlmi-tools.spec
@@ -1,6 +1,6 @@
 Name:           openlmi-tools
 Version:        0.9
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Set of CLI tools for Openlmi providers
 
 License:        GPLv2+
@@ -11,6 +11,7 @@ Patch1:         openlmi-tools-02-fix-instance-deletion.patch
 Patch2:         openlmi-tools-03-fix-instance-comparision.patch
 Patch3:         openlmi-tools-04-fix-passing-method-params.patch
 Patch4:         openlmi-tools-05-fix-log-messages-connect.patch
+Patch5:         openlmi-tools-06-fix-unify-lmishell-naming.patch
 BuildArch:      noarch
 
 BuildRequires:  automake
@@ -35,6 +36,7 @@ Obsoletes:      cura-tools < 0.1-4
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 pushd cli
@@ -78,6 +80,9 @@ install -m 644 cli/completion/_lmishell $zsh_comp_dir
 %{python_sitelib}/openlmi_tools-*
 
 %changelog
+* Tue Dec  3 2013 Peter Hatina <phatina at redhat.com> - 0.9-7
+- unify LMIShell naming
+
 * Mon Dec  2 2013 Peter Hatina <phatina at redhat.com> - 0.9-6
 - fix missing log messages in connect()
 


More information about the scm-commits mailing list