Sha256: 7264f610e740381d49c5d2b76d419510fcce7b9f609f60f422031e7743beb913

Contents?: true

Size: 370 Bytes

Versions: 7

Compression:

Stored size: 370 Bytes

Contents

module Serverspec
  module Commands
    class Debian < Linux
      def check_enabled service
        "ls /etc/rc3.d/ | grep -- #{escape(service)}"
      end

      def check_installed package
        escaped_package = escape(package)
        "dpkg -s #{escaped_package} && ! dpkg -s #{escaped_package} | grep -E '^Status: .+ not-installed$'"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
serverspec-0.6.0 lib/serverspec/commands/debian.rb
serverspec-0.5.8 lib/serverspec/commands/debian.rb
serverspec-0.5.7 lib/serverspec/commands/debian.rb
serverspec-0.5.6 lib/serverspec/commands/debian.rb
serverspec-0.5.5 lib/serverspec/commands/debian.rb
serverspec-0.5.4 lib/serverspec/commands/debian.rb
serverspec-0.5.3 lib/serverspec/commands/debian.rb