Class: Bricks::Init

Inherits:
Base
  • Object
show all
Defined in:
lib/active_admin/generator/bricks/init.rb

Instance Attribute Summary

Attributes inherited from Base

#base_path, #context

Instance Method Summary collapse

Methods inherited from Base

#apply?, #ask, #choose, #commit_all, #format, #initialize, #say, #template, #title, #yes?

Constructor Details

This class inherits a constructor from Bricks::Base

Instance Method Details

#before_bundleObject



4
5
6
7
8
9
# File 'lib/active_admin/generator/bricks/init.rb', line 4

def before_bundle
  say "=" * 80
  say "Welcome to ActiveAdmin Generator! :)".center(80) + "\n"
  say "=" * 80
  ENV['APP_NAME'] = ask("Name of the project:")
end