Sha256: 9ae64adb0afdd7814185cc362f76f4964119d476e6a16363c10296bdedd3d5a5

Contents?: true

Size: 659 Bytes

Versions: 2

Compression:

Stored size: 659 Bytes

Contents

#!/usr/bin/env ruby

require File.expand_path(File.dirname(__FILE__) + '/../lib/starting_blocks.rb')

options = {}

def display value
end

if ARGV.include? '--verbose'
  options[:verbose] = true
end

def run_all_specs options
  files = ['**/*_spec.rb*', '**/*_test.rb*', '**/test_*.rb*'].map do |d|
    Dir[d].
      select { |f| File.file?(f) }.
      map    { |x| File.expand_path(x) }
  end.flatten

  StartingBlocks::Runner.new(options).run_files files
end

if ARGV.include? '--watch'
  StartingBlocks::Watcher.start_watching Dir, options
elsif ARGV.include? '--off'
  StartingBlocks::Extensions::BlinkyLighting.turn_off!
else
  run_all_specs options
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
starting_blocks-0.0.22 bin/sb
starting_blocks-0.0.21 bin/sb