Sha256: 22428391236b0f4c508ac3b5a42dbcc48c1be7d6d0b0d4be82f3634c0dd31f13

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 Bytes

Contents

require 'typus'
require 'sha1'

if Typus.testing?
  Typus::Configuration.options[:config_folder] = 'vendor/plugins/typus/test/config/working'
end

##
# Typus.enable and run the generator unless we are testing the plugin.
# Do not Typus.enable or generate files if we are running a rails 
# generator.
#

scripts = %w( script/generate script/destroy )

unless scripts.include?($0)
  Typus.enable
  Typus.generator unless Typus.testing?
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fesplugas-typus-0.9.0 init.rb
fesplugas-typus-0.9.1 rails/init.rb
fesplugas-typus-0.9.2 rails/init.rb
fesplugas-typus-0.9.3 rails/init.rb
fesplugas-typus-0.9.4 rails/init.rb
fesplugas-typus-0.9.5 rails/init.rb