~lamont/charms/trusty/bind-resolver/trunk

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/cli/host.py

  • Committer: LaMont Jones
  • Date: 2014-10-04 05:19:46 UTC
  • Revision ID: lamont@mmjgroup.com-20141004051946-8fa32giu9qwpmcmu
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from . import cmdline
 
2
from charmhelpers.core import host
 
3
 
 
4
 
 
5
@cmdline.subcommand()
 
6
def mounts():
 
7
    "List mounts"
 
8
    return host.mounts()
 
9
 
 
10
 
 
11
@cmdline.subcommand_builder('service', description="Control system services")
 
12
def service(subparser):
 
13
    subparser.add_argument("action", help="The action to perform (start, stop, etc...)")
 
14
    subparser.add_argument("service_name", help="Name of the service to control")
 
15
    return host.service