Sha256: e4dd3cb835628b42219d076b6bc009d3509144af09d5fa9eaae5c576a30a24c0

Contents?: true

Size: 234 Bytes

Versions: 8

Compression:

Stored size: 234 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mojo_magick-0.6.8 lib/mojo_magick/command_status.rb
mojo_magick-0.6.7 lib/mojo_magick/command_status.rb
mojo_magick-0.6.6 lib/mojo_magick/command_status.rb
mojo_magick-0.6.5 lib/mojo_magick/command_status.rb
mojo_magick-0.6.4 lib/mojo_magick/command_status.rb
mojo_magick-0.6.3 lib/mojo_magick/command_status.rb
mojo_magick-0.6.2 lib/mojo_magick/command_status.rb
mojo_magick-0.6.0 lib/mojo_magick/command_status.rb