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

PulpQE / pulp-smash / 1218 / 1
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2017 07:26PM UTC
Files 6
Run time 1s
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

09 Jan 2017 07:18PM UTC coverage: 63.543% (-2.0%) from 65.511%
1218.1

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%)

0.64 hits per line

Source Files on job 1218.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1218
  • Travis Job 1218.1
  • f4b32aec on github
  • Prev Job for on master (#1216.1)
  • Next Job for on master (#1222.1)
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