Method: Docker::Compose::Session#initialize

Defined in:
lib/docker/compose/session.rb

#initialize(shell = Backticks::Runner.new(buffered: [:stderr], interactive: true), dir: Dir.pwd, project_name: nil, file: 'docker-compose.yml') ⇒ Session

Returns a new instance of Session.


33
34
35
36
37
38
39
40
# File 'lib/docker/compose/session.rb', line 33

def initialize(shell = Backticks::Runner.new(buffered: [:stderr], interactive: true),
               dir: Dir.pwd, project_name: nil, file: 'docker-compose.yml')
  @shell = shell
  @project_name = project_name
  @dir = dir
  @file = file
  @last_command = nil
end