Sha256: 7e0be2d9f808e5eb198b34557336d5039d1cd5bc336c909a8cb7442a416349d8

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path("../../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require "fileutils"
require "rambo/cli"
require "optparse"

filename = ARGV[0] ? File.expand_path(ARGV[0], FileUtils.pwd) : nil

options = {}

OptionParser.new do |opts|
  opts.banner = "Usage: rambo [FILE] [OPTIONS]"

  options[:rails] = true
  opts.on("--no-rails", "Generate tests for a non-Rails API") do |v|
    options[:rails] = false
  end
end.parse!

Rambo::CLI.new(filename, options, STDOUT).run!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rambo_ruby-0.2.0 bin/rambo