Sha256: dbfb52906fc902172317c52f0a6ed66e1c4e779cfbbcff5c96f944b34988b55d

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

# TODO, needs to use the local Gemfile if we're in an app
ENV['BUNDLE_GEMFILE'] = File.expand_path('../../../../Gemfile', __FILE__)

require 'rubygems'
require 'bundler/setup'
Bundler.require(:default)

Adva.engines.each { |engine| engine.new.load_tasks }

if task = Thor::Util.find_by_namespace("adva:#{ARGV.first}") 
  ARGV.shift
else
  task = Thor::Util.find_by_namespace("adva:app")
end

task.start

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adva-core-0.0.2 lib/adva/cli.rb
adva-core-0.0.1 lib/adva/cli.rb