rwdshell 0.98 → 0.99
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.
- data/Readme.txt +6 -0
- data/code/01rwdcore/01rwdcore.rb +16 -16
- data/code/01rwdcore/jumplinkcommand.rb +30 -0
- data/code/01rwdcore/openhelpwindow.rb +26 -26
- data/code/01rwdcore/returntomain.rb +8 -8
- data/code/01rwdcore/rwdtinkerversion.rb +12 -13
- data/code/01rwdcore/rwdwindowreturn.rb +3 -5
- data/code/01rwdcore/test_cases.rb +79 -90
- data/code/01rwdcore/test_harness.rb +7 -10
- data/code/01rwdcore/uploadreturns.rb +60 -60
- data/code/superant.com.rwdshell/clearrubyscreendisplay.rb +7 -0
- data/code/superant.com.rwdshell/helptexthashshell.rb +8 -1
- data/code/superant.com.rwdshell/jumplinkupdate.rb +9 -0
- data/code/superant.com.rwdshell/loadrubyscriptrecord.rb +20 -0
- data/code/superant.com.rwdshell/openhelpwindowshell.rb +6 -0
- data/code/superant.com.rwdshell/runrwdshellwindow.rb +4 -1
- data/code/superant.com.rwdshell/saverubyrecord.rb +19 -0
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +15 -21
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
- data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
- data/configuration/language.dist +1 -1
- data/configuration/rwdapplicationidentity.dist +1 -1
- data/configuration/rwdshell.dist +2 -2
- data/configuration/rwdtinker.dist +3 -3
- data/configuration/tinkerwin2variables.dist +1 -1
- data/gui/frontwindow0/superant.com.shellscripts/3editscripts.rwd +1 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
- data/gui/helpaboutinstalled/superant.com.shellhelpabout/3copyright.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +2 -2
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/94rwddiagnostics.rwd +0 -17
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/98jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
- data/init.rb +228 -228
- data/rwd_files/HowTo_Shell.txt +6 -0
- data/rwd_files/HowTo_Tinker.txt +6 -0
- data/rwdconfig.dist +1 -1
- data/scripts/test02.rb +1 -1
- data/tests/makedist.rb +26 -12
- metadata +10 -8
- data/code/superant.com.rwdshell/runrwdshellmenu1.rb +0 -57
- data/gui/frontwindowselections/superant.com.rwdshellselectiontab/rwdshellbackwindowselectiontab.rwd +0 -12
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/v9returntab.rwd +0 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
data/Readme.txt
CHANGED
@@ -193,6 +193,12 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
193
193
|
Thanks, Steven Gibson
|
194
194
|
|
195
195
|
== Changelog
|
196
|
+
Version 0.99
|
197
|
+
added help to some shell tabs
|
198
|
+
updated for rwdtinker 1.62 - improve distro release script
|
199
|
+
changed selection screen to use new hash method
|
200
|
+
updated diagnostic tab
|
201
|
+
|
196
202
|
version 0.98
|
197
203
|
updated for rwdtinker version 1.61
|
198
204
|
add in test harness
|
data/code/01rwdcore/01rwdcore.rb
CHANGED
@@ -3,20 +3,20 @@
|
|
3
3
|
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
4
4
|
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
5
|
# This class is the top class for the RwdTinker application
|
6
|
-
|
6
|
+
|
7
7
|
class RwdTinker < RWDialog
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
8
|
+
|
9
|
+
def main
|
10
|
+
@rwd_window = "main"
|
11
|
+
@result = "idle"
|
12
|
+
@display= "idle"
|
13
|
+
if TestNow
|
14
|
+
|
15
|
+
rwdtest_harness
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def inspect
|
20
|
+
"Rwdtinker Application "
|
21
|
+
end
|
22
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Bind message passing socket to rwdtinker application
|
2
|
+
JumpLink = Hash.new { |hh, kk| hh[kk] = "ERROR: link not found: #{kk.inspect}."; hh[kk] }
|
3
|
+
locationlink = {
|
4
|
+
:helpscreen=> "runhelpwindow",
|
5
|
+
:tinkerbackwindow=>"runrwdtinkerbackwindow",
|
6
|
+
:returntomain=>"returntomain"
|
7
|
+
}
|
8
|
+
locationlink.each { |kk, vv| JumpLink[kk] = vv }
|
9
|
+
|
10
|
+
def runjumplinkcommand
|
11
|
+
|
12
|
+
runjumplocation = "#{JumpLink[:"#{@a_jumplinkinput}"]}"
|
13
|
+
|
14
|
+
self.send(runjumplocation)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
# list the remote control options on the screen
|
24
|
+
def showjumplinkoptions
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
@jumplinkoptions = $rwdjumplink.rwd_options
|
29
|
+
|
30
|
+
end
|
@@ -1,31 +1,31 @@
|
|
1
1
|
# this code is to call the help window
|
2
2
|
def runhelpwindow
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
end
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
3
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration","remote_control"]
|
4
|
+
|
5
|
+
if @rwd_window == "main"
|
6
|
+
if @rwd_tab == "documentsrwdtinkerone"
|
7
|
+
$help_topic = "documents_rwdtinker"
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
if @rwd_window == "rwdtinkerhelpwindow"
|
13
|
+
puts "in help window processing"
|
14
|
+
else
|
15
|
+
$previouswindow = @rwd_window
|
16
|
+
$previoustab = @rwd_tab
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
@rwdhelptopic = $help_topic
|
21
|
+
@rwdhelpdataoutput = "#{Helptext[:"#{$help_topic}"]}"
|
22
|
+
@rwdhelpsubchoicesoutput = $helptopicsarray.rwd_method("choosenewhelptopic")
|
23
|
+
@rwd_window = "rwdtinkerhelpwindow"
|
24
24
|
end
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
|
26
|
+
def choosenewhelptopic(inffile)
|
27
|
+
$help_topic = inffile
|
28
|
+
runhelpwindow
|
29
|
+
end
|
30
30
|
|
31
31
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
#
|
3
|
-
# For
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def returntomain
|
7
|
+
@rwd_window = "main"
|
8
|
+
@rwd_tab = "selectiontab"
|
9
|
+
end
|
10
|
+
|
@@ -1,15 +1,14 @@
|
|
1
1
|
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
-
# http://www.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# return the version constant defined in the config file
|
6
|
+
def runrwdtinkerversion
|
7
|
+
@rwd_window = "applicationversion"
|
8
|
+
@versionappnamedisplay = "RwdTinker"
|
9
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
10
|
+
@versionnumberdisplay = "Version " + RwdTinkerVersion
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
@@ -1,126 +1,115 @@
|
|
1
1
|
# test harness
|
2
2
|
def rwdtinker_all_tests
|
3
|
-
print "in rwdtinker all tests\n"
|
4
|
-
test_runrwdtinkerbackwindow
|
5
|
-
|
6
|
-
|
3
|
+
print "in rwdtinker all tests\n"
|
4
|
+
test_runrwdtinkerbackwindow
|
5
|
+
end
|
7
6
|
|
8
7
|
def test_runrwdtinkerbackwindow
|
9
|
-
|
10
|
-
require 'test/unit'
|
11
|
-
begin
|
12
|
-
|
13
|
-
runrwdtinkerbackwindow
|
14
8
|
|
15
|
-
|
9
|
+
require 'test/unit'
|
10
|
+
begin
|
11
|
+
|
12
|
+
runrwdtinkerbackwindow
|
13
|
+
|
14
|
+
raise NotImplementedError, 'Need to write test_runrwdtinkerbackwindow'
|
15
|
+
|
16
|
+
rescue NotImplementedError
|
17
|
+
$stderr.print $!
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
def test_choosenewhelptopic
|
25
|
+
raise NotImplementedError, 'Need to write test_choosenewhelptopic'
|
26
|
+
end
|
27
|
+
|
16
28
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
|
29
|
+
def test_listinstalledfiles
|
30
|
+
raise NotImplementedError, 'Need to write test_listinstalledfiles'
|
31
|
+
end
|
24
32
|
|
25
|
-
def test_choosenewhelptopic
|
26
|
-
raise NotImplementedError, 'Need to write test_choosenewhelptopic'
|
27
|
-
end
|
28
33
|
|
34
|
+
def test_listzipfilestoinstall
|
35
|
+
raise NotImplementedError, 'Need to write test_listzipfilestoinstall'
|
36
|
+
end
|
29
37
|
|
30
|
-
|
31
|
-
|
32
|
-
|
38
|
+
def test_loadconfigurationrecord
|
39
|
+
raise NotImplementedError, 'Need to write test_loadconfigurationrecord'
|
40
|
+
end
|
33
41
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
42
|
+
def test_loadconfigurationvariables
|
43
|
+
raise NotImplementedError, 'Need to write test_loadconfigurationvariables'
|
44
|
+
end
|
38
45
|
|
39
|
-
def test_loadconfigurationrecord
|
40
|
-
raise NotImplementedError, 'Need to write test_loadconfigurationrecord'
|
41
|
-
end
|
42
46
|
|
43
|
-
def test_loadconfigurationvariables
|
44
|
-
raise NotImplementedError, 'Need to write test_loadconfigurationvariables'
|
45
|
-
end
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
|
48
|
+
def test_main
|
49
|
+
raise NotImplementedError, 'Need to write test_main'
|
50
|
+
end
|
50
51
|
|
51
|
-
|
52
|
-
|
53
|
-
|
52
|
+
def test_network_demon
|
53
|
+
raise NotImplementedError, 'Need to write test_network_demon'
|
54
|
+
end
|
54
55
|
|
55
|
-
|
56
|
-
|
57
|
-
|
56
|
+
def test_network_start
|
57
|
+
raise NotImplementedError, 'Need to write test_network_start'
|
58
|
+
end
|
58
59
|
|
59
|
-
|
60
|
-
|
61
|
-
|
60
|
+
def test_openappletname
|
61
|
+
raise NotImplementedError, 'Need to write test_openappletname'
|
62
|
+
end
|
62
63
|
|
63
|
-
|
64
|
-
|
65
|
-
|
64
|
+
def test_removeapplet
|
65
|
+
raise NotImplementedError, 'Need to write test_removeapplet'
|
66
|
+
end
|
66
67
|
|
67
|
-
|
68
|
-
|
69
|
-
|
68
|
+
def test_returntomain
|
69
|
+
raise NotImplementedError, 'Need to write test_returntomain'
|
70
|
+
end
|
70
71
|
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
def test_runcontrolcommand
|
73
|
+
raise NotImplementedError, 'Need to write test_runcontrolcommand'
|
74
|
+
end
|
74
75
|
|
75
|
-
def test_removeapplet
|
76
|
-
raise NotImplementedError, 'Need to write test_removeapplet'
|
77
|
-
end
|
78
76
|
|
79
|
-
|
80
|
-
|
81
|
-
|
77
|
+
def test_runhelpwindow
|
78
|
+
raise NotImplementedError, 'Need to write test_runhelpwindow'
|
79
|
+
end
|
82
80
|
|
83
|
-
def test_runcontrolcommand
|
84
|
-
raise NotImplementedError, 'Need to write test_runcontrolcommand'
|
85
|
-
end
|
86
81
|
|
87
82
|
|
88
|
-
def test_runhelpwindow
|
89
|
-
raise NotImplementedError, 'Need to write test_runhelpwindow'
|
90
|
-
end
|
91
83
|
|
84
|
+
def test_runrwdtinkerversion
|
85
|
+
raise NotImplementedError, 'Need to write test_runrwdtinkerversion'
|
86
|
+
end
|
92
87
|
|
93
|
-
|
88
|
+
def test_runrwdtinkerwin2version
|
89
|
+
raise NotImplementedError, 'Need to write test_runrwdtinkerwin2version'
|
90
|
+
end
|
94
91
|
|
95
|
-
|
96
|
-
|
97
|
-
|
92
|
+
def test_runviewplatform
|
93
|
+
raise NotImplementedError, 'Need to write test_runviewplatform'
|
94
|
+
end
|
98
95
|
|
99
|
-
|
100
|
-
|
101
|
-
|
96
|
+
def test_rwdtinkerversiondiagnostic
|
97
|
+
raise NotImplementedError, 'Need to write test_rwdtinkerversiondiagnostic'
|
98
|
+
end
|
102
99
|
|
103
|
-
|
104
|
-
|
105
|
-
|
100
|
+
def test_rwdwindowreturn
|
101
|
+
raise NotImplementedError, 'Need to write test_rwdwindowreturn'
|
102
|
+
end
|
106
103
|
|
107
|
-
|
108
|
-
|
109
|
-
|
104
|
+
def test_saveconfigurationrecord
|
105
|
+
raise NotImplementedError, 'Need to write test_saveconfigurationrecord'
|
106
|
+
end
|
110
107
|
|
111
|
-
def test_rwdwindowreturn
|
112
|
-
raise NotImplementedError, 'Need to write test_rwdwindowreturn'
|
113
|
-
end
|
114
108
|
|
115
|
-
|
116
|
-
|
117
|
-
|
109
|
+
def test_viewappletcontents
|
110
|
+
raise NotImplementedError, 'Need to write test_viewappletcontents'
|
111
|
+
end
|
118
112
|
|
119
113
|
|
120
|
-
def test_viewappletcontents
|
121
|
-
raise NotImplementedError, 'Need to write test_viewappletcontents'
|
122
|
-
end
|
123
114
|
|
124
115
|
|
125
|
-
|
126
|
-
|
@@ -1,15 +1,12 @@
|
|
1
1
|
# this to start the test harness
|
2
2
|
def rwdtest_harness
|
3
|
-
|
4
|
-
print "in test harness\n"
|
5
|
-
$testharnessarray.each { |x|
|
6
|
-
print "calling #{x}\n"
|
7
|
-
eval("#{x}")
|
8
|
-
|
9
|
-
}
|
10
|
-
|
11
|
-
end
|
12
|
-
|
13
3
|
|
4
|
+
print "in test harness\n"
|
5
|
+
$testharnessarray.each { |x|
|
6
|
+
print "calling #{x}\n"
|
7
|
+
eval("#{x}")
|
14
8
|
|
9
|
+
}
|
10
|
+
|
11
|
+
end
|
15
12
|
|
@@ -1,62 +1,62 @@
|
|
1
1
|
def uploadreturnsfile
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
returns_ftpsite = "ftp.superant.com"
|
10
|
-
returns_ftplogin = "anonymous@superant.com"
|
11
|
-
returns_ftppassword = "anonymous@superant.com"
|
12
|
-
returns_ftpdirectory = "/incoming/returns/"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
@returnsftpdisplay = "data uploaded" + "\n"
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
2
|
+
require 'net/ftp'
|
3
|
+
BasicSocket.do_not_reverse_lookup = true
|
4
|
+
@returnsftpdisplays = ""
|
5
|
+
randomnumber = rand(9999) + 1000
|
6
|
+
puts randomnumber.to_i
|
7
|
+
|
8
|
+
|
9
|
+
returns_ftpsite = "ftp.superant.com"
|
10
|
+
returns_ftplogin = "anonymous@superant.com"
|
11
|
+
returns_ftppassword = "anonymous@superant.com"
|
12
|
+
returns_ftpdirectory = "/incoming/returns/"
|
13
|
+
|
14
|
+
begin
|
15
|
+
platformdisplay = "Platform is " + RUBY_PLATFORM + "\n"
|
16
|
+
platformdisplay = platformdisplay + "Ruby Version " + VERSION + "\n"
|
17
|
+
platformdisplay = platformdisplay + "rwdtinker version " + RwdTinkerVersion + "\n"
|
18
|
+
platformdisplay = platformdisplay + "application name " + $rwdapplicationidentity + "\n"
|
19
|
+
platformdisplay = platformdisplay + "program directory " + $progdir + "\n"
|
20
|
+
platformdisplay = platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
|
21
|
+
platformdisplay = platformdisplay + "Date " + Date.today().to_s + "\n"
|
22
|
+
if ! @a_emailupload.empty?
|
23
|
+
platformdisplay = platformdisplay + @a_emailupload + "\n"
|
24
|
+
end
|
25
|
+
if ! @a_emailupload.empty?
|
26
|
+
platformdisplay = platformdisplay + @a_commentupload + "\n"
|
27
|
+
end
|
28
|
+
updatefile = Date.today().to_s + Resolv.getname(Resolv.getaddress("localhost")) + randomnumber.to_s
|
29
|
+
|
30
|
+
tmpdir = ENV['TMP']
|
31
|
+
if tmpdir.to_s.empty?
|
32
|
+
tmpdir = "/tmp"
|
33
|
+
end
|
34
|
+
fileName = File.join( tmpdir, updatefile)
|
35
|
+
fd = File.open(fileName,"w")
|
36
|
+
fd.print(platformdisplay) # save the record info to the file
|
37
|
+
fd.close
|
38
|
+
ftp = Net::FTP::new(returns_ftpsite)
|
39
|
+
@returnsftpdisplay = "data uploaded" + "\n"
|
40
|
+
|
41
|
+
filedirname = File.join(tmpdir,updatefile)
|
42
|
+
|
43
|
+
ftp.debug_mode = false
|
44
|
+
ftp.login(returns_ftplogin, returns_ftppassword)
|
45
|
+
ftp.chdir(returns_ftpdirectory)
|
46
|
+
print "I'm in the directory ", ftp.pwd(), "\n"
|
47
|
+
|
48
|
+
puts filedirname
|
49
|
+
ftp.puttextfile(filedirname , updatefile)
|
50
|
+
@returnsftpdisplay = @returnsftpdisplay + platformdisplay
|
51
|
+
|
52
|
+
|
53
|
+
ftp.close
|
54
|
+
|
55
|
+
rescue
|
56
|
+
@returnsftpdisplay = "upload error"
|
57
|
+
if ftp
|
58
|
+
ftp.close
|
59
|
+
end
|
60
|
+
print "ftp error"
|
61
|
+
end
|
62
62
|
end
|