Sha256: e506bf0a13ada26276dde96adb531d7f1588f1d318b2ff7cb9bbc99a224bdc06
Contents?: true
Size: 525 Bytes
Versions: 5
Compression:
Stored size: 525 Bytes
Contents
require "shellwords" require "tagen/core/kernel/shell" module Saber module Task # send files to seedbox. class Send < Base desc "send1", "send" # @overload send(*files, dest) def send1(*args) if args.length == 1 then Saber.ui.error! "At least one src for send -- src: nil, dest: #{args[1].inspect}." end *files, dest = args system "rsync -Phr #{files.shelljoin} #{Rc.server.user}@#{Rc.server.host}:#{dest}", show_cmd: true end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
saber-1.1.1 | lib/saber/task/send.rb |
saber-1.1.0 | lib/saber/task/send.rb |
saber-1.0.2 | lib/saber/task/send.rb |
saber-1.0.1 | lib/saber/task/send.rb |
saber-1.0.0 | lib/saber/task/send.rb |