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.



148
149
150
# File 'lib/giblish/resourcepaths.rb', line 148

def initialize(resource_paths)
  @paths = resource_paths
end

Instance Method Details

#on_prebuild(src_tree, dst_tree, converter) ⇒ Object



152
153
154
# File 'lib/giblish/resourcepaths.rb', line 152

def on_prebuild(src_tree, dst_tree, converter)
  copy_resource_area
end