Sha256: 253953eee2362c75e5983cb7c12c9014201ffe6d9d08dbd418523910bfd77019

Contents?: true

Size: 520 Bytes

Versions: 9

Compression:

Stored size: 520 Bytes

Contents

module Serverspec
  module Commands
    class Solaris < Base
      def check_enabled service
        "svcs -l #{service} 2> /dev/null | grep 'enabled      true'"
      end

      def check_installed package
        "pkg list -H #{package} 2> /dev/null"
      end

      def check_listening port
        "netstat -an -P tcp 2> /dev/null | grep LISTEN | grep '\.#{port} '"
      end

      def check_running service
        "svcs -l #{service} status 2> /dev/null |grep 'state        online'"
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
serverspec-0.0.13 lib/serverspec/commands/solaris.rb
serverspec-0.0.12 lib/serverspec/commands/solaris.rb
serverspec-0.0.11 lib/serverspec/commands/solaris.rb
serverspec-0.0.10 lib/serverspec/commands/solaris.rb
serverspec-0.0.9 lib/serverspec/commands/solaris.rb
serverspec-0.0.8 lib/serverspec/commands/solaris.rb
serverspec-0.0.7 lib/serverspec/commands/solaris.rb
serverspec-0.0.6 lib/serverspec/commands/solaris.rb
serverspec-0.0.5 lib/serverspec/commands/solaris.rb