Sha256: 2e3a684c8e9eff8afd9206b530c8368ab0e2e356e94a0213f83deb0b9c5069b3
Contents?: true
Size: 655 Bytes
Versions: 3
Compression:
Stored size: 655 Bytes
Contents
require 'thor' module Padrino module Generators class Base < Thor::Group # Include related modules include Thor::Actions include Padrino::Generators::Actions class_option :root, :aliases => '-r', :default => nil, :type => :string # Copies over the base sinatra starting project def load_boot if in_app_root?(options[:root]) require(options[:root] ? File.join(options[:root], 'config/boot.rb') : 'config/boot.rb') else say "You are not at the root of a Padrino application! (config/boot.rb not found)" and return unless in_app_root? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.2.9 | lib/padrino-gen/generators/base.rb |
padrino-gen-0.2.6 | lib/padrino-gen/generators/base.rb |
padrino-gen-0.2.5 | lib/padrino-gen/generators/base.rb |