module Thor::Actions
def apply(path, config={})
apply "recipes/jquery.rb"
apply "http://gist.github.com/103208"
==== Examples
a relative path from the source root.
path
==== Parameters
Loads an external file and execute it in the instance binding.
def apply(path, config={}) verbose = config.fetch(:verbose, true) path = find_in_source_paths(path) unless path =~ /^http\:\/\// say_status :apply, path, verbose shell.padding += 1 if verbose instance_eval(open(path).read) shell.padding -= 1 if verbose end