# File lib/thor/actions.rb, line 191 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 if URI(path).is_a?(URI::HTTP) contents = open(path, "Accept" => "application/x-thor-template") {|io| io.read } else contents = open(path) {|io| io.read } end instance_eval(contents, path) shell.padding -= 1 if verbose end