Sha256: 64afc1f5731e7d3d4684c2b33adba490fafb1d3c524dea589dec09b1231afd31
Contents?: true
Size: 384 Bytes
Versions: 13
Compression:
Stored size: 384 Bytes
Contents
module MothershipHelpers def command(inputs = {}) cmd = Mothership::Command.new(Mothership) inputs.each do |name, opts| cmd.add_input(name, opts) end if block_given? yield cmd else cmd end end def inputs(cmd, *argv) Mothership::Parser.new(cmd).parse_argv(argv) end end RSpec.configure do |c| c.include MothershipHelpers end
Version data entries
13 entries across 13 versions & 1 rubygems