Sha256: 233b67319775b685be5fb43fe8eb9873bc3019606e1945c67e8af56e7df12888
Contents?: true
Size: 700 Bytes
Versions: 4
Compression:
Stored size: 700 Bytes
Contents
module Jets::Code::Copy class Rsync < Base # interface method def create_temp_zip FileUtils.mkdir_p("#{build_root}/stage/code-temp") excludes = " --exclude .git" excludes << " --exclude-from=#{Jets.root}/.gitignore" if File.exist?("#{Jets.root}/.gitignore") quiet_sh "rsync -aq#{excludes} #{Jets.root}/ #{build_root}/stage/code-temp" # Create zip file check_zip_installed! quiet_sh "cd #{build_root}/stage/code-temp && zip -q -r #{build_root}/stage/code-temp.zip ." end def check_zip_installed! return if system("type zip > /dev/null 2>&1") abort "ERROR: zip command is required. Please install zip command." end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/code/copy/rsync.rb |
jets-6.0.4 | lib/jets/code/copy/rsync.rb |
jets-6.0.3 | lib/jets/code/copy/rsync.rb |
jets-6.0.2 | lib/jets/code/copy/rsync.rb |