Sha256: b72c77c46142dab643bb5149c4384f80456545621722538f40623d20b469680d

Contents?: true

Size: 790 Bytes

Versions: 8

Compression:

Stored size: 790 Bytes

Contents

#!/usr/bin/env ruby
APP_ROOT = File.join(File.dirname(__FILE__), '..')

# required to overcome a callback in rspec
def at_exit
end

begin
  require 'rubigen'
rescue LoadError
  require 'rubygems'
  require 'rubigen'
end

require File.join(File.dirname(__FILE__), "..", 'config', 'boot')
require File.join(Merb.root, 'config', 'dependencies')
module Kernel
  undef dependency if defined?(Kernel.dependency)
end

# Make the App's local gems available
Gem.clear_paths
Gem.path.unshift(APP_ROOT / "gems")

require 'rubigen/scripts/generate'

ARGV.shift if ['--help', '-h'].include?(ARGV[0])

# Default is to use rspec generators in gems.  To change this to
# Test::Unit use [:merb, :test_unit]
RubiGen::Base.use_component_sources! Merb::GENERATOR_SCOPE
RubiGen::Scripts::Generate.new.run(ARGV)

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
derailed-mole-1.0.10 samples/merbapp/script/generate
merb-0.5.3 app_generators/merb/templates/script/generate
mole-1.0.11 samples/merbapp/script/generate
mole-1.0.7 samples/merbapp/script/generate
mole-1.0.6 samples/merbapp/script/generate
mole-1.0.8 samples/merbapp/script/generate
mole-1.0.12 samples/merbapp/script/generate
mole-1.0.9 samples/merbapp/script/generate