lib/commands/install.rb in jacana-0.1.5 vs lib/commands/install.rb in jacana-0.1.6

- old
+ new

@@ -1,8 +1,12 @@ + module Installer + require 'fileutils' + class Handler + @@source def initialize(source = nil) if source.nil? @@source = "http://sedat.us/installer/" @@ -21,10 +25,11 @@ def get_laravel(path,project_name) if path.empty? or project_name.empty? puts "Please input a path and project_name" else - system("cd #{path}") + include FileUtils + cd(path, :verbose => false) system("composer create-project laravel/laravel #{project_name} --prefer-dist") system("clear") puts "Laravel project is created !" end end \ No newline at end of file