Sha256: 19043374d26f7af15334a58bf3e08cafa30d4f3df04dab7912e89e08046e9fa2

Contents?: true

Size: 524 Bytes

Versions: 4

Compression:

Stored size: 524 Bytes

Contents

#!/usr/bin/env ruby

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

require "fileutils"
require "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

4 entries across 4 versions & 1 rubygems

Version Path
rambo_ruby-0.2.3 bin/rambo
rambo_ruby-0.2.2 bin/rambo
rambo_ruby-0.2.1 bin/rambo
rambo_ruby-0.1.0 bin/rambo