Sha256: c248b6b5a43a2c59c3c338331d52588406cb7ed0df91bdbc7b0bf05be9b6d290

Contents?: true

Size: 400 Bytes

Versions: 270

Compression:

Stored size: 400 Bytes

Contents

class Specinfra::Command::Solaris::Base::Cron < Specinfra::Command::Base::Cron
  class << self
    def check_has_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

270 entries across 270 versions & 3 rubygems

Version Path
specinfra-2.76.8 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.7 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.6 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.5 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.4 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.3 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.2 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.76.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.75.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-rb19-2.44.7 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.75.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.74.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.73.4 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.73.3 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.73.2 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.73.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.73.0 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.72.1 lib/specinfra/command/solaris/base/cron.rb
specinfra-2.72.0 lib/specinfra/command/solaris/base/cron.rb