Class: Giblish::CopyResourcesPreBuild
- Inherits:
-
Object
- Object
- Giblish::CopyResourcesPreBuild
- Defined in:
- lib/giblish/resourcepaths.rb
Overview
copy everything under cmd_opts.resource_dir to dst_top/web_assets/.
Instance Method Summary collapse
-
#initialize(resource_paths) ⇒ CopyResourcesPreBuild
constructor
- required opts: resource_dir
- Pathname to the top of the resource area to be copied style_name
- basename of the css to use for styling dstdir
-
Pathname to the destination dir where the copied resources will be stored.
- #on_prebuild(src_tree, dst_tree, converter) ⇒ Object
Constructor Details
#initialize(resource_paths) ⇒ CopyResourcesPreBuild
required opts:
- resource_dir
-
Pathname to the top of the resource area to be copied
- style_name
-
basename of the css to use for styling
- dstdir
-
Pathname to the destination dir where the copied resources will be
stored.
147 148 149 |
# File 'lib/giblish/resourcepaths.rb', line 147 def initialize(resource_paths) @paths = resource_paths end |
Instance Method Details
#on_prebuild(src_tree, dst_tree, converter) ⇒ Object
151 152 153 |
# File 'lib/giblish/resourcepaths.rb', line 151 def on_prebuild(src_tree, dst_tree, converter) copy_resource_area end |