Sha256: ce6bc2c5e1363b6ac1cb936f195074cf5b1f23f564db39394f2c85a6b0c9edd4

Contents?: true

Size: 385 Bytes

Versions: 109

Compression:

Stored size: 385 Bytes

Contents

module Specinfra
  module Command
    module Module
      module Service
        module Runit
          def check_is_running_under_runit(service)
            "sv status #{escape(service)} | grep -E '^run: '"
          end

          def check_is_enabled_under_runit(service)
            "test ! -f /etc/sv/#{escape(service)}/down"
          end
        end
      end
    end
  end
end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
specinfra-2.90.1 lib/specinfra/command/module/service/runit.rb
specinfra-2.90.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.89.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.88.2 lib/specinfra/command/module/service/runit.rb
specinfra-2.88.1 lib/specinfra/command/module/service/runit.rb
specinfra-2.88.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.87.2 lib/specinfra/command/module/service/runit.rb
specinfra-2.87.1 lib/specinfra/command/module/service/runit.rb
specinfra-2.87.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.86.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.85.1 lib/specinfra/command/module/service/runit.rb
specinfra-2.85.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.84.1 lib/specinfra/command/module/service/runit.rb
specinfra-2.84.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.83.4 lib/specinfra/command/module/service/runit.rb
specinfra-2.83.3 lib/specinfra/command/module/service/runit.rb
specinfra-2.83.2 lib/specinfra/command/module/service/runit.rb
specinfra-2.83.1 lib/specinfra/command/module/service/runit.rb
specinfra-2.83.0 lib/specinfra/command/module/service/runit.rb
specinfra-2.82.25 lib/specinfra/command/module/service/runit.rb