Class: Giblish::CopyResourcesPreBuild

Inherits:
Object
  • Object
show all
Defined in:
lib/giblish/resourcepaths.rb

Overview

copy everything under cmd_opts.resource_dir to dst_top/web_assets/.

Instance Method Summary collapse

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