class Sync
Public Instance Methods
sync()
click to toggle source
# File lib/commands/sync.rb, line 16 def sync block = Proc.new do | master,client | puts "syncing content for #{File.basename(master)}" FileUtils.cp_r "#{master}/content/", "#{client}/" end @name ? presentation(@name.sub(' ','_'),&block) : each_presentation(&block) if git_repository? puts 'syncing with git...' add_to_git end end