Commit 8f1d0ba1 authored by Corentin Hermet's avatar Corentin Hermet
Browse files

fix

parent 6ad6ba22
......@@ -14,63 +14,11 @@
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
<file leaf-file-name="__init__.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="setup.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/setup.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="399">
<caret line="19" column="0" lean-forward="false" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="setup.cfg" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/setup.cfg">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="63">
<caret line="3" column="11" lean-forward="false" selection-start-line="3" selection-start-column="11" selection-end-line="3" selection-end-column="11" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="PKG-INFO" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool.egg-info/PKG-INFO">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="15" column="28" lean-forward="false" selection-start-line="15" selection-start-column="28" selection-end-line="15" selection-end-column="28" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="pythonjenkins.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/pythonjenkins.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="13" column="25" lean-forward="false" selection-start-line="12" selection-start-column="2" selection-end-line="13" selection-end-column="25" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Jenkins_CLI_tool.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Jenkins_CLI_tool.py">
<entry file="file://$PROJECT_DIR$/click_training/Jenkins_CLI_tool.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="147">
<caret line="9" column="22" lean-forward="false" selection-start-line="9" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
<state relative-caret-position="265">
<caret line="27" column="66" lean-forward="true" selection-start-line="27" selection-start-column="66" selection-end-line="27" selection-end-column="66" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
......@@ -78,14 +26,12 @@
</provider>
</entry>
</file>
<file leaf-file-name="click2.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/click2.py">
<file leaf-file-name="__init__.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/click_training/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="2" selection-end-column="12" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
......@@ -93,8 +39,8 @@
<file leaf-file-name="startjob.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/startjob.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="945">
<caret line="48" column="23" lean-forward="false" selection-start-line="48" selection-start-column="23" selection-end-line="48" selection-end-column="23" />
<state relative-caret-position="602">
<caret line="99" column="20" lean-forward="true" selection-start-line="99" selection-start-column="20" selection-end-line="99" selection-end-column="20" />
<folding>
<element signature="e#0#35#0" expanded="true" />
</folding>
......@@ -102,21 +48,11 @@
</provider>
</entry>
</file>
<file leaf-file-name="__init__.py" pinned="false" current-in-tab="false">
<entry file="file://C:/Program Files/Python_2.7/Lib/site-packages/jenkins/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="21714">
<caret line="1050" column="0" lean-forward="false" selection-start-line="1050" selection-start-column="0" selection-end-line="1050" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="test.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/test.py">
<file leaf-file-name="README.rst" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/README.rst">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="15" column="0" lean-forward="false" selection-start-line="15" selection-start-column="0" selection-end-line="16" selection-end-column="9" />
<state relative-caret-position="210">
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
<folding />
</state>
</provider>
......@@ -148,9 +84,10 @@
<option value="$PROJECT_DIR$/jenkins_cli_tool/Jenkins_CLI_tool.py" />
<option value="$PROJECT_DIR$/jenkins_cli_tool/test.py" />
<option value="$PROJECT_DIR$/jenkins_cli_tool/startjob.py" />
<option value="$PROJECT_DIR$/setup.py" />
<option value="$PROJECT_DIR$/setup.cfg" />
<option value="$PROJECT_DIR$/jenkins_cli_tool.egg-info/PKG-INFO" />
<option value="$PROJECT_DIR$/setup.py" />
<option value="$PROJECT_DIR$/README.rst" />
</list>
</option>
</component>
......@@ -185,12 +122,17 @@
<path>
<item name="jenkins_cli_tool" type="b2602c69:ProjectViewProjectNode" />
<item name="jenkins_cli_tool" type="462c0819:PsiDirectoryNode" />
<item name="click_training" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="jenkins_cli_tool" type="b2602c69:ProjectViewProjectNode" />
<item name="jenkins_cli_tool" type="462c0819:PsiDirectoryNode" />
<item name="dist" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="jenkins_cli_tool" type="b2602c69:ProjectViewProjectNode" />
<item name="jenkins_cli_tool" type="462c0819:PsiDirectoryNode" />
<item name="jenkins_cli_tool.egg-info" type="462c0819:PsiDirectoryNode" />
<item name="jenkins_cli_tool" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
......@@ -204,6 +146,12 @@
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="settings.editor.selected.configurable" value="vcs.Subversion" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="C:\Users\chermet\Documents\Axway\3-RD-Dublin\Jenkins-CLI-Project\jenkins_cli_tool\click_training" />
<recent name="C:\Users\chermet\Documents\Axway\3-RD-Dublin\Jenkins-CLI-Project\jenkins_cli_tool" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
......@@ -229,7 +177,7 @@
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="jenkins_cli_tool" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/jenkins_cli_tool/Click.py" />
<option name="SCRIPT_NAME" value="C:\Users\chermet\Documents\Axway\3-RD-Dublin\Jenkins-CLI-Project\jenkins_cli_tool\click_training\Click.py" />
<option name="PARAMETERS" value="name lol" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
......@@ -246,7 +194,7 @@
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="jenkins_cli_tool" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/jenkins_cli_tool/Jenkins_CLI_tool.py" />
<option name="SCRIPT_NAME" value="C:\Users\chermet\Documents\Axway\3-RD-Dublin\Jenkins-CLI-Project\jenkins_cli_tool\click_training\Jenkins_CLI_tool.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
......@@ -340,14 +288,14 @@
<frame x="-9" y="-9" width="1938" height="1048" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.13333334" sideWeight="0.49513212" order="0" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.1453125" sideWeight="0.49513212" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32894737" sideWeight="0.50416666" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32894737" sideWeight="0.496875" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32894737" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.29714912" sideWeight="0.49583334" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.29714912" sideWeight="0.49583334" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32894737" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32894737" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.1953125" sideWeight="0.50486785" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3991228" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Data View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
......@@ -386,7 +334,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Click.py">
<entry file="file://$PROJECT_DIR$/click_training/Click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="11" column="12" lean-forward="true" selection-start-line="11" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
......@@ -398,13 +346,11 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="13" column="25" lean-forward="true" selection-start-line="12" selection-start-column="2" selection-end-line="13" selection-end-column="25" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Jenkins_CLI_tool.py">
<entry file="file://$PROJECT_DIR$/click_training/Jenkins_CLI_tool.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="147">
<caret line="9" column="22" lean-forward="false" selection-start-line="9" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
......@@ -418,9 +364,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="2" selection-end-column="12" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -458,7 +402,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Click.py">
<entry file="file://$PROJECT_DIR$/click_training/Click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="294">
<caret line="14" column="0" lean-forward="true" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
......@@ -478,9 +422,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="11" column="29" lean-forward="false" selection-start-line="11" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<folding />
</state>
</provider>
</entry>
......@@ -488,13 +430,11 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="63">
<caret line="5" column="7" lean-forward="false" selection-start-line="5" selection-start-column="4" selection-end-line="5" selection-end-column="7" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Jenkins_CLI_tool.py">
<entry file="file://$PROJECT_DIR$/click_training/Jenkins_CLI_tool.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="336">
<caret line="18" column="24" lean-forward="true" selection-start-line="18" selection-start-column="24" selection-end-line="18" selection-end-column="24" />
......@@ -520,7 +460,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Click.py">
<entry file="file://$PROJECT_DIR$/click_training/Click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="12" column="11" lean-forward="true" selection-start-line="12" selection-start-column="11" selection-end-line="12" selection-end-column="11" />
......@@ -536,7 +476,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Click.py">
<entry file="file://$PROJECT_DIR$/click_training/Click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="11" column="12" lean-forward="false" selection-start-line="11" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
......@@ -544,63 +484,71 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/click2.py">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="2" selection-end-column="12" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/Jenkins_CLI_tool.py">
<entry file="file://$PROJECT_DIR$/setup.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="147">
<caret line="9" column="22" lean-forward="false" selection-start-line="9" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<state relative-caret-position="210">
<caret line="10" column="24" lean-forward="true" selection-start-line="10" selection-start-column="24" selection-end-line="10" selection-end-column="24" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/setup.cfg">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="63">
<caret line="3" column="11" lean-forward="false" selection-start-line="3" selection-start-column="11" selection-end-line="3" selection-end-column="11" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool.egg-info/PKG-INFO">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="15" column="28" lean-forward="false" selection-start-line="15" selection-start-column="28" selection-end-line="15" selection-end-column="28" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/pythonjenkins.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<state relative-caret-position="273">
<caret line="13" column="25" lean-forward="false" selection-start-line="12" selection-start-column="2" selection-end-line="13" selection-end-column="25" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/test.py">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/click2.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="15" column="0" lean-forward="false" selection-start-line="15" selection-start-column="0" selection-end-line="16" selection-end-column="9" />
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="2" selection-end-column="12" />
<folding />
</state>
</provider>
</entry>
<entry file="file://C:/Program Files/Python_2.7/Lib/site-packages/jenkins/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="21714">
<state relative-caret-position="21">
<caret line="1050" column="0" lean-forward="false" selection-start-line="1050" selection-start-column="0" selection-end-line="1050" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/startjob.py">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/test.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="945">
<caret line="48" column="23" lean-forward="false" selection-start-line="48" selection-start-column="23" selection-end-line="48" selection-end-column="23" />
<folding>
<element signature="e#0#35#0" expanded="true" />
</folding>
<state relative-caret-position="315">
<caret line="15" column="0" lean-forward="false" selection-start-line="15" selection-start-column="0" selection-end-line="16" selection-end-column="9" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/__init__.py">
<entry file="file://$PROJECT_DIR$/click_training/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -608,26 +556,30 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/setup.py">
<entry file="file://$PROJECT_DIR$/click_training/Jenkins_CLI_tool.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="399">
<caret line="19" column="0" lean-forward="false" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" />
<folding />
<state relative-caret-position="265">
<caret line="27" column="66" lean-forward="true" selection-start-line="27" selection-start-column="66" selection-end-line="27" selection-end-column="66" />
<folding>
<element signature="e#0#14#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/setup.cfg">
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool/startjob.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="63">
<caret line="3" column="11" lean-forward="false" selection-start-line="3" selection-start-column="11" selection-end-line="3" selection-end-column="11" />
<folding />
<state relative-caret-position="602">
<caret line="99" column="20" lean-forward="true" selection-start-line="99" selection-start-column="20" selection-end-line="99" selection-end-column="20" />
<folding>
<element signature="e#0#35#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/jenkins_cli_tool.egg-info/PKG-INFO">
<entry file="file://$PROJECT_DIR$/README.rst">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="15" column="28" lean-forward="false" selection-start-line="15" selection-start-column="28" selection-end-line="15" selection-end-column="28" />
<state relative-caret-position="210">
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
<folding />
</state>
</provider>
......
jenkins_cli_tool
================
.. image:: https://img.shields.io/pypi/v/jenkins_cli_tool.svg
:target: https://pypi.python.org/pypi/jenkins_cli_tool
:alt: Latest PyPI version
.. image:: False.png
:target: False
:alt: Latest Travis CI build status
Jenkins CLI Tool
Usage
......
import click
class Car:
def __init__(self):
self.speed = 0
self.odometer = 0
self.time = 0
def say_state(self):
print("I'm going {} kph!".format(self.speed))
def accelerate(self):
self.speed += 5
def brake(self):
self.speed -= 5
def step(self):
self.odometer += self.speed
self.time += 1
def average_speed(self):
return self.odometer / self.time
if __name__ == '__main__':
my_car = Car()
print("I'm a car!")
while True:
action = raw_input("What should I do? [A]ccelerate, [B]rake, "
"show [O]dometer, or show average [S]peed?").upper()
if action not in "ABOS" or len(action) != 1:
print("I don't know how to do that")
continue
if action == 'A':
my_car.accelerate()
elif action == 'B':
my_car.brake()
elif action == 'O':
print("The car has driven {} kilometers".format(my_car.odometer))
elif action == 'S':
print("The car's average speed was {} kph".format(my_car.average_speed()))
my_car.step()
my_car.say_state()
\ No newline at end of file
import jenkins
import pprint
import click
@click.group()
def cli():
global server
server = jenkins.Jenkins('http://jenkins-qa.lab.dubl.axway.int:8080', username='chermet', password='Shadow1995!!!')
@cli.command()
def sync():
print('Synching')
if __name__ == '__main__':
cli()
\ No newline at end of file
import jenkins
import pprint
if __name__ == '__main__':
server = jenkins.Jenkins('http://jenkins-qa.lab.dubl.axway.int:8080', username='chermet', password='Shadow1995!!!')
print('User: %s' %(server.get_whoami()['fullName']))
jobs = server.get_all_jobs(3)
for job in jobs:
print job['name']
job_status = server.get_job_info("JenkinsCLITest-Corentin")
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(job_status)
print job_status['url']
import click
@click.group()
@click.option('debug/no-debug')
def cli(debug):
click.echo('Debug mode is %s' % ('on' if debug else 'off'))
@cli.command()
def sync():
click.echo('Synching')
@cli.command()
def blah():
click.echo('blah')
if __name__ == '__main__':
cli()
......@@ -3,7 +3,6 @@ import setuptools
setuptools.setup(
name="jenkins_cli_tool",
version="0.1.0",
url="TBD",
author="Corentin Hermet",
author_email="chermet@axway.com",
description="Jenkins CLI Tool",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment