Class: Symfony

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

Class Method Summary collapse

Class Method Details

.doctrineObject



3
4
5
# File 'lib/symfony/symfony.rb', line 3

def self.doctrine
    Doctrine
end

.run_command(data_container, command) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/symfony/symfony.rb', line 7

def self.run_command(data_container, command)
    docker_command = "docker run --rm --volumes-from #{data_container} vjftw/php-cli app/console --ansi #{command}"

    puts docker_command

    return `docker_command`
end