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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/lib/mina-ftp.rb +1 -1
  4. data/lib/mina/ftp.rb +7 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c4e1f124a2f947ff40dba7a20de6e75a2719534
4
- data.tar.gz: c8be756c382628ce5e86ea67b3f3e41a804d5932
3
+ metadata.gz: ef93c8454066c53542a341f04a162b4662757686
4
+ data.tar.gz: c1f393f799081f9e912947a95cadec592085c5f0
5
5
  SHA512:
6
- metadata.gz: 909420a84450c922fc7fa10a1a6352fcd0e7cbcbe8cf4017aa3952b40a9c2e16aa302af336d0d63e34296ea8351cb39cbfe35a8c6a5838eab6900c568aa68fdd
7
- data.tar.gz: 4b33e436937a9862f915fd36b37202eecfebf6b74b80e846e49b8be82429694d643c8c2bb83fe756fa9064f03bc6b7f64f67a30f5205a18793e8f1b33e818ce7
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:
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Ftp
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -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, :verbose => verbose_mode?)
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.1
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-07-16 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina