-
-
Save k2052/3942215 to your computer and use it in GitHub Desktop.
Kyan Custom Admin Template for Padrino
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project :test => :shoulda, :orm => :mongomapper, :mock => :none, :script => :jquery, :renderer => :slim, :stylesheet => :compass, :admin_renderer => :erb | |
# include additional generators | |
inject_into_file destination_root('config/boot.rb'), "\# include additional generators\nPadrino::Generators.load_paths << Padrino.root('generators', 'kyan_admin_page_generator.rb')\nPadrino::Generators.load_paths << Padrino.root('generators', 'kyan_admin_generator.rb')\n\n", :before => "Padrino.load!" | |
require_dependencies 'kaminari', :require => 'kaminari/sinatra' | |
require_dependencies 'bcrypt-ruby', :require => 'bcrypt' | |
git :init | |
git :add, "." | |
git :commit, '-m "initial commit"' | |
say "Cloning custom generators from [email protected]:xavierRiley/Kyan-Padrino-Admin-Generators.git", :red | |
remove_dir destination_root('generators') | |
run "git clone [email protected]:xavierRiley/Kyan-Padrino-Admin-Generators.git " + destination_root('generators') | |
inside destination_root(), {:verbose => true} do | |
run 'bundle install' | |
run 'bundle exec padrino g kyan_admin --theme kyan-default' | |
run 'bundle exec padrino rake seed' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment