Sha256: e04c7e33c02200f5d13ed5e64f4dfe0e20f3643e0da6655fb9d36685e5d8a1c2
Contents?: true
Size: 820 Bytes
Versions: 42
Compression:
Stored size: 820 Bytes
Contents
class AppBuilder < Rails::AppBuilder include Thor::Actions include Thor::Shell # Express app templating for Rails # ------------------------------------ # USAGE: # 1. run: `rails new app_name --builder=path/to/builder.rb` (URI's work here too) # 2. ??? # 3. PROFIT! def test return # TODO # skips test framework, but we can probably just bastardize the options in the same way as with :skip_bundle # either make `test` build the actual directories etc., or use a script # either way, this method is stupid. end <% overridden_generator_methods.each do |m| %> def <%= m %> super <%= @directives[m].join("\n") %> end <% end %> def leftovers <%= leftover_directives.join("\n") %> rake 'db:migrate' say "She's all yours, sparky!\n\n", :green end end
Version data entries
42 entries across 21 versions & 1 rubygems