From 3ed5aee262225579a172efd493ae9c04611f356c Mon Sep 17 00:00:00 2001 From: Alberto Donato Date: Wed, 5 Aug 2015 12:19:04 +0200 Subject: [PATCH] Add missing file. --- actions.yaml | 4 ++++ hooks/charmhelpers/cli/hookenv.py | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 hooks/charmhelpers/cli/hookenv.py diff --git a/actions.yaml b/actions.yaml index 7de4d63a..2632d09f 100644 --- a/actions.yaml +++ b/actions.yaml @@ -1,2 +1,6 @@ git-reinstall: description: Reinstall keystone from the openstack-origin-git repositories. +pause: + description: Pause keystone service. +resume: + description: Resume keystone service. diff --git a/hooks/charmhelpers/cli/hookenv.py b/hooks/charmhelpers/cli/hookenv.py new file mode 100644 index 00000000..265c816e --- /dev/null +++ b/hooks/charmhelpers/cli/hookenv.py @@ -0,0 +1,23 @@ +# Copyright 2014-2015 Canonical Limited. +# +# This file is part of charm-helpers. +# +# charm-helpers is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 as +# published by the Free Software Foundation. +# +# charm-helpers is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with charm-helpers. If not, see . + +from . import cmdline +from charmhelpers.core import hookenv + + +cmdline.subcommand('relation-id')(hookenv.relation_id._wrapped) +cmdline.subcommand('service-name')(hookenv.service_name) +cmdline.subcommand('remote-service-name')(hookenv.remote_service_name._wrapped)