Sha256: 08776dffd6142a658d53cedee1686a3c5b2c28d7453bbf7de455010f2cc2f539
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
require 'thor' require 'thor/group' require 'util' require 'git' class Sync < Thor::Group include Thor::Actions include Util argument :name, :type => :string, :desc => 'The presentation name', :required => false def syn block = Proc.new do | master,client | puts "syncing content for #{File.basename(master)}" FileUtils.cp_r "#{master}/content/", "#{client}/content/" end @name ? presentation(@name.sub(' ','_'),&block) : each_presentation(&block) if git_repository? puts 'syncing wiht git...' add_to_git end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slidemgr-1.0.2 | lib/commands/sync.rb |
slidemgr-1.0.1 | lib/commands/sync.rb |