File: guardfile.rb

package info (click to toggle)
ruby-guard 2.18.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,344 kB
  • sloc: ruby: 9,256; makefile: 6
file content (37 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require "guard/config"

if Guard::Config.new.strict?
  abort "Error: Deprecated file #{__FILE__} is being used"
else
  require "guard/deprecated/guardfile"

  # TODO: remove this file in next major version

  module Guard
    unless Guard::Config.new.silence_deprecations?
      UPGRADE_WIKI_URL =
        "https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0"

      STDERR.puts <<-EOS
        (guard/guardfile.rb message)

        You are including "guard/guardfile.rb", which has been deprecated
        since 2013 ... and will be removed.

        Migration is easy, see: #{UPGRADE_WIKI_URL}

        This file was included from:
          #{caller[0..10] * "\n  >"}

        Sorry for the inconvenience and have a nice day!

        (end of guard/guardfile.rb message)


      EOS
    end
    module Guardfile
      extend Deprecated::Guardfile::ClassMethods
    end
  end
end