Sha256: 8eb68f96478ebb17e3302b8bfe1be0921da4a4fc8eddfb51a087d2b260bc3c0e
Contents?: true
Size: 797 Bytes
Versions: 3
Compression:
Stored size: 797 Bytes
Contents
module Installer 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 system("cd #{path}") system("composer create-project laravel/laravel #{project_name} --prefer-dist") system("clear") puts "Laravel project is created !" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jacana-0.1.5 | lib/commands/install.rb |
jacana-0.1.4 | lib/commands/install.rb |
jacana-0.1.3 | lib/commands/install.rb |