dandelion 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/dandelion/backend/ftp.rb +3 -1
- data/lib/dandelion/backend/sftp.rb +5 -1
- data/lib/dandelion/version.rb +1 -1
- metadata +11 -11
data/README.md
CHANGED
@@ -8,7 +8,9 @@ module Dandelion
|
|
8
8
|
def initialize(config)
|
9
9
|
require 'net/ftp'
|
10
10
|
@config = config
|
11
|
-
@ftp = Net::FTP.
|
11
|
+
@ftp = Net::FTP.new
|
12
|
+
@ftp.connect(@config['host'], @config['port'] || Net::FTP::FTP_PORT)
|
13
|
+
@ftp.login(@config['username'], @config['password'])
|
12
14
|
@ftp.passive = @config['passive'].nil? ? true : to_b(@config['passive'])
|
13
15
|
@ftp.chdir(@config['path']) if @config['path']
|
14
16
|
end
|
@@ -10,7 +10,11 @@ module Dandelion
|
|
10
10
|
def initialize(config)
|
11
11
|
require 'net/sftp'
|
12
12
|
@config = config
|
13
|
-
|
13
|
+
options = {
|
14
|
+
:password => @config['password'],
|
15
|
+
:port => @config['port'] || Net::SSH::Transport::Session::DEFAULT_PORT,
|
16
|
+
}
|
17
|
+
@sftp = Net::SFTP.start(@config['host'], @config['username'], options)
|
14
18
|
end
|
15
19
|
|
16
20
|
def read(file)
|
data/lib/dandelion/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dandelion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-09-01 00:00:00.000000000 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: grit
|
17
|
-
requirement: &
|
17
|
+
requirement: &2156621120 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 2.4.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2156621120
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: mocha
|
28
|
-
requirement: &
|
28
|
+
requirement: &2156620600 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 0.9.12
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2156620600
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: net-sftp
|
39
|
-
requirement: &
|
39
|
+
requirement: &2156620140 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 2.0.5
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2156620140
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: aws-s3
|
50
|
-
requirement: &
|
50
|
+
requirement: &2156619660 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: 0.6.0
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2156619660
|
59
59
|
description: Incremental Git repository deployment
|
60
60
|
email:
|
61
61
|
- scottbnel@gmail.com
|
@@ -138,7 +138,7 @@ rubyforge_project:
|
|
138
138
|
rubygems_version: 1.6.2
|
139
139
|
signing_key:
|
140
140
|
specification_version: 3
|
141
|
-
summary: dandelion-0.3.
|
141
|
+
summary: dandelion-0.3.2
|
142
142
|
test_files:
|
143
143
|
- test/fixtures/diff
|
144
144
|
- test/fixtures/ls_tree
|