mandy 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/mandy-local +6 -3
- metadata +1 -1
data/bin/mandy-local
CHANGED
@@ -29,11 +29,14 @@ def absolute_path(path)
|
|
29
29
|
path =~ /^\// ? path : File.join(Dir.pwd, path)
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
def set_env(opts_string)
|
33
|
+
opts_string.split(' ').each do |pair|
|
34
|
+
key, value = pair.split("=")
|
35
|
+
ENV[key] = value
|
36
|
+
end
|
35
37
|
end
|
36
38
|
|
39
|
+
set_env(options.cmdenv) if options.cmdenv
|
37
40
|
file = absolute_path(ARGV[0])
|
38
41
|
input = absolute_path(ARGV[1])
|
39
42
|
output_folder = FileUtils.mkdir_p(absolute_path(ARGV[2]))
|