Class: Composer

Inherits:
Object
  • Object
show all
Defined in:
lib/composer.rb

Class Method Summary collapse

Class Method Details

.developmentObject



3
4
5
6
7
# File 'lib/composer.rb', line 3

def self.development
    self.get_composer
    puts '---- Running development Composer installation'
    fail 'Composer development installation failed' unless system 'php composer.phar install --verbose --profile'
end

.productionObject



9
10
11
12
13
# File 'lib/composer.rb', line 9

def self.production
    self.get_composer
    puts '---- Running production Composer installation'
    fail 'Composer production installation failed' unless system 'php composer.phar install --no-dev --optimize-autoloader --no-interaction --verbose --profile'
end