Sha256: d35ee5d53f1d10f68a5fbd03a9964b6d96e40af71c06016a3fc7109192516cea
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
module Installer require 'fileutils' class Handler @@source def initialize(source = nil) if source.nil? @@source = "http://sedat.us/installer/" else @@source = source end end def get_composer if ! File.exist?('/usr/local/bin/composer') system("curl -sS https://getcomposer.org/installer | php") system("mv composer.phar /usr/local/bin/composer") end end def get_laravel(path,project_name) if path.empty? or project_name.empty? puts "Please input a path and project_name" else 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jacana-0.1.6 | lib/commands/install.rb |