mina-scp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +11 -4
- data/lib/mina/scp.rb +1 -0
- data/lib/mina/scp/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46e47cd05ace379a4338cbaf488a516873c0f9f1
|
4
|
+
data.tar.gz: 147a022f4ece5fd1afe25d7051ee2cceeade7bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d92345d4e58e22d4454590f24c9354d5cec771b8779109eae95cf7678bf40f31292311860da9a9714bffdbf9a106e2439cd720ea0ba50933dfda7585e56bc0f
|
7
|
+
data.tar.gz: 824449f453f6f17cda665b93c6e21ab0ec9f5d39c4e5a7ed1544e9c29c85b65c0da494f5eb67947a61d672edc9e314545208479e9c0f928f4b0253df7ba54919
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.1.2
|
4
|
+
|
5
|
+
* Add `recursively` option to support uploading/downloading whole directory (by @vad4msiu)
|
6
|
+
|
3
7
|
## 0.1.1
|
4
8
|
|
5
9
|
* Use `%x[command]` over `exec` to spawn a subshell. If using verbose, return
|
6
|
-
results on nonzero exit status
|
10
|
+
results on nonzero exit status (by @jrhorn424)
|
7
11
|
|
8
12
|
## 0.1.0
|
9
13
|
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Mina SCP
|
2
2
|
|
3
|
+
[](http://badge.fury.io/rb/mina-scp)
|
4
|
+
|
3
5
|
Basic SCP helpers for [Mina](https://github.com/nadarei/mina) deployer.
|
4
6
|
Used to download/upload files from/to the server.
|
5
7
|
|
@@ -34,6 +36,7 @@ scp_upload(local_file, remote_file)
|
|
34
36
|
# Options
|
35
37
|
|
36
38
|
If you specify `verbose: true` as the last parameter, it will print the SCP command before running it.
|
39
|
+
If you want upload or download a folder you can also pass `recursively: true`.
|
37
40
|
|
38
41
|
### Development
|
39
42
|
|
@@ -42,12 +45,16 @@ See [CONTRIBUTING](http://github.com/adie/mina-scp/blob/master/CONTRIBUTING.md)
|
|
42
45
|
|
43
46
|
To see what has changed in recent versions of Mina SCP, see the [CHANGELOG](http://github.com/adie/mina-scp/blob/master/CHANGELOG.md).
|
44
47
|
|
45
|
-
###
|
48
|
+
### Contributors
|
46
49
|
|
47
|
-
|
50
|
+
See https://github.com/adie/mina-scp/graphs/contributors
|
48
51
|
|
49
52
|
### Copyright
|
50
53
|
|
51
|
-
Copyright © 2013 Anton Dieterle. See [LICENSE](http://github.com/adie/mina-scp/blob/master/LICENSE.txt) for details.
|
54
|
+
Copyright © 2013-2015 Anton Dieterle. See [LICENSE](http://github.com/adie/mina-scp/blob/master/LICENSE.txt) for details.
|
55
|
+
|
56
|
+
Project is a member of the [OSS Manifesto](http://ossmanifesto.org/).
|
57
|
+
|
58
|
+
|
59
|
+
[](https://bitdeli.com/free "Bitdeli Badge")
|
52
60
|
|
53
|
-
Project is a member of the [OSS Manifesto](http://ossmanifesto.com/).
|
data/lib/mina/scp.rb
CHANGED
@@ -4,6 +4,7 @@ def scp_transfer(direction, from, to, options = {})
|
|
4
4
|
command = "scp"
|
5
5
|
command << " -i #{identity_file}" if identity_file?
|
6
6
|
command << " -P #{port}" if port?
|
7
|
+
command << " -r" if options[:recursively]
|
7
8
|
case direction
|
8
9
|
when :up then to = remote_prefix + to
|
9
10
|
when :down then from = remote_prefix + from
|
data/lib/mina/scp/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-scp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Dieterle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Basic SCP helpers for Mina deployer for download/upload
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- CHANGELOG.md
|
50
50
|
- CONTRIBUTING.md
|
51
51
|
- Gemfile
|
@@ -65,17 +65,17 @@ require_paths:
|
|
65
65
|
- lib
|
66
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
78
|
+
rubygems_version: 2.4.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Download/upload helpers for Mina deployer using SCP
|