@@ -33,7 +33,7 @@ public void Execute(IJobExecutionContext context)
33
33
}
34
34
35
35
var pluginPath = Path . Combine ( basePath , "plugins" ) ;
36
- var tempPluginPath = Path . Combine ( pluginPath , "_temp" ) ;
36
+ // var tempPluginPath = Path.Combine(pluginPath, "_temp");
37
37
38
38
var contents = string . Empty ;
39
39
@@ -49,7 +49,7 @@ public void Execute(IJobExecutionContext context)
49
49
}
50
50
else if ( newUri . Scheme == "dns" )
51
51
{
52
-
52
+ throw new NotImplementedException ( "DNS scheme is not implemented yet" ) ;
53
53
}
54
54
else
55
55
{
@@ -85,8 +85,6 @@ public void Execute(IJobExecutionContext context)
85
85
86
86
foreach ( var manifestItem in manifest . Items . Where ( f => new Regex ( f . MachineFilter , RegexOptions . IgnoreCase | RegexOptions . CultureInvariant ) . IsMatch ( Environment . MachineName ) ) )
87
87
{
88
-
89
-
90
88
var assembly = ConfigurationSingleton . Instance . PluginAssemblies . FirstOrDefault ( f => f . Name == manifestItem . PluginName ) ;
91
89
92
90
if ( assembly != null )
@@ -98,33 +96,27 @@ public void Execute(IJobExecutionContext context)
98
96
99
97
logger . Debug ( $ "Assembly: { assembly . FullName } , Current assembly version = { assembly . Version } , expecting { manifestItem . PluginVersion } ") ;
100
98
101
- var zipPath = Path . Combine ( tempPluginPath , assembly . Name + ".zip" ) ;
99
+ var zipPath = Path . Combine ( pluginPath , assembly . Name + ".zip" ) ;
102
100
103
- if ( ! Directory . Exists ( tempPluginPath ) )
104
- {
105
- Directory . CreateDirectory ( tempPluginPath ) ;
106
- }
101
+ Directory . CreateDirectory ( pluginPath ) ;
107
102
108
103
client . DownloadFile ( manifestItem . PluginDownloadLocation , zipPath ) ;
109
104
110
- Unzip ( zipPath , tempPluginPath ) ;
105
+ Unzip ( zipPath , pluginPath ) ;
111
106
112
107
File . Delete ( zipPath ) ;
113
108
}
114
109
else
115
110
{
116
111
logger . Debug ( $ "Assembly not found: { manifestItem . PluginName } , downloading from { manifestItem . PluginDownloadLocation } ") ;
117
112
118
- var zipPath = Path . Combine ( tempPluginPath , manifestItem . PluginName + ".zip" ) ;
119
-
120
- if ( ! Directory . Exists ( tempPluginPath ) )
121
- {
122
- Directory . CreateDirectory ( tempPluginPath ) ;
123
- }
124
-
113
+ var zipPath = Path . Combine ( pluginPath , manifestItem . PluginName + ".zip" ) ;
114
+
115
+ Directory . CreateDirectory ( pluginPath ) ;
116
+
125
117
client . DownloadFile ( manifestItem . PluginDownloadLocation , zipPath ) ;
126
118
127
- Unzip ( zipPath , tempPluginPath ) ;
119
+ Unzip ( zipPath , pluginPath ) ;
128
120
129
121
File . Delete ( zipPath ) ;
130
122
}
0 commit comments