Sha256: 051a16947b90ba3259db1169ce990bb26029ef9806ce69f18a4c47e6f880fab5
Contents?: true
Size: 770 Bytes
Versions: 3
Compression:
Stored size: 770 Bytes
Contents
require 'thor/group' module Playmo class Cli < Thor::Group include Thor::Actions argument :application_name, :type => :string, :desc => "The name of the rails application" desc "Generates a new Rails application with Playmo'" 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
playmo-0.0.12 | lib/playmo/cli.rb |
playmo-0.0.11 | lib/playmo/cli.rb |
playmo-0.0.10 | lib/playmo/cli.rb |