Sha256: 6b1819db2908787f8f9f141f5c8ff3ab8b5c0ce28302bbde2437e9db47105253

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 KB

Contents

require "guard/guardfile/evaluator"
require "guard/guardfile/generator"
require "guard/ui"

module Guard
  # @deprecated Use instance methods of {Guardfile::Evaluator} and
  #  {Guardfile::Generator} instead.
  #
  # @see Guardfile::Evaluator
  # @see Guardfile::Generator
  #
  module Guardfile
    # @deprecated Use {Guardfile::Generator#create_guardfile} instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    # upgrade for Guard 2.0
    #
    def self.create_guardfile(options = {})
      # FIXME: used internally by Guard
      # TODO: reenable after majore refactoring is finished
      # UI.deprecation(Deprecator::CREATE_GUARDFILE_DEPRECATION)
      Generator.new(options).create_guardfile
    end

    # @deprecated Use {Guardfile::Generator#initialize_template} instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    # upgrade for Guard 2.0
    #
    def self.initialize_template(plugin_name)
      # FIXME: used internally by Guard
      # TODO: reenable after majore refactoring is finished
      # UI.deprecation(Deprecator::INITIALIZE_TEMPLATE_DEPRECATION)
      Generator.new.initialize_template(plugin_name)
    end

    # @deprecated Use {Guardfile::Generator#initialize_all_templates} instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    # upgrade for Guard 2.0
    #
    def self.initialize_all_templates
      # FIXME: used internally by Guard
      # TODO: reenable after majore refactoring is finished
      # UI.deprecation(Deprecator::INITIALIZE_ALL_TEMPLATES_DEPRECATION)
      Generator.new.initialize_all_templates
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
guard-2.8.2 lib/guard/guardfile.rb
guard-2.8.1 lib/guard/guardfile.rb
guard-2.8.0 lib/guard/guardfile.rb