We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
namespace :dev_tools do task :configure_xrefresh => [:environment] do config_file = ENV['config_file'] || File.expand_path(File.join('~', '.xrefresh-server.yml')) root_path = ENV['path'] || RAILS_ROOT config = YAML::load(IO.read(config_file)) config['paths'] << root_path unless config['paths'].include? root_path File.open(config_file, 'w') {|f| f.write(config.to_yaml) } end end