Skip to content

Commit

Permalink
gchqgh-14 - Started restructing python-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
t616178 committed Nov 11, 2016
1 parent db5bb4d commit ad236e3
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#

import gaffer as g
import gafferConnector
from gaffer import gaffer_connector


def run(host, verbose=False):
Expand All @@ -40,7 +40,7 @@ def run_with_connector(gc):


def create_connector(host, verbose=False):
return gafferConnector.GafferConnector(host, verbose)
return gaffer_connector.GafferConnector(host, verbose)


def add_elements(gc):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
# limitations under the License.
#

import gafferConnectorPki
from gaffer import gaffer_connector_pki
import example


def run(host, verbose=False, pki_cert='cert.pem'):
# Store your PKI certificate in file cert.pem
pki = gafferConnectorPki.PkiCredentials(pki_cert)
pki = gaffer_connector_pki.PkiCredentials(pki_cert)

example.run_with_connector(create_connector(host, pki, verbose))


def create_connector(host, pki, verbose=False):
return gafferConnectorPki.GafferConnector(host, pki, verbose)
return gaffer_connector_pki.GafferConnector(host, pki, verbose)


if __name__ == "__main__":
Expand Down
File renamed without changes.
Loading

0 comments on commit ad236e3

Please sign in to comment.