File tree Expand file tree Collapse file tree 8 files changed +15
-51
lines changed Expand file tree Collapse file tree 8 files changed +15
-51
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,6 @@ module ISM
27
27
return from_json(File .read(path))
28
28
end
29
29
30
- # def loadConfiguration(path = self.class.filePath)
31
- # if !File.exists?(path)
32
- # writeConfiguration(path)
33
- # end
34
- #
35
- # self = self.class.from_json(File.read(path))
36
- # end
37
-
38
30
def writeConfiguration (path = self .class.filePath)
39
31
file = File .open(path," w" )
40
32
to_json(file)
Original file line number Diff line number Diff line change @@ -27,14 +27,6 @@ module ISM
27
27
return from_json(File .read(path))
28
28
end
29
29
30
- # def loadConfiguration(path = self.class.filePath)
31
- # if !File.exists?(path)
32
- # writeConfiguration(path)
33
- # end
34
- #
35
- # self = self.class.from_json(File.read(path))
36
- # end
37
-
38
30
def writeConfiguration (path = self .class.filePath)
39
31
file = File .open(path," w" )
40
32
to_json(file)
Original file line number Diff line number Diff line change @@ -254,14 +254,6 @@ module ISM
254
254
file.close
255
255
end
256
256
257
- # def loadConfiguration(path = self.class.filePath)
258
- # if !File.exists?(path)
259
- # writeSystemConfiguration
260
- # end
261
- #
262
- # self = self.class.from_json(File.read(path))
263
- # end
264
-
265
257
def writeChrootConfiguration
266
258
self .class.writeConfiguration( # File path
267
259
@rootPath + ISM ::Default ::CommandLineSettings ::SettingsFilePath ,
Original file line number Diff line number Diff line change @@ -30,14 +30,6 @@ module ISM
30
30
return from_json(File .read(path))
31
31
end
32
32
33
- # def loadConfiguration(path = self.class.filePath)
34
- # if !File.exists?(path)
35
- # writeConfiguration(path)
36
- # end
37
- #
38
- # self = self.class.from_json(File.read(path))
39
- # end
40
-
41
33
def writeConfiguration (path = self .class.filePath)
42
34
file = File .open(path," w" )
43
35
to_json(file)
Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ module ISM
29
29
end
30
30
end
31
31
32
- # def loadConfiguration(path : String)
33
- # self = self.class.loadConfiguration(path)
34
- # end
35
-
36
32
def writeConfiguration (path : String )
37
33
finalPath = path.chomp(path[path.rindex(" /" )..- 1 ])
38
34
Original file line number Diff line number Diff line change @@ -31,13 +31,21 @@ module ISM
31
31
return from_json(File .read(path))
32
32
end
33
33
34
- # def loadConfiguration(path = self.class.filePath)
35
- # if !File.exists?(path)
36
- # writeConfiguration(path)
37
- # end
38
- #
39
- # self = self.class.from_json(File.read(path))
40
- # end
34
+ def self.sourcesLink (codeName : String ) : String
35
+ begin
36
+ return from_json(File .read(filePath(codeName))).sourcesLink
37
+ rescue
38
+ return String .new
39
+ end
40
+ end
41
+
42
+ def self.patchesLink (codeName : String ) : String
43
+ begin
44
+ return from_json(File .read(filePath(codeName))).patchesLink
45
+ rescue
46
+ return String .new
47
+ end
48
+ end
41
49
42
50
def writeConfiguration (path = self .class.filePath)
43
51
file = File .open(path," w" )
Original file line number Diff line number Diff line change @@ -47,10 +47,6 @@ module ISM
47
47
return self .class.directoryPathPrefix+ @name
48
48
end
49
49
50
- # def loadConfiguration
51
- # self = self.class.from_json(File.read(filePath))
52
- # end
53
-
54
50
def writeConfiguration
55
51
file = File .open(filePath," w" )
56
52
to_json(file)
Original file line number Diff line number Diff line change @@ -49,10 +49,6 @@ module ISM
49
49
end
50
50
end
51
51
52
- # def loadConfiguration(path : String)
53
- # self = self.class.from_json(File.read(path))
54
- # end
55
-
56
52
def writeInformationFile (path : String )
57
53
finalPath = path.chomp(path[path.rindex(" /" )..- 1 ])
58
54
You can’t perform that action at this time.
0 commit comments