Sha256: 9543878dcb16745bf62bc5dd82e1f30c9a4ec49e40ab79c70d5f6ecc6c192a42

Contents?: true

Size: 707 Bytes

Versions: 12

Compression:

Stored size: 707 Bytes

Contents

#!/usr/bin/env ruby -w

require 'bundler'
Bundler.setup

require 'blazing'
require 'blazing/config'
require 'blazing/runner'
require 'optparse'

options = {}

optparse = OptionParser.new do|opts|
  opts.banner = "Usage: blazing <command> [options]"

  opts.on( '-h', '--help', 'Display this screen' ) do
    puts opts
    exit
  end

  opts.on( '-f config', '--file config', 'specify config file location (defaults to config/blazing.rb)' ) do |file|
    options[:file] = file
  end
end

optparse.parse!(ARGV)

command = ARGV[0]
target = ARGV[1]

if command == 'init'
  config = nil
else
  config = Blazing::Config.parse(options[:file])
end

runner = Blazing::Runner.new(config, target)
runner.exec(command)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blazing-0.2.2 bin/blazing
blazing-0.2.1 bin/blazing
blazing-0.2.0 bin/blazing
blazing-0.1.3 bin/blazing
blazing-0.1.2 bin/blazing
blazing-0.1.1 bin/blazing
blazing-0.1.0 bin/blazing
blazing-0.1.0.alpha6 bin/blazing
blazing-0.1.0.alpha5 bin/blazing
blazing-0.1.0.alpha4 bin/blazing
blazing-0.1.0.alpha3 bin/blazing
blazing-0.1.0.alpha2 bin/blazing