# File lib/thor/actions/file_manipulation.rb, line 79 def get(source, *args, &block) config = args.last.is_a?(Hash) ? args.pop : {} destination = args.first if source =~ %r{^https?\://} require "open-uri" else source = File.expand_path(find_in_source_paths(source.to_s)) end render = open(source) { |input| input.binmode.read } destination ||= if block_given? block.arity == 1 ? yield(render) : yield else File.basename(source) end create_file destination, render, config end