wormholio 0.0.2.6 → 0.0.2.7
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 +8 -8
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +124 -1
- data/Rakefile +0 -0
- data/lib/wormholio.rb +0 -0
- data/lib/wormholio/ftp.rb +0 -0
- data/lib/wormholio/ftps.rb +0 -0
- data/lib/wormholio/s3_client.rb +0 -0
- data/lib/wormholio/scp.rb +0 -0
- data/lib/wormholio/sftp.rb +0 -0
- data/lib/wormholio/version.rb +1 -1
- data/wormholio.gemspec +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTZlMmIyZTI0YjA1MDA0NWRhNTk4MWUyOGM1NmFiNjEwZDlmYjIxMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDRjNjRiNTg1MGE1YWE4MDBiNjU0OTlmNDBlOGRlMzEwODRjMTQwMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTc5NzFlYWE4NGU5ODk2NzJmZWFlOWY0ODZmNDVjNTFmOGY5YjA3NWRlNmY2
|
10
|
+
NTA3M2NlOGFjYjg2OWI1ZGZiNWI1ZjM2MDVmYThjMjU3NzZkMzY3NzM0Yjk5
|
11
|
+
OTZjNjBjZjM1N2RmMDdkMGQ1NjYyODMwYjRjM2I1ZWUzM2M4YWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmNlYzdjNGYxZmEyNTE4MGViZjQ3MWFhZGMwOWZiNTRjNzY1YWZiMGFkMmU0
|
14
|
+
MzY4Y2E2MWE2YjdmYmIxZGQ0NDE2ZDEyNTRkYTIzZTk0ODUzY2MxYzUyMDMx
|
15
|
+
ZTNlYzFkZmJjY2E5ZTI5YTQ1NGQ5OWFlNzYzZmQyNmZmNDM4ZTA=
|
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -22,7 +22,130 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
### FTP:
|
26
|
+
- **Note:** dir_path should look like "/folder/"; be sure to prepend/append "/"
|
27
|
+
|
28
|
+
```
|
29
|
+
hash = {
|
30
|
+
'host':'www.domain.com', # domain to connect to
|
31
|
+
'username':'steven', # username
|
32
|
+
'password':'Steve1', # user's password
|
33
|
+
'dir_path':'/home/', # directory path on server
|
34
|
+
'port':'21' # will default to 21 if not specified
|
35
|
+
}
|
36
|
+
options = {"debug"=>true} # If debug set to true, will return errors for testing
|
37
|
+
|
38
|
+
file = "#{Rails.root}/file.json" # Path/name of file to upload
|
39
|
+
|
40
|
+
# To upload
|
41
|
+
Wormholio::FTP.upload( hash, file, options )
|
42
|
+
|
43
|
+
local_path = "#{Rails.root}/" # Where to download file to
|
44
|
+
filename = "file.json" # Name of file
|
45
|
+
|
46
|
+
# To download
|
47
|
+
Wormholio::FTP.download( hash, local_path, filename, options )
|
48
|
+
```
|
49
|
+
|
50
|
+
### FTPS:
|
51
|
+
- **Note:** dir_path should look like "/folder/"; be sure to prepend/append "/"
|
52
|
+
|
53
|
+
```
|
54
|
+
hash = {
|
55
|
+
'host':'www.domain.com', # domain to connect to
|
56
|
+
'username':'steven', # username
|
57
|
+
'password':'Steve1', # user's password
|
58
|
+
'dir_path':'/home/', # directory path on server
|
59
|
+
'port':'21' # will default to 21 if not specified
|
60
|
+
}
|
61
|
+
options = {"debug"=>true} # If debug set to true, will return errors for testing
|
62
|
+
|
63
|
+
file = "#{Rails.root}/file.json" # Path/name of file to upload
|
64
|
+
|
65
|
+
# To upload
|
66
|
+
Wormholio::FTPS.upload( hash, file, options )
|
67
|
+
|
68
|
+
local_path = "#{Rails.root}/" # Where to download file to
|
69
|
+
filename = "file.json" # Name of file
|
70
|
+
|
71
|
+
# To download
|
72
|
+
Wormholio::FTPS.download( hash, local_path, filename, options )
|
73
|
+
```
|
74
|
+
|
75
|
+
### SFTP:
|
76
|
+
- **Note:** dir_path should look like "/folder/"; be sure to prepend/append "/"
|
77
|
+
|
78
|
+
```
|
79
|
+
hash = {
|
80
|
+
'host':'www.domain.com', # domain to connect to
|
81
|
+
'username':'steven', # username
|
82
|
+
'password':'Steve1', # user's password
|
83
|
+
'dir_path':'/home/', # directory path on server
|
84
|
+
'port':'21' # will default to 21 if not specified
|
85
|
+
}
|
86
|
+
options = {"debug"=>true} # If debug set to true, will return errors for testing
|
87
|
+
|
88
|
+
file = "#{Rails.root}/file.json" # Path/name of file to upload
|
89
|
+
|
90
|
+
# To upload
|
91
|
+
Wormholio::SFTP.upload( hash, file, options )
|
92
|
+
|
93
|
+
local_path = "#{Rails.root}/" # Where to download file to
|
94
|
+
filename = "file.json" # Name of file
|
95
|
+
|
96
|
+
# To download
|
97
|
+
Wormholio::SFTP.download( hash, local_path, filename, options )
|
98
|
+
```
|
99
|
+
|
100
|
+
### SCP:
|
101
|
+
- **Note:** dir_path should look like "/folder/"; be sure to prepend/append "/"
|
102
|
+
|
103
|
+
```
|
104
|
+
hash = {
|
105
|
+
'host':'www.domain.com', # domain to connect to
|
106
|
+
'username':'steven', # username
|
107
|
+
'password':'Steve1', # user's password
|
108
|
+
'dir_path':'/home/', # directory path on server
|
109
|
+
'port':'21' # will default to 21 if not specified
|
110
|
+
}
|
111
|
+
options = {"debug"=>true} # If debug set to true, will return errors for testing
|
112
|
+
|
113
|
+
file = "#{Rails.root}/file.json" # Path/name of file to upload
|
114
|
+
|
115
|
+
# To upload
|
116
|
+
Wormholio::SCP.upload( hash, file, options )
|
117
|
+
|
118
|
+
local_path = "#{Rails.root}/" # Where to download file to
|
119
|
+
filename = "file.json" # Name of file
|
120
|
+
|
121
|
+
# To download
|
122
|
+
Wormholio::SCP.download( hash, local_path, filename, options )
|
123
|
+
```
|
124
|
+
|
125
|
+
### S3:
|
126
|
+
- **Note:** dir_path should look like "folder/"; be sure to append "/" to this
|
127
|
+
|
128
|
+
```
|
129
|
+
hash = {
|
130
|
+
'bucket_name':'bucket-name', # domain to connect to
|
131
|
+
'access_key_id':'big-ole-access-key', # username
|
132
|
+
'secret_access_key':'big-ole-secret', # user's password
|
133
|
+
'dir_path':'folder/' # directory path on server
|
134
|
+
}
|
135
|
+
|
136
|
+
local_path = "#{Rails.root}/" # Path to file we want to upload
|
137
|
+
filename = "file.json" # Name of file to upload
|
138
|
+
|
139
|
+
# To upload
|
140
|
+
Wormholio::S3.upload( hash, local_path, filename )
|
141
|
+
|
142
|
+
local_path = "#{Rails.root}/" # Path to download file to
|
143
|
+
filename = "file.json" # Name we want download file to have
|
144
|
+
|
145
|
+
# To download
|
146
|
+
Wormholio::S3.download( hash, local_path, filename )
|
147
|
+
```
|
148
|
+
|
26
149
|
|
27
150
|
## Contributing
|
28
151
|
|
data/Rakefile
CHANGED
File without changes
|
data/lib/wormholio.rb
CHANGED
File without changes
|
data/lib/wormholio/ftp.rb
CHANGED
File without changes
|
data/lib/wormholio/ftps.rb
CHANGED
File without changes
|
data/lib/wormholio/s3_client.rb
CHANGED
File without changes
|
data/lib/wormholio/scp.rb
CHANGED
File without changes
|
data/lib/wormholio/sftp.rb
CHANGED
File without changes
|
data/lib/wormholio/version.rb
CHANGED
data/wormholio.gemspec
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wormholio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Reynolds
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: double-bag-ftps
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.4.
|
139
|
+
rubygems_version: 2.4.5
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: (under development) Simple Upload/Download functionality for FTP, FTPS, SFTP,
|