Sha256: c34854578f05d3483cf7536e5ba6918eb2abffa14a8c383c2bb215c46679f5d3

Contents?: true

Size: 401 Bytes

Versions: 54

Compression:

Stored size: 401 Bytes

Contents

class Specinfra::Command::Solaris::Base::Cron < Specinfra::Command::Base::Cron
  class << self
    def check_cron_entry(user, entry)
      entry_escaped = entry.gsub(/\*/, '\\*').gsub(/\[/, '\\[').gsub(/\]/, '\\]')
      if user.nil?
        "crontab -l | grep -- #{escape(entry_escaped)}"
      else
        "crontab -l #{escape(user)} | grep -- #{escape(entry_escaped)}"
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
specinfra-2.4.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.4.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.3.2 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.3.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.3.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.2.4 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.2.3 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.2.2 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.2.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.2.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.1.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.1.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.4 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.3 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.2 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta52 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta51 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta50 lib/specinfra/command/solaris/base/cron.rb