# coding: utf-8 module Synvert # Manage synvert snippets. class Snippet # synchronize snippets from github. def self.sync snippets_path = Core::Configuration.instance.get :default_snippets_path if File.exist?(snippets_path) FileUtils.cd snippets_path `git pull --rebase --quiet` else `git clone https://github.com/xinminlabs/synvert-snippets.git #{snippets_path} --quiet` end end end end