hdmake 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hdmake/version.rb +1 -1
- data/lib/hdmake.rb +2 -3
- metadata +2 -2
data/lib/hdmake/version.rb
CHANGED
data/lib/hdmake.rb
CHANGED
@@ -28,14 +28,13 @@ module Hdmake
|
|
28
28
|
raise ImageNotReadableError if not File.readable?(@image_path)
|
29
29
|
raise CommandNotFoundError if not File.exists?(@hdmake_path)
|
30
30
|
raise CommandNotExecutableError if not File.executable?(@hdmake_path)
|
31
|
-
|
32
|
-
output = %x[ cmd ]
|
31
|
+
output = %x[ #{@hdmake_path} -src #{@image_path} #{options} ]
|
33
32
|
status = $?
|
34
33
|
|
35
34
|
if status.exitstatus == 0
|
36
35
|
output
|
37
36
|
else
|
38
|
-
raise CommandLineError, "Hdmake command
|
37
|
+
raise CommandLineError, "Hdmake command failed: #{{:status_code => status, :output => output}.inspect}"
|
39
38
|
end
|
40
39
|
end
|
41
40
|
|