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 =
" For more information on how to upgrade for Guard 2.0, please head\n over to: https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0%s\n".gsub(/^\s*/, "")
- CREATE_GUARDFILE =
Deprecated.
Use Guardfile::Generator#create_guardfile instead.
upgrade for Guard 2.0
" Starting with Guard 2.0 'Guard::Guardfile.create_guardfile(options)'\n is deprecated.\n\n Please use 'Guard::Guardfile::Generator.new(options).create_guardfile'\n instead.\n\n \#{MORE_INFO_ON_UPGRADING_TO_GUARD_2 % '#deprecated-methods-2'}\n".gsub(/^\s*/, "")
- INITIALIZE_TEMPLATE =
Deprecated.
Use Guardfile::Generator#initialize_template instead.
upgrade for Guard 2.0
Deprecator message for the ‘Guardfile.initialize_template` method
" Starting with Guard 2.0\n 'Guard::Guardfile.initialize_template(plugin_name)' is deprecated.\n\n Please use\n 'Guard::Guardfile::Generator.new.initialize_template(plugin_name)'\n instead.\n\n \#{MORE_INFO_ON_UPGRADING_TO_GUARD_2 % '#deprecated-methods-2'}\n".gsub(/^\s*/, "")
- 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
" Starting with Guard 2.0 'Guard::Guardfile.initialize_all_templates'\n is deprecated.\n\n Please use 'Guard::Guardfile::Generator.new.initialize_all_templates'\n instead.\n\n \#{MORE_INFO_ON_UPGRADING_TO_GUARD_2 % '#deprecated-methods-2'}\n".gsub(/^\s*/, "")
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 |