lib/soaspec/exe_helpers.rb in soaspec-0.1.18 vs lib/soaspec/exe_helpers.rb in soaspec-0.2.0

- old
+ new

@@ -29,10 +29,12 @@ task_name = options[:virtual] ? 'spec: :start_test_server' : ':spec' "RSpec::Core::RakeTask.new(#{task_name}) do |t|" end # Retrieve default file contents based on filename - def retrieve_contents(filename, erb) + # @param [String] filename Filename within 'lib/generator' to file retrieve contents from + # @param [Boolean] erb Whether to process file with ERB + def retrieve_contents(filename, erb = true) default_file = File.join(File.dirname(__FILE__), 'generator', filename + (erb ? '.erb' : '')) contents = File.read(default_file) erb ? ERB.new(contents).result(binding) : contents end \ No newline at end of file