Sha256: dd0c8d7f837f8669e4ec6c527cd219d7608967d0537675b5c902249fb899287b
Contents?: true
Size: 731 Bytes
Versions: 16
Compression:
Stored size: 731 Bytes
Contents
# require "English" # needed for CHILD_STATUS, but not sure this is the best place for this. module Decko module Commands class Command def run puts command exit_with_child_status command end def exit_with_child_status command command += " 2>&1" exit $CHILD_STATUS.exitstatus unless system command end # split special decko args and original command args separated by '--' def split_args args before_split = true decko_args, command_args = args.partition do |a| before_split = (a == "--" ? false : before_split) end command_args.shift [decko_args, command_args] end end end end
Version data entries
16 entries across 16 versions & 1 rubygems