wormholio 0.0.2.6 → 0.0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTA3MDFhYWNmZGMzZGMyODdjZTQ5ZGE4ZTdjMTcxMTUxZTkxZmFjOA==
4
+ ZTZlMmIyZTI0YjA1MDA0NWRhNTk4MWUyOGM1NmFiNjEwZDlmYjIxMQ==
5
5
  data.tar.gz: !binary |-
6
- NjI0YWE4MGEwY2YwMWFlY2VhZmU0ZTI1MDU0NDkwZDNjZjFmZmNjYQ==
6
+ NDRjNjRiNTg1MGE1YWE4MDBiNjU0OTlmNDBlOGRlMzEwODRjMTQwMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODE4NTEyMmM4ODM2ZmVmZjBhZDQxZDE1ZGM5MDY0ZDk0ZGEyNmZiYzhlOTE4
10
- N2YyYmZiZjg1NjdkODMyY2JkZGEzOTA0NzNiNzAyYmYwNThiYzkxZjgxNzc3
11
- YWYxMTlmODMwYTA2MmQyYzMyOTAwMGQxZTRjODNmNGU0NThlZDI=
9
+ NTc5NzFlYWE4NGU5ODk2NzJmZWFlOWY0ODZmNDVjNTFmOGY5YjA3NWRlNmY2
10
+ NTA3M2NlOGFjYjg2OWI1ZGZiNWI1ZjM2MDVmYThjMjU3NzZkMzY3NzM0Yjk5
11
+ OTZjNjBjZjM1N2RmMDdkMGQ1NjYyODMwYjRjM2I1ZWUzM2M4YWY=
12
12
  data.tar.gz: !binary |-
13
- ZmNjODc1NThlMjk5YTdkNzM0NTkyZGUyNGNhYjJlNTE0NDE1NmFjZGQ3Mzdm
14
- MzAzYThkMzQ4NjhhMDlmNmY0ZDk0ZjFkOTI1ZGYyY2MxMDcwODYxMWI1ODhk
15
- OGMyMzlkMTE4YTc0ZTI0YTcyODhhOTI1NzZlN2EzMmM2YTFiNWY=
13
+ NmNlYzdjNGYxZmEyNTE4MGViZjQ3MWFhZGMwOWZiNTRjNzY1YWZiMGFkMmU0
14
+ MzY4Y2E2MWE2YjdmYmIxZGQ0NDE2ZDEyNTRkYTIzZTk0ODUzY2MxYzUyMDMx
15
+ ZTNlYzFkZmJjY2E5ZTI5YTQ1NGQ5OWFlNzYzZmQyNmZmNDM4ZTA=
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
File without changes
data/README.md CHANGED
@@ -22,7 +22,130 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Wormholio
2
- VERSION = "0.0.2.6"
2
+ VERSION = "0.0.2.7"
3
3
  end
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.6
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: 2014-12-25 00:00:00.000000000 Z
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.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,