Sha256: 1c6f4aefbc86cb697ee8d3725659b2aa04cda50076d3e37203f4d935088cb4ed

Contents?: true

Size: 695 Bytes

Versions: 13

Compression:

Stored size: 695 Bytes

Contents

class Specinfra::Command::Guix::Base::Service < Specinfra::Command::Linux::Base::Service
  class << self
    def check_is_enabled(service, level=nil)
      "herd status #{escape(service)} | grep 'It is enabled.'"
    end

    def check_is_running(service)
      "herd status #{escape(service)} | grep 'It is started.'"
    end

    def enable(service)
      "herd enable #{escape(service)}"
    end

    def disable(service)
      "herd disable #{escape(service)}"
    end

    def start(service)
      "herd start #{escape(service)}"
    end

    def stop(service)
      "herd stop #{escape(service)}"
    end

    def restart(service)
      "herd restart #{escape(service)}"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
specinfra-2.91.0 lib/specinfra/command/guix/base/service.rb
specinfra-2.90.1 lib/specinfra/command/guix/base/service.rb
specinfra-2.90.0 lib/specinfra/command/guix/base/service.rb
specinfra-2.89.0 lib/specinfra/command/guix/base/service.rb
specinfra-2.88.2 lib/specinfra/command/guix/base/service.rb
specinfra-2.88.1 lib/specinfra/command/guix/base/service.rb
specinfra-2.88.0 lib/specinfra/command/guix/base/service.rb
specinfra-2.87.2 lib/specinfra/command/guix/base/service.rb
specinfra-2.87.1 lib/specinfra/command/guix/base/service.rb
specinfra-2.87.0 lib/specinfra/command/guix/base/service.rb
specinfra-2.86.0 lib/specinfra/command/guix/base/service.rb
specinfra-2.85.1 lib/specinfra/command/guix/base/service.rb
specinfra-2.85.0 lib/specinfra/command/guix/base/service.rb