Yegorov / yadisk

Download file from Yandex.Disk through share link

Home Page:http://www.rubydoc.info/gems/yadisk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gem Version Build Status Coverage Status

Yadisk

Command line tool for download file from Yandex.Disk through share link

Install

$ gem install yadisk

For development:

$ gem install --dev yadisk

How use

# Save to current directory
$ yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ

# Save to other directory
$ yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ /path/to/directory

How use for development

# Local build and install to rubygems
$ gem build yadisk.gemspec && gem install yadisk-*

# Remove local file and uninstall from rubygems
$ rm yadisk-*.gem && gem uninstall yadisk

# Run script from local folder
$ ruby -Ilib ./bin/yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ

Dependencies

Use in Windows

  1. Download and install wget from gnuwin32.sourceforge.net
  2. Add <you base path>\GnuWin32\bin (E.g. C:\Program Files (x86)\GnuWin32\bin) to PATH environment variable.

Use Docker

docker build -t yadisk .
docker run -v ${pwd}:/yadisk --rm -it yadisk sh # for interactive
docker run --rm yadisk yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ
docker run -v $(pwd):/yadisk --rm yadisk yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ

Use Docker for Dev

To be soon

Test

For run test use:

$ rspec

Contribution

Feel free for send me pull request.

License

License (MIT) Copyright (c) 2018 Yegorov A. yegorov0725@yandex.ru

About

Download file from Yandex.Disk through share link

http://www.rubydoc.info/gems/yadisk

License:MIT License


Languages

Language:Ruby 98.6%Language:Dockerfile 1.4%