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.0.0.beta49 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta48 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta47 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta46 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta45 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta44 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta43 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta42 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta41 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta40 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta39 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta38 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta37 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta36 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta35 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta34 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta33 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta32 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta31 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta30 lib/specinfra/command/solaris/base/cron.rb