Sha256: ae55c261e578b4ba3bbd02b488c2c36aa17de0fc48051f7000ec2e6bc8f4ad0e
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
module Jazz class ScaffoldGenerator < Thor::Group include Thor::Actions include Jazz::AppDetector desc "Creates a new Jazz scaffold" argument :name argument :attrs, :type => :array def self.source_root File.join(File.dirname(__FILE__), '..', '..') end def self.destination_root "#{name}" end def greeting $stdout.puts "Creating new Jazz scaffold, model controller and views for #{name}" end def build_the_model generate_model generate_db end def build_the_controller generate_controller end def build_the_views generate_views end def build_the_glue generate_glue end def farewell $stdout.puts "Your scaffold is ready to rumble!" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jazz-jss-0.0.2 | lib/jazz/scaffold_generator.rb |