Sha256: c31d6508ad2750313ec56fae49e735e5ef3ddc5908dcb8ff9b2bc0f9011af09d
Contents?: true
Size: 624 Bytes
Versions: 6
Compression:
Stored size: 624 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 opts.on("--token=TOKEN", "-T=TOKEN", "Specify an API token") do |v| options[:token] = v end end.parse! Rambo::CLI.new(filename, options, STDOUT).run!
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rambo_ruby-0.5.0 | bin/rambo |
rambo_ruby-0.4.0 | bin/rambo |
rambo_ruby-0.3.3 | bin/rambo |
rambo_ruby-0.3.2 | bin/rambo |
rambo_ruby-0.3.1 | bin/rambo |
rambo_ruby-0.3.0 | bin/rambo |