get-remote-files summary

Plugin Name: get-remote-files
Version: 1.0.2
Author: @spigell
Realease Date: 2017-09-02 01:22:26
Short Description: simple file downloader
Category: ---
Plugin web page: https://github.com/Spigell/get-remote-files
 
Download link: get-remote-files-v1.000002.tar.gz
Latest version link: https://sparrowhub.org/info/get-remote-files

get-remote-files documentation

SYNOPSIS

Outthentic plugin.

Download remote files via http(s). You can download up to 9 files.

INSTALL

  $ sparrow plg install get-remote-files

USAGE

manually

  $ sparrow plg run get-remote-files 
  $ sparrow project create configuration
  $ sparrow task add configuration configs get-remote-files
  $ sparrow task ini configuration/configs
  # Vim config
   file1:
     target: https://raw.githubusercontent.com/Spigell/configs-vim/master/vimrc
     destination: /home/spigell/.vimrc
  # Bash config
    file2:
     make_backup: false
     target: https://raw.githubusercontent.com/Spigell/configs-bash/master/bashrc
     destination: /home/spigell/.bashrc
     ....
     file9:
     target: ...
     destinaton: ...


  $ sparrow task run configuration/configs

via Sparrowdo

  $ cat sparrowfile
  task-run "test", 'get-remote-files', %(
    target      => 'https://sparrowhub.org/plugins/get-remote-files-v1.000001.tar.gz',
    destination => "/tmp/test.tar.gz",
    make_backup => 'true'
  );

  task-run 'some configs', 'get-remote-files', %(
    file1 => %(
      target      => "https://raw.githubusercontent.com/Spigell/configs-vim/ master/vimrc",
      destination => "/home/spigell/.vimrc"
    ),
    file2 => %(
      target      => "https://raw.githubusercontent.com/Spigell/configs-git/ master/gitconfig",
      destination => "/home/spigell/.gitconfig"
    ),
    file3 => %(
      target      => "https://raw.githubusercontent.com/Spigell/configs-bash/master/bashrc",
      destination => "/home/spigell/.bashrc"
    ),
  );

Parameters

File section:

target

URL. Obligatory.

destination

Path to file on local machine. Obligatory.

make_backup

Create backup of file on local machine if it exists. One of two: true|false. Default value is false.

See also

sparrowdo

sparrow