ftp_paradise 1.4.5 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +155 -28
- data/bin/{iftp → ftp_paradise_shell} +1 -1
- data/doc/README.gen +97 -15
- data/doc/todo/{TODO_FOR_FTP_PARADISE_PROJECT.md → todo_for_the_ftp_paradise_project.md} +11 -1
- data/ftp_paradise.gemspec +30 -39
- data/lib/ftp_paradise/base/base.rb +375 -0
- data/lib/ftp_paradise/colours/colours.rb +27 -27
- data/lib/ftp_paradise/colours/use_colours.rb +6 -1
- data/lib/ftp_paradise/configuration/configuration.rb +7 -4
- data/lib/ftp_paradise/connection/README.md +0 -0
- data/lib/ftp_paradise/connection/connection.rb +2782 -15
- data/lib/ftp_paradise/constants/constants.rb +91 -5
- data/lib/ftp_paradise/entry/entry.rb +42 -5
- data/lib/ftp_paradise/{connection → gui/gtk3/ftp_client}/constants.rb +33 -21
- data/lib/ftp_paradise/gui/{shared_code/ftp_paradise/ftp_paradise_module.rb → gtk3/ftp_client/ftp_client.rb} +658 -170
- data/lib/ftp_paradise/gui/gtk3/ftp_client/misc.rb +27 -0
- data/lib/ftp_paradise/project/project.rb +11 -15
- data/lib/ftp_paradise/requires/require_class_connection.rb +7 -0
- data/lib/ftp_paradise/requires/require_net_ftp.rb +7 -0
- data/lib/ftp_paradise/requires/require_the_ftp_paradise_project.rb +4 -3
- data/lib/ftp_paradise/requires/require_the_ftp_paradise_project_with_the_GUI_bindings.rb +1 -1
- data/lib/ftp_paradise/requires/require_the_toplevel_methods.rb +1 -0
- data/lib/ftp_paradise/{interactive_ftp → shell}/menu.rb +564 -449
- data/lib/ftp_paradise/shell/shell.rb +2321 -0
- data/lib/ftp_paradise/toplevel_methods/connect.rb +3 -0
- data/lib/ftp_paradise/toplevel_methods/dataset.rb +111 -0
- data/lib/ftp_paradise/toplevel_methods/file_related_actions.rb +4 -3
- data/lib/ftp_paradise/toplevel_methods/ftp_object.rb +6 -5
- data/lib/ftp_paradise/toplevel_methods/login_name.rb +6 -4
- data/lib/ftp_paradise/toplevel_methods/misc.rb +19 -0
- data/lib/ftp_paradise/toplevel_methods/opn.rb +1 -1
- data/lib/ftp_paradise/toplevel_methods/password.rb +4 -2
- data/lib/ftp_paradise/toplevel_methods/port.rb +4 -1
- data/lib/ftp_paradise/toplevel_methods/remote_url.rb +11 -5
- data/lib/ftp_paradise/toplevel_methods/upload_and_download.rb +1 -0
- data/lib/ftp_paradise/version/version.rb +6 -1
- data/lib/ftp_paradise/www/web_interface.cgi +1 -1
- data/lib/ftp_paradise/yaml/automatically_connect_on_startup_of_the_interactive_ftp_shell.yml +0 -0
- data/lib/ftp_paradise/yaml/debug.yml +0 -0
- data/lib/ftp_paradise/yaml/open_in_default_editor.yml +0 -0
- data/lib/ftp_paradise/yaml/show_full_names.yml +0 -0
- data/lib/ftp_paradise/yaml/use_colours.yml +0 -0
- data/test/testing_minimal_pure_net_ftp_example_to_connect.rb +13 -3
- metadata +52 -126
- data/lib/ftp_paradise/base/cliner.rb +0 -23
- data/lib/ftp_paradise/base/colours.rb +0 -83
- data/lib/ftp_paradise/base/prototype.rb +0 -171
- data/lib/ftp_paradise/base/reset.rb +0 -29
- data/lib/ftp_paradise/connection/data.rb +0 -164
- data/lib/ftp_paradise/connection/debug.rb +0 -78
- data/lib/ftp_paradise/connection/directory_handling.rb +0 -271
- data/lib/ftp_paradise/connection/do_login.rb +0 -108
- data/lib/ftp_paradise/connection/download.rb +0 -86
- data/lib/ftp_paradise/connection/file_handling.rb +0 -174
- data/lib/ftp_paradise/connection/ftp_object.rb +0 -21
- data/lib/ftp_paradise/connection/initialize.rb +0 -88
- data/lib/ftp_paradise/connection/initialize_a_new_net_ftp_object_with_this_url.rb +0 -20
- data/lib/ftp_paradise/connection/is_connected.rb +0 -46
- data/lib/ftp_paradise/connection/misc.rb +0 -474
- data/lib/ftp_paradise/connection/notify.rb +0 -71
- data/lib/ftp_paradise/connection/password.rb +0 -47
- data/lib/ftp_paradise/connection/port.rb +0 -33
- data/lib/ftp_paradise/connection/remote_pwd.rb +0 -72
- data/lib/ftp_paradise/connection/remote_url.rb +0 -164
- data/lib/ftp_paradise/connection/remove.rb +0 -143
- data/lib/ftp_paradise/connection/reset.rb +0 -78
- data/lib/ftp_paradise/connection/run.rb +0 -18
- data/lib/ftp_paradise/connection/set_array_available_hosts.rb +0 -27
- data/lib/ftp_paradise/connection/set_input.rb +0 -18
- data/lib/ftp_paradise/connection/show.rb +0 -153
- data/lib/ftp_paradise/connection/sync_ftp_object_onto_the_main_namespace.rb +0 -24
- data/lib/ftp_paradise/connection/transfer_mode.rb +0 -163
- data/lib/ftp_paradise/connection/upload.rb +0 -253
- data/lib/ftp_paradise/connection/use_default_dataset.rb +0 -40
- data/lib/ftp_paradise/connection/username.rb +0 -42
- data/lib/ftp_paradise/constants/misc.rb +0 -57
- data/lib/ftp_paradise/constants/namespace.rb +0 -14
- data/lib/ftp_paradise/constants/newline.rb +0 -14
- data/lib/ftp_paradise/constants/roebe.rb +0 -31
- data/lib/ftp_paradise/constants/roebe_ftp_constants.rb +0 -233
- data/lib/ftp_paradise/gui/gtk2/ftp_paradise.rb +0 -34
- data/lib/ftp_paradise/gui/gtk3/ftp_paradise.rb +0 -34
- data/lib/ftp_paradise/interactive_ftp/constants.rb +0 -103
- data/lib/ftp_paradise/interactive_ftp/directory_handling.rb +0 -216
- data/lib/ftp_paradise/interactive_ftp/help.rb +0 -50
- data/lib/ftp_paradise/interactive_ftp/initialize.rb +0 -27
- data/lib/ftp_paradise/interactive_ftp/interactive_ftp.rb +0 -998
- data/lib/ftp_paradise/interactive_ftp/main_loop.rb +0 -51
- data/lib/ftp_paradise/interactive_ftp/misc.rb +0 -208
- data/lib/ftp_paradise/interactive_ftp/mode.rb +0 -124
- data/lib/ftp_paradise/interactive_ftp/readline.rb +0 -113
- data/lib/ftp_paradise/interactive_ftp/remove.rb +0 -97
- data/lib/ftp_paradise/interactive_ftp/reset.rb +0 -90
- data/lib/ftp_paradise/interactive_ftp/run.rb +0 -22
- data/lib/ftp_paradise/interactive_ftp/show.rb +0 -184
- data/lib/ftp_paradise/interactive_ftp/upload.rb +0 -90
- data/lib/ftp_paradise/interactive_ftp/user_input.rb +0 -53
- data/lib/ftp_paradise/toplevel_methods/can_connect_to_remote_site.rb +0 -28
- data/lib/ftp_paradise/toplevel_methods/clear_user_dataset.rb +0 -28
- data/lib/ftp_paradise/toplevel_methods/data.rb +0 -31
- data/lib/ftp_paradise/toplevel_methods/determine_user_dataset_from_this_hash.rb +0 -37
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ftp_paradise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert A. Heiler
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cliner
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: gtk_paradise
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
97
|
description: "\nThis project aims to provide some convenience bindings and addon-classes\nfor
|
112
98
|
the Ruby-FTP base module.\n\nThe basic idea for this project was to make working
|
113
99
|
with FTP-related\ncode simpler, and more convenient. This is why the project focuses\nboth
|
@@ -120,15 +106,15 @@ description: "\nThis project aims to provide some convenience bindings and addon
|
|
120
106
|
cases for this project.\n\nFor more information about the ftp_paradise project,
|
121
107
|
please have a look\nat the online documentation at https://www.rubydoc.info/gems/ftp_paradise/\nor
|
122
108
|
within the doc/ subdirectory of this gem.\n\n"
|
123
|
-
email:
|
109
|
+
email: shevy@inbox.lt
|
124
110
|
executables:
|
125
|
-
- ftp_upload_binary
|
126
|
-
- remote_remove
|
127
|
-
- ftp_gtk3
|
128
|
-
- ftp_get
|
129
111
|
- create_remote_directory
|
130
|
-
-
|
112
|
+
- ftp_get
|
113
|
+
- ftp_gtk3
|
114
|
+
- ftp_paradise_shell
|
131
115
|
- ftp_upload
|
116
|
+
- ftp_upload_binary
|
117
|
+
- remote_remove
|
132
118
|
extensions: []
|
133
119
|
extra_rdoc_files: []
|
134
120
|
files:
|
@@ -136,90 +122,39 @@ files:
|
|
136
122
|
- bin/create_remote_directory
|
137
123
|
- bin/ftp_get
|
138
124
|
- bin/ftp_gtk3
|
125
|
+
- bin/ftp_paradise_shell
|
139
126
|
- bin/ftp_upload
|
140
127
|
- bin/ftp_upload_binary
|
141
|
-
- bin/iftp
|
142
128
|
- bin/remote_remove
|
143
129
|
- doc/README.gen
|
144
|
-
- doc/todo/
|
130
|
+
- doc/todo/todo_for_the_ftp_paradise_project.md
|
145
131
|
- ftp_paradise.gemspec
|
146
132
|
- lib/ftp_paradise.rb
|
147
|
-
- lib/ftp_paradise/base/
|
148
|
-
- lib/ftp_paradise/base/colours.rb
|
149
|
-
- lib/ftp_paradise/base/prototype.rb
|
150
|
-
- lib/ftp_paradise/base/reset.rb
|
133
|
+
- lib/ftp_paradise/base/base.rb
|
151
134
|
- lib/ftp_paradise/colours/colours.rb
|
152
135
|
- lib/ftp_paradise/colours/use_colours.rb
|
153
136
|
- lib/ftp_paradise/configuration/configuration.rb
|
154
137
|
- lib/ftp_paradise/connection/README.md
|
155
138
|
- lib/ftp_paradise/connection/connection.rb
|
156
|
-
- lib/ftp_paradise/connection/constants.rb
|
157
|
-
- lib/ftp_paradise/connection/data.rb
|
158
|
-
- lib/ftp_paradise/connection/debug.rb
|
159
|
-
- lib/ftp_paradise/connection/directory_handling.rb
|
160
|
-
- lib/ftp_paradise/connection/do_login.rb
|
161
|
-
- lib/ftp_paradise/connection/download.rb
|
162
|
-
- lib/ftp_paradise/connection/file_handling.rb
|
163
|
-
- lib/ftp_paradise/connection/ftp_object.rb
|
164
|
-
- lib/ftp_paradise/connection/initialize.rb
|
165
|
-
- lib/ftp_paradise/connection/initialize_a_new_net_ftp_object_with_this_url.rb
|
166
|
-
- lib/ftp_paradise/connection/is_connected.rb
|
167
|
-
- lib/ftp_paradise/connection/misc.rb
|
168
|
-
- lib/ftp_paradise/connection/notify.rb
|
169
|
-
- lib/ftp_paradise/connection/password.rb
|
170
|
-
- lib/ftp_paradise/connection/port.rb
|
171
|
-
- lib/ftp_paradise/connection/remote_pwd.rb
|
172
|
-
- lib/ftp_paradise/connection/remote_url.rb
|
173
|
-
- lib/ftp_paradise/connection/remove.rb
|
174
|
-
- lib/ftp_paradise/connection/reset.rb
|
175
|
-
- lib/ftp_paradise/connection/run.rb
|
176
|
-
- lib/ftp_paradise/connection/set_array_available_hosts.rb
|
177
|
-
- lib/ftp_paradise/connection/set_input.rb
|
178
|
-
- lib/ftp_paradise/connection/show.rb
|
179
|
-
- lib/ftp_paradise/connection/sync_ftp_object_onto_the_main_namespace.rb
|
180
|
-
- lib/ftp_paradise/connection/transfer_mode.rb
|
181
|
-
- lib/ftp_paradise/connection/upload.rb
|
182
|
-
- lib/ftp_paradise/connection/use_default_dataset.rb
|
183
|
-
- lib/ftp_paradise/connection/username.rb
|
184
139
|
- lib/ftp_paradise/constants/constants.rb
|
185
|
-
- lib/ftp_paradise/constants/misc.rb
|
186
|
-
- lib/ftp_paradise/constants/namespace.rb
|
187
|
-
- lib/ftp_paradise/constants/newline.rb
|
188
|
-
- lib/ftp_paradise/constants/roebe.rb
|
189
|
-
- lib/ftp_paradise/constants/roebe_ftp_constants.rb
|
190
140
|
- lib/ftp_paradise/entry/entry.rb
|
191
|
-
- lib/ftp_paradise/gui/
|
192
|
-
- lib/ftp_paradise/gui/gtk3/
|
193
|
-
- lib/ftp_paradise/gui/
|
141
|
+
- lib/ftp_paradise/gui/gtk3/ftp_client/constants.rb
|
142
|
+
- lib/ftp_paradise/gui/gtk3/ftp_client/ftp_client.rb
|
143
|
+
- lib/ftp_paradise/gui/gtk3/ftp_client/misc.rb
|
194
144
|
- lib/ftp_paradise/images/connection_image.png
|
195
|
-
- lib/ftp_paradise/interactive_ftp/constants.rb
|
196
|
-
- lib/ftp_paradise/interactive_ftp/directory_handling.rb
|
197
|
-
- lib/ftp_paradise/interactive_ftp/help.rb
|
198
|
-
- lib/ftp_paradise/interactive_ftp/initialize.rb
|
199
|
-
- lib/ftp_paradise/interactive_ftp/interactive_ftp.rb
|
200
|
-
- lib/ftp_paradise/interactive_ftp/main_loop.rb
|
201
|
-
- lib/ftp_paradise/interactive_ftp/menu.rb
|
202
|
-
- lib/ftp_paradise/interactive_ftp/misc.rb
|
203
|
-
- lib/ftp_paradise/interactive_ftp/mode.rb
|
204
|
-
- lib/ftp_paradise/interactive_ftp/readline.rb
|
205
|
-
- lib/ftp_paradise/interactive_ftp/remove.rb
|
206
|
-
- lib/ftp_paradise/interactive_ftp/reset.rb
|
207
|
-
- lib/ftp_paradise/interactive_ftp/run.rb
|
208
|
-
- lib/ftp_paradise/interactive_ftp/show.rb
|
209
|
-
- lib/ftp_paradise/interactive_ftp/upload.rb
|
210
|
-
- lib/ftp_paradise/interactive_ftp/user_input.rb
|
211
145
|
- lib/ftp_paradise/project/project.rb
|
212
146
|
- lib/ftp_paradise/requires/common_basic_requires.rb
|
213
147
|
- lib/ftp_paradise/requires/common_external_requires.rb
|
148
|
+
- lib/ftp_paradise/requires/require_class_connection.rb
|
149
|
+
- lib/ftp_paradise/requires/require_net_ftp.rb
|
214
150
|
- lib/ftp_paradise/requires/require_the_constants.rb
|
215
151
|
- lib/ftp_paradise/requires/require_the_ftp_paradise_project.rb
|
216
152
|
- lib/ftp_paradise/requires/require_the_ftp_paradise_project_with_the_GUI_bindings.rb
|
217
153
|
- lib/ftp_paradise/requires/require_the_toplevel_methods.rb
|
218
|
-
- lib/ftp_paradise/
|
219
|
-
- lib/ftp_paradise/
|
154
|
+
- lib/ftp_paradise/shell/menu.rb
|
155
|
+
- lib/ftp_paradise/shell/shell.rb
|
220
156
|
- lib/ftp_paradise/toplevel_methods/connect.rb
|
221
|
-
- lib/ftp_paradise/toplevel_methods/
|
222
|
-
- lib/ftp_paradise/toplevel_methods/determine_user_dataset_from_this_hash.rb
|
157
|
+
- lib/ftp_paradise/toplevel_methods/dataset.rb
|
223
158
|
- lib/ftp_paradise/toplevel_methods/directory_related_actions.rb
|
224
159
|
- lib/ftp_paradise/toplevel_methods/e.rb
|
225
160
|
- lib/ftp_paradise/toplevel_methods/file_related_actions.rb
|
@@ -249,60 +184,50 @@ files:
|
|
249
184
|
- test/testing_minimal_pure_net_ftp_example_to_connect.rb
|
250
185
|
- test/testing_the_ftp_connection_component.rb
|
251
186
|
- test/testing_upload_a_local_directory.rb
|
252
|
-
homepage:
|
187
|
+
homepage: https://rubygems.org/gems/ftp_paradise
|
253
188
|
licenses:
|
254
|
-
-
|
189
|
+
- MIT
|
255
190
|
metadata: {}
|
256
191
|
post_install_message: |2+
|
257
192
|
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
be downloaded here:
|
263
|
-
|
264
|
-
wget http://shevegen.bplaced.net/configuration-1.0.21.gem
|
265
|
-
|
266
|
-
Please install only the above configuration-gem variant, not the
|
267
|
-
other gem called "configuration". (You can extract the gem and
|
268
|
-
look at it before you install it of course. Its sole purpose
|
269
|
-
is to read in a bunch of .yml yaml files to provide a proper
|
270
|
-
base configuration for a project.)
|
193
|
+
The interactive file, which can be started by typing "iftp",
|
194
|
+
requires a library called configuration. This is part of the
|
195
|
+
gem called "Roebe", so you may have to install this gem
|
196
|
+
first:
|
271
197
|
|
272
|
-
|
273
|
-
found at:
|
198
|
+
gem install roebe
|
274
199
|
|
275
|
-
|
200
|
+
If you wish to start the interactive FTP, the file can be
|
201
|
+
found at:
|
276
202
|
|
277
|
-
|
203
|
+
bin/iftp
|
278
204
|
|
279
|
-
|
205
|
+
And should on most Linux systems end up on:
|
280
206
|
|
281
|
-
|
282
|
-
your home directory, then it will be at another location;
|
283
|
-
rubygems should take care of this).
|
207
|
+
/usr/bin/iftp
|
284
208
|
|
285
|
-
|
286
|
-
|
287
|
-
|
209
|
+
if the --prefix is at /usr (obviously, if you install into
|
210
|
+
your home directory, then it will be at another location;
|
211
|
+
rubygems should take care of this).
|
288
212
|
|
289
|
-
|
290
|
-
|
213
|
+
So just typing "iftp" should suffice to start the interactive FTP
|
214
|
+
component, but keep in mind that you need to download the
|
215
|
+
configuration gem listed above first.
|
291
216
|
|
292
|
-
|
217
|
+
You can disable the colour-section of the interactive FTP
|
218
|
+
by issuing:
|
293
219
|
|
294
|
-
|
295
|
-
called:
|
220
|
+
iftp --disable-colours
|
296
221
|
|
297
|
-
|
222
|
+
You can also batch-upload some scripts through the command
|
223
|
+
called:
|
298
224
|
|
299
|
-
|
300
|
-
to use it.
|
225
|
+
ftp_upload
|
301
226
|
|
302
|
-
|
303
|
-
|
227
|
+
ftp_upload --help should give you some information on how
|
228
|
+
to use it.
|
304
229
|
|
305
|
-
|
230
|
+
Thank you and have fun.
|
306
231
|
|
307
232
|
rdoc_options: []
|
308
233
|
require_paths:
|
@@ -311,15 +236,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
311
236
|
requirements:
|
312
237
|
- - ">="
|
313
238
|
- !ruby/object:Gem::Version
|
314
|
-
version: 2.
|
239
|
+
version: 3.2.2
|
315
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
241
|
requirements:
|
317
242
|
- - ">="
|
318
243
|
- !ruby/object:Gem::Version
|
319
|
-
version: 3.
|
244
|
+
version: 3.4.13
|
320
245
|
requirements: []
|
321
|
-
rubygems_version: 3.
|
322
|
-
signing_key:
|
246
|
+
rubygems_version: 3.4.13
|
247
|
+
signing_key:
|
323
248
|
specification_version: 4
|
324
249
|
summary: This project aims to provide some convenience bindings and addon-classes
|
325
250
|
for the Ruby-FTP base module. The basic idea for this project was to make working
|
@@ -334,3 +259,4 @@ summary: This project aims to provide some convenience bindings and addon-classe
|
|
334
259
|
at the online documentation at https://www.rubydoc.info/gems/ftp_paradise/ or within
|
335
260
|
the doc/ subdirectory of this gem.
|
336
261
|
test_files: []
|
262
|
+
...
|
@@ -1,23 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby -w
|
2
|
-
# Encoding: UTF-8
|
3
|
-
# frozen_string_literal: true
|
4
|
-
# =========================================================================== #
|
5
|
-
# require 'ftp_paradise/base/cliner.rb'
|
6
|
-
# =========================================================================== #
|
7
|
-
module FtpParadise
|
8
|
-
|
9
|
-
module Base
|
10
|
-
|
11
|
-
require 'ftp_paradise/requires/common_external_requires.rb'
|
12
|
-
# =========================================================================== #
|
13
|
-
# === cliner
|
14
|
-
# =========================================================================== #
|
15
|
-
def cliner
|
16
|
-
Cliner.cliner
|
17
|
-
if block_given?
|
18
|
-
yield
|
19
|
-
Cliner.cliner
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
end; end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby -w
|
2
|
-
# Encoding: UTF-8
|
3
|
-
# frozen_string_literal: true
|
4
|
-
# =========================================================================== #
|
5
|
-
# require 'ftp_paradise/base/colours.rb'
|
6
|
-
# =========================================================================== #
|
7
|
-
module FtpParadise
|
8
|
-
|
9
|
-
module Base
|
10
|
-
|
11
|
-
require 'ftp_paradise/colours/colours.rb'
|
12
|
-
|
13
|
-
# ========================================================================= #
|
14
|
-
# === swarn
|
15
|
-
# ========================================================================= #
|
16
|
-
def swarn(i = '')
|
17
|
-
return ::FtpParadise.swarn(i) if use_colours?
|
18
|
-
i
|
19
|
-
end
|
20
|
-
|
21
|
-
# ========================================================================= #
|
22
|
-
# === sfile
|
23
|
-
# ========================================================================= #
|
24
|
-
def sfile(i = '')
|
25
|
-
return ::FtpParadise.sfile(i) if use_colours?
|
26
|
-
i
|
27
|
-
end
|
28
|
-
|
29
|
-
# ========================================================================= #
|
30
|
-
# === sfancy
|
31
|
-
# ========================================================================= #
|
32
|
-
def sfancy(i = '')
|
33
|
-
return ::FtpParadise.sfancy(i) if use_colours?
|
34
|
-
i
|
35
|
-
end
|
36
|
-
|
37
|
-
# ========================================================================= #
|
38
|
-
# === sdir
|
39
|
-
# ========================================================================= #
|
40
|
-
def sdir(i = '')
|
41
|
-
return ::FtpParadise.sdir(i) if use_colours?
|
42
|
-
i
|
43
|
-
end
|
44
|
-
|
45
|
-
# ========================================================================= #
|
46
|
-
# === simp
|
47
|
-
# ========================================================================= #
|
48
|
-
def simp(i = '')
|
49
|
-
return ::FtpParadise.simp(i) if use_colours?
|
50
|
-
i
|
51
|
-
end; alias simportant simp # === simportant
|
52
|
-
|
53
|
-
# ========================================================================= #
|
54
|
-
# === orange
|
55
|
-
# ========================================================================= #
|
56
|
-
def orange(i = '')
|
57
|
-
return ::Colours.orange(i) if use_colours?
|
58
|
-
i
|
59
|
-
end
|
60
|
-
|
61
|
-
# ========================================================================= #
|
62
|
-
# === sandybrown
|
63
|
-
# ========================================================================= #
|
64
|
-
def sandybrown(i = '')
|
65
|
-
return ::Colours.sandybrown(i) if use_colours?
|
66
|
-
i
|
67
|
-
end
|
68
|
-
|
69
|
-
# ========================================================================= #
|
70
|
-
# === royalblue
|
71
|
-
# ========================================================================= #
|
72
|
-
def royalblue(i = '')
|
73
|
-
FtpParadise.royalblue(i)
|
74
|
-
end
|
75
|
-
|
76
|
-
# ========================================================================= #
|
77
|
-
# === slateblue
|
78
|
-
# ========================================================================= #
|
79
|
-
def slateblue(i = '')
|
80
|
-
FtpParadise.slateblue(i)
|
81
|
-
end
|
82
|
-
|
83
|
-
end; end
|
@@ -1,171 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby -w
|
2
|
-
# Encoding: UTF-8
|
3
|
-
# frozen_string_literal: true
|
4
|
-
# =========================================================================== #
|
5
|
-
# require 'ftp_paradise/base/prototype.rb'
|
6
|
-
# include ::FtpParadise::Base
|
7
|
-
# =========================================================================== #
|
8
|
-
require 'ftp_paradise/constants/constants.rb'
|
9
|
-
# =========================================================================== #
|
10
|
-
# The next .rb file will pull in "cliner":
|
11
|
-
# =========================================================================== #
|
12
|
-
require 'ftp_paradise/requires/common_external_requires.rb'
|
13
|
-
|
14
|
-
module FtpParadise
|
15
|
-
|
16
|
-
module Base
|
17
|
-
|
18
|
-
# ========================================================================= #
|
19
|
-
# The various project's toplevel_methods files are required next:
|
20
|
-
# ========================================================================= #
|
21
|
-
require 'ftp_paradise/requires/require_the_toplevel_methods.rb'
|
22
|
-
|
23
|
-
# =========================================================================== #
|
24
|
-
# Colour support comes next:
|
25
|
-
# =========================================================================== #
|
26
|
-
require 'ftp_paradise/base/colours.rb'
|
27
|
-
require 'ftp_paradise/base/cliner.rb'
|
28
|
-
require 'ftp_paradise/base/reset.rb'
|
29
|
-
|
30
|
-
# ========================================================================= #
|
31
|
-
# === N
|
32
|
-
# ========================================================================= #
|
33
|
-
N = "\n"
|
34
|
-
|
35
|
-
# ========================================================================= #
|
36
|
-
# === be_verbose?
|
37
|
-
# ========================================================================= #
|
38
|
-
def be_verbose?
|
39
|
-
@internal_hash[:be_verbose]
|
40
|
-
end
|
41
|
-
|
42
|
-
# ========================================================================= #
|
43
|
-
# === be_quiet
|
44
|
-
# ========================================================================= #
|
45
|
-
def be_quiet
|
46
|
-
@internal_hash[:be_verbose] = false
|
47
|
-
end; alias be_silent be_quiet # === be_silent
|
48
|
-
|
49
|
-
# ========================================================================= #
|
50
|
-
# === set_be_verbose
|
51
|
-
#
|
52
|
-
# Set the verbosity mode.
|
53
|
-
# ========================================================================= #
|
54
|
-
def set_be_verbose(i = true)
|
55
|
-
@internal_hash[:be_verbose] = i
|
56
|
-
end; alias be_verbose= set_be_verbose # === be_verbose=
|
57
|
-
alias be_verbose set_be_verbose # === be_verbose
|
58
|
-
|
59
|
-
# ========================================================================= #
|
60
|
-
# === opnn
|
61
|
-
# ========================================================================= #
|
62
|
-
def opnn(i = NAMESPACE)
|
63
|
-
if i.is_a? String
|
64
|
-
i = { namespace: i }
|
65
|
-
end
|
66
|
-
FtpParadise.opnn(i)
|
67
|
-
end
|
68
|
-
|
69
|
-
# ========================================================================= #
|
70
|
-
# === rds
|
71
|
-
# ========================================================================= #
|
72
|
-
def rds(i = '')
|
73
|
-
FtpParadise.rds(i)
|
74
|
-
end
|
75
|
-
|
76
|
-
# ========================================================================= #
|
77
|
-
# === touch
|
78
|
-
# ========================================================================= #
|
79
|
-
def touch(i = '')
|
80
|
-
FtpParadise.touch(i)
|
81
|
-
end
|
82
|
-
|
83
|
-
# ========================================================================= #
|
84
|
-
# === get_files
|
85
|
-
# ========================================================================= #
|
86
|
-
def get_files(i = '')
|
87
|
-
FtpParadise.get_files(i)
|
88
|
-
end
|
89
|
-
|
90
|
-
# ========================================================================= #
|
91
|
-
# === return_all_local_entries
|
92
|
-
#
|
93
|
-
# This will return an array.
|
94
|
-
# ========================================================================= #
|
95
|
-
def return_all_local_entries(
|
96
|
-
from_where = Dir.pwd
|
97
|
-
)
|
98
|
-
Dir["#{from_where}/**/**"]
|
99
|
-
end; alias return_directory_content return_all_local_entries # === return_directory_content
|
100
|
-
|
101
|
-
# ========================================================================= #
|
102
|
-
# === e
|
103
|
-
# ========================================================================= #
|
104
|
-
def e(i = '')
|
105
|
-
FtpParadise.e(i)
|
106
|
-
end
|
107
|
-
|
108
|
-
# ========================================================================= #
|
109
|
-
# === use_colours?
|
110
|
-
# ========================================================================= #
|
111
|
-
def use_colours?
|
112
|
-
@internal_hash[:use_colours]
|
113
|
-
end
|
114
|
-
|
115
|
-
# ========================================================================= #
|
116
|
-
# === parens (parens tag)
|
117
|
-
# ========================================================================= #
|
118
|
-
def parens(i)
|
119
|
-
padding_to_use = ' ' * 5
|
120
|
-
return sfancy("#{padding_to_use}(#{i}) ")
|
121
|
-
end
|
122
|
-
|
123
|
-
# ========================================================================= #
|
124
|
-
# === pound_token
|
125
|
-
#
|
126
|
-
# Simply return a colourized pound token next, but only if we use colours.
|
127
|
-
# ========================================================================= #
|
128
|
-
def pound_token
|
129
|
-
_ = '# '
|
130
|
-
if use_colours?
|
131
|
-
return "#{Colours::CYAN}#{_}#{Colours::WHITE}"
|
132
|
-
end
|
133
|
-
_
|
134
|
-
end
|
135
|
-
|
136
|
-
# ========================================================================= #
|
137
|
-
# === on_roebe?
|
138
|
-
# ========================================================================= #
|
139
|
-
def on_roebe?
|
140
|
-
ENV['IS_ROEBE'].to_s == '1'
|
141
|
-
end; alias are_we_on_roebe? on_roebe? # === are_we_on_roebe?
|
142
|
-
|
143
|
-
# ========================================================================= #
|
144
|
-
# === return_time
|
145
|
-
# ========================================================================= #
|
146
|
-
def return_time
|
147
|
-
FtpParadise.return_time
|
148
|
-
end
|
149
|
-
|
150
|
-
# ========================================================================= #
|
151
|
-
# === do_use_colours
|
152
|
-
# ========================================================================= #
|
153
|
-
def do_use_colours
|
154
|
-
@internal_hash[:use_colours] = true
|
155
|
-
end
|
156
|
-
|
157
|
-
# ========================================================================= #
|
158
|
-
# === cd
|
159
|
-
# ========================================================================= #
|
160
|
-
def cd(i)
|
161
|
-
Dir.chdir(i) if File.directory? i
|
162
|
-
end; alias change_local_directory cd # === change_local_directory
|
163
|
-
|
164
|
-
# ========================================================================= #
|
165
|
-
# === return_pwd
|
166
|
-
# ========================================================================= #
|
167
|
-
def return_pwd
|
168
|
-
::FtpParadise.return_pwd.to_s
|
169
|
-
end; alias return_current_directory return_pwd # === return_current_directory
|
170
|
-
|
171
|
-
end; end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby -w
|
2
|
-
# Encoding: UTF-8
|
3
|
-
# frozen_string_literal: true
|
4
|
-
# =========================================================================== #
|
5
|
-
# require 'ftp_paradise/base/reset.rb'
|
6
|
-
# =========================================================================== #
|
7
|
-
module FtpParadise
|
8
|
-
|
9
|
-
module Base
|
10
|
-
|
11
|
-
# ========================================================================= #
|
12
|
-
# === reset
|
13
|
-
# ========================================================================= #
|
14
|
-
def reset
|
15
|
-
# ======================================================================= #
|
16
|
-
# === @internal_hash
|
17
|
-
# ======================================================================= #
|
18
|
-
@internal_hash = {}
|
19
|
-
# ======================================================================= #
|
20
|
-
# === :use_colours
|
21
|
-
# ======================================================================= #
|
22
|
-
@internal_hash[:use_colours] = true
|
23
|
-
# ======================================================================= #
|
24
|
-
# === :be_verbose
|
25
|
-
# ======================================================================= #
|
26
|
-
@internal_hash[:be_verbose] = true
|
27
|
-
end
|
28
|
-
|
29
|
-
end; end
|