Class: Playmo::Cli
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Playmo::Cli
- Includes:
- Thor::Actions
- Defined in:
- lib/playmo/cli.rb
Instance Method Summary collapse
Instance Method Details
#run_playmo ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/playmo/cli.rb', line 10 def run_playmo self.destination_root = application_name system "rails new #{application_name} -JT --skip-bundle" Playmo::Cookbook.instance.cook_recipes!(application_name) system %Q{echo "gem 'therubyracer'" >> ./#{application_name}/Gemfile} #system %Q{echo "gem 'playmo', :path => '../../playmo'" >> ./#{application_name}/Gemfile} system "cd #{application_name} && bundle install" Event.events.fire :after_install Event.events.fire :before_exit end |