Sha256: fd8895b40e4683f0a63c0660360937c235da273415d22a9404d6c6ca15b6cddf

Contents?: true

Size: 485 Bytes

Versions: 340

Compression:

Stored size: 485 Bytes

Contents

class Specinfra::Command::Linux::Base::SelinuxModule < Specinfra::Command::Base::SelinuxModule
  class << self
    def check_is_installed(name, version=nil)
      cmd =  "semodule -l | grep $'^#{escape(name)}\\t"
      cmd += "#{escape(version)}\\t" unless version.nil?
      cmd += "'"
      cmd
    end

    def check_is_enabled(name)
      cmd =  "semodule -l | grep $'^#{escape(name)}\\t'"
      cmd += " | grep -v $'^#{escape(name)}\\t.*\\tDisabled$'"
      cmd
    end
  end
end

Version data entries

340 entries across 340 versions & 3 rubygems

Version Path
specinfra-2.24.0 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.23.0 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.22.0 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.21.1 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.21.0 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.20.2 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.20.1 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.20.0 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.19.6 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.19.5 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.19.4 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.19.3 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.19.2 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.19.1 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.19.0 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.18.3 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.18.2 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.18.1 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.18.0 lib/specinfra/command/linux/base/selinux_module.rb
specinfra-2.17.1 lib/specinfra/command/linux/base/selinux_module.rb