lib/omnibus/builder.rb
def sync(source, destination, options = {})
      build_commands << BuildCommand.new("sync `#{source}' to `#{destination}'") do
        Dir.chdir(software.project_dir) do
          FileSyncer.sync(source, destination, options)
        end
      end
    end
def sync(source, destination, options = {})
      build_commands << BuildCommand.new("sync `#{source}' to `#{destination}'") do
        Dir.chdir(software.project_dir) do
          FileSyncer.sync(source, destination, options)
        end
      end
    end
(see FileSyncer.sync)

 @example
   sync "#{project_dir}/**/*.rb", "#{install_dir}/ruby_files"

 @example
   sync project_dir, "#{install_dir}/files", exclude: '.git'