Class: VagrantSymfony::Command::ComposerCommand

Inherits:
CommandInVm
  • Object
show all
Defined in:
lib/vagrant-symfony/command/composer.rb

Instance Method Summary collapse

Methods inherited from CommandInVm

#execute, #in_working_directory, #run_command, #run_interactive_command, #support_color, #working_directory

Instance Method Details

#build_command(vm) ⇒ Object



10
11
12
13
14
# File 'lib/vagrant-symfony/command/composer.rb', line 10

def build_command(vm)
  command = Shellwords.join(@argv)
  # command = '--ansi ' + command if support_color
  in_working_directory(vm, "composer.phar #{command}")
end

#interactiveObject



6
7
8
# File 'lib/vagrant-symfony/command/composer.rb', line 6

def interactive
  true
end