Sha256: e593f7eb43394a69e09dd73bcecc2497c492954a0664e2a0ea359fdc6dd73afe
Contents?: true
Size: 521 Bytes
Versions: 12
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true module Synvert # Manage synvert snippets. class Snippet def initialize(snippets_path) @snippets_path = snippets_path end # synchronize snippets from github. def sync if File.exist?(@snippets_path) Dir.chdir(@snippets_path) do Kernel.system('git checkout . && git pull --rebase') end else Kernel.system("git clone https://github.com/xinminlabs/synvert-snippets-ruby.git #{@snippets_path}") end end end end
Version data entries
12 entries across 12 versions & 1 rubygems