Class: Eos
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'bin/eos', line 10 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#convert ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'bin/eos', line 44 def convert convert_gemfile convert_haml setup_home init_guard install_simpleform install_rspec install_cucumber add_livereload install_bower add_stylesheets run_bundle end |
#hello ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'bin/eos', line 26 def hello puts '- - - - - - - - - -' puts set_color 'Hey there and welcome to the Eos gem - a sweet powerpack for Ruby on Rails', :white, :bold puts '- - - - - - - - - -' puts set_color '1. Type: \'eos start APP_NAME\' or \'rails new APP_NAME\' to generate a regular rails app.', :white, :bold puts set_color '2. Type: \'cd APP_NAME\' then \'eos convert\' to turn your new app into a totally rhombus Eos app.', :white, :bold puts '- - - - - - - - - -' end |
#start(app_name) ⇒ Object
36 37 38 39 40 41 |
# File 'bin/eos', line 36 def start(app_name) system("rails new #{app_name}") puts '- - - - - - - - - -' puts set_color "Successfully generated the project named #{app_name} in the current directory.", :white, :bold puts '- - - - - - - - - -' end |