Class: Middleman::Sitemap::Extensions::MoveFile
- Inherits:
-
ConfigExtension
- Object
- Extension
- ConfigExtension
- Middleman::Sitemap::Extensions::MoveFile
- Defined in:
- lib/middleman-core/sitemap/extensions/move_file.rb
Overview
Manages the list of proxy configurations and manipulates the sitemap to include new resources based on those configurations
Defined Under Namespace
Classes: MoveFileDescriptor
Constant Summary
Constants included from Contracts
Instance Attribute Summary
Attributes inherited from Extension
Instance Method Summary collapse
- #move_file(from, to) ⇒ Object
-
#String
Setup a move from one path to another.
Methods inherited from ConfigExtension
#after_configuration, #initialize, #manipulate_resource_list
Methods inherited from Extension
activated_extension, #add_exposed_to_context, #after_build, #after_configuration, #after_extension_activated, after_extension_activated, #before_build, #before_configuration, clear_after_extension_callbacks, config, define_setting, expose_to_application, expose_to_config, expose_to_template, global_config, helpers, #initialize, #manipulate_resource_list, option, #ready, resources
Methods included from Contracts
Constructor Details
This class inherits a constructor from Middleman::ConfigExtension
Instance Method Details
#move_file(from, to) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/middleman-core/sitemap/extensions/move_file.rb', line 30 def move_file(from, to) MoveFileDescriptor.new( ::Middleman::Util.normalize_path(from), ::Middleman::Util.normalize_path(to) ) end |
#String
This method returns an undefined value.
Setup a move from one path to another
29 |
# File 'lib/middleman-core/sitemap/extensions/move_file.rb', line 29 Contract String, String => MoveFileDescriptor |