mina-ftp 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/mina-ftp.rb +1 -1
- data/lib/mina/ftp.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef93c8454066c53542a341f04a162b4662757686
|
4
|
+
data.tar.gz: c1f393f799081f9e912947a95cadec592085c5f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2ce1c24d32925abf643ba3946f00fcbb35fd0f1e47dd614f4cb55fd972e492e06b646c07c399b023ce2b73ed4ed41d3fc924f322f768db8b12169183e889c9a
|
7
|
+
data.tar.gz: 15158680ab498c98144ae8278f81306dedeb1cf2c82775f79844a9d008cfae544b1c980acb9cfa2f6e946695d33db3e5a7d57335e4008e518f66f87d9e4678b4
|
data/README.md
CHANGED
@@ -35,6 +35,8 @@ set :ftp_path, 'public_www'
|
|
35
35
|
set :ftp_host, 'ftp.domain.com'
|
36
36
|
set :ftp_username, 'user@domain.com'
|
37
37
|
set :ftp_password, 'secret'
|
38
|
+
set :ftp_from_path, 'public'
|
39
|
+
set :ftp_options, {:passive => false}
|
38
40
|
```
|
39
41
|
|
40
42
|
Update `deploy` task to invoke `ftp:deploy` task:
|
data/lib/mina-ftp.rb
CHANGED
data/lib/mina/ftp.rb
CHANGED
@@ -40,10 +40,16 @@ set_default :ftp_from_path, 'public'
|
|
40
40
|
|
41
41
|
set_default :ftp_files_pattern, '**/*'
|
42
42
|
|
43
|
+
# ### ftp_options
|
44
|
+
# Set some FTP client options to be used
|
45
|
+
# Defaults to: a Hash of options
|
46
|
+
|
47
|
+
set_default :ftp_options, {:verbose => verbose_mode?, :passive => false}
|
48
|
+
|
43
49
|
# ### ftp_client
|
44
50
|
# Sets up the ftp client
|
45
51
|
set_default :ftp_client, proc{
|
46
|
-
FtpSync.new(ftp_host, ftp_username, ftp_password,
|
52
|
+
FtpSync.new(ftp_host, ftp_username, ftp_password, ftp_options)
|
47
53
|
}
|
48
54
|
|
49
55
|
# ## Deploy tasks
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stas SUȘCOV
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mina
|