Module: Guard::Deprecated::Guardfile::ClassMethods
- Included in:
- Guardfile
- Defined in:
- lib/guard/deprecated/guardfile.rb
Constant Summary collapse
- MORE_INFO_ON_UPGRADING_TO_GUARD_2 =
<<-EOS.gsub(/^\s*/, "") For more information on how to upgrade for Guard 2.0, please head over to: https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0%s EOS
- CREATE_GUARDFILE =
Deprecated.
Use Guardfile::Generator#create_guardfile instead.
upgrade for Guard 2.0
<<-EOS.gsub(/^\s*/, "") Starting with Guard 2.0 'Guard::Guardfile.create_guardfile(options)' is deprecated. Please use 'Guard::Guardfile::Generator.new(options).create_guardfile' instead. #{MORE_INFO_ON_UPGRADING_TO_GUARD_2 % '#deprecated-methods-2'} EOS
- INITIALIZE_TEMPLATE =
Deprecated.
Use Guardfile::Generator#initialize_template instead.
upgrade for Guard 2.0
Deprecator message for the ‘Guardfile.initialize_template` method
<<-EOS.gsub(/^\s*/, "") Starting with Guard 2.0 'Guard::Guardfile.initialize_template(plugin_name)' is deprecated. Please use 'Guard::Guardfile::Generator.new.initialize_template(plugin_name)' instead. #{MORE_INFO_ON_UPGRADING_TO_GUARD_2 % '#deprecated-methods-2'} EOS
- INITIALIZE_ALL_TEMPLATES =
Deprecated.
Use Guardfile::Generator#initialize_all_templates
instead.
upgrade for Guard 2.0
Deprecator message for the ‘Guardfile.initialize_all_templates` method
<<-EOS.gsub(/^\s*/, "") Starting with Guard 2.0 'Guard::Guardfile.initialize_all_templates' is deprecated. Please use 'Guard::Guardfile::Generator.new.initialize_all_templates' instead. #{MORE_INFO_ON_UPGRADING_TO_GUARD_2 % '#deprecated-methods-2'} EOS
Instance Method Summary collapse
- #create_guardfile(options = {}) ⇒ Object
- #initialize_all_templates ⇒ Object
- #initialize_template(plugin_name) ⇒ Object
Instance Method Details
#create_guardfile(options = {}) ⇒ Object
33 34 35 36 |
# File 'lib/guard/deprecated/guardfile.rb', line 33 def create_guardfile( = {}) UI.deprecation(CREATE_GUARDFILE) ::Guard::Guardfile::Generator.new().create_guardfile end |
#initialize_all_templates ⇒ Object
77 78 79 80 |
# File 'lib/guard/deprecated/guardfile.rb', line 77 def initialize_all_templates UI.deprecation(INITIALIZE_ALL_TEMPLATES) ::Guard::Guardfile::Generator.new.initialize_all_templates end |
#initialize_template(plugin_name) ⇒ Object
55 56 57 58 |
# File 'lib/guard/deprecated/guardfile.rb', line 55 def initialize_template(plugin_name) UI.deprecation(INITIALIZE_TEMPLATE) ::Guard::Guardfile::Generator.new.initialize_template(plugin_name) end |