dir-to-xml 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dir-to-xml.rb +3 -1
- metadata +1 -1
data/lib/dir-to-xml.rb
CHANGED
@@ -13,12 +13,14 @@ class DirToXML
|
|
13
13
|
|
14
14
|
def initialize(path= '.')
|
15
15
|
super()
|
16
|
+
old_path = Dir.pwd
|
16
17
|
Dir.chdir path
|
17
18
|
|
18
19
|
a = Dir.glob("*").sort
|
19
20
|
command = a.include?('dir.xml') ? 'run' : 'new_run'
|
20
|
-
|
21
|
+
|
21
22
|
@doc, @status = self.send command, a
|
23
|
+
Dir.chdir old_path #File.expand_path('~')
|
22
24
|
end
|
23
25
|
|
24
26
|
def to_xml
|