Method: Gync#run
- Defined in:
- lib/gync.rb
#run(args) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gync.rb', line 22 def run(args) @opts = opts_for args.first git = Gync::Git.new(@opts.local, @opts.remote) git.pull system Shellwords.shelljoin args git.push rescue Exception => err log = Logger.new '/tmp/gync.log' log.error err STDERR.puts err exit 1 end |