You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make surveyor_tasks.rake parse method to be case-insensitive when it matches the file. This may help avoid capitalization issues when the ENV['file'] filepath name matches the filename in value, but not lettercase.
desc"generate and load survey (specify FILE=surveys/your_survey.rb)"task:surveyor=>:"surveyor:parse"namespace:surveyordotask:parse=>:environmentdoraise"USAGE: file name required e.g. 'FILE=surveys/kitchen_sink_survey.rb'"ifENV["FILE"].blank?file=ENV["FILE"].include?(Rails.root.to_s) ? ENV["FILE"] : File.join(Rails.root,ENV["FILE"])raise"File does not exist: #{file}"unlessFileTest.exists?(file)puts"--- Parsing #{file} ---"Surveyor::Parser.parse_file(file,{:trace=>Rake.application.options.trace})puts"--- Done #{file} ---"end
The text was updated successfully, but these errors were encountered:
Make surveyor_tasks.rake parse method to be case-insensitive when it matches the file. This may help avoid capitalization issues when the ENV['file'] filepath name matches the filename in value, but not lettercase.
The text was updated successfully, but these errors were encountered: