File: command_status.rb

package info (click to toggle)
ruby-mojo-magick 0.6.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 376 kB
  • sloc: ruby: 755; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
module MojoMagick
  CommandStatus = Struct.new(:command, :return_value, :error, :system_status) do
    def success?
      system_status.success?
    end

    def exit_code
      system_status.exitstatus || "unknown"
    end
  end
end