mandy 0.3.10 → 0.3.11
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/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]))
|