Sha256: f059898a0eef9ebf5a704210c3d63751f351018c0542cd2db26449c2af442ea1
Contents?: true
Size: 858 Bytes
Versions: 12
Compression:
Stored size: 858 Bytes
Contents
#!/usr/bin/env ruby # -*- mode: ruby -*- if File.exists?('lux-fw.gemspec') puts 'Cant run in lux folder' exit end require 'thor' require 'colorize' require 'optparse' require 'awesome_print' require 'dotenv' Dotenv.load LUX_ROOT = File.expand_path '../..', __FILE__ puts 'Lux (%s, v%s)' % [LUX_ROOT, File.read('%s/.version' % LUX_ROOT)] unless ARGV[0] ### module Cli extend self def run what puts what.green system what end def die text puts text.red exit end def info text puts '* %s' % text.magenta end end ### trap("SIGINT") { Cli.die 'ctrl+c exit' } LuxCli = Class.new Thor Dir['%s/bin/cli/*.rb' % LUX_ROOT].each { |it| load it } LuxCli.start ARGV rakes = Dir['./Rakefile*'] + Dir['./rakefile*'] if !ARGV[0] && rakes[0] puts 'Or use one of rake tasks' puts ' ' + `rake -T`.gsub($/, "\n ") end
Version data entries
12 entries across 6 versions & 1 rubygems