• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PulpQE / pulp-smash / 1218
63%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2017 07:26PM UTC
Jobs 2
Files 6
Run time 24s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1218

push

travis-ci

Ichimonji10
Replace Service with ServiceManager

The `Service` class represents a service (such as httpd) on a host. It
provides methods such as `start` and `stop`, and it abstracts away which
service manager is in use on the target host.

A drawback of the `Service` class is that it encourages serial code to
be written. If three services are to be restarted, it's easy to write
something like this:

    services = (Service(cfg, name) for name in ('foo', 'bar', 'biz'))
    for service in services:
        service.stop()
    for service in services:
        service.start()

The `ServiceManager` class represents the service manager (such as
systemctl) on a host. It's used like so:

    services = ('foo', 'bar', 'biz')
    svc_mgr = ServiceManager(cfg)
    svc_mgr.stop(services)
    svc_mgr.start(services)

Depending on the service manager used by the target system, `stop` and
`start` dispatch commands to the target system either in serial or in
parallel. This has the potential to improve runtime performance.

373 of 587 relevant lines covered (63.54%)

1.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1218.1 09 Jan 2017 07:26PM UTC 0
63.54
Travis Job 1218.1
2 1218.2 09 Jan 2017 07:26PM UTC 0
63.54
Travis Job 1218.2
Source Files on build 1218
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1218
  • f4b32aec on github
  • Prev Build on master (#1216)
  • Next Build on master (#1222)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc