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.beta29 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta28 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta27 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta26 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta25 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta24 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta23 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta22 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta21 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta20 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta19 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta18 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta17 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.0.0.beta16 lib/specinfra/command/solaris/base/cron.rb