Class: DockerToolkit::ChildProcess::Windows::ProcessBuilder
- Inherits:
- 
      Object
      
        - Object
- DockerToolkit::ChildProcess::Windows::ProcessBuilder
 
- Defined in:
- lib/docker_toolkit/childprocess/windows/process_builder.rb
Instance Attribute Summary collapse
- 
  
    
      #cwd  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute cwd. 
- 
  
    
      #detach  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute detach. 
- 
  
    
      #duplex  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute duplex. 
- 
  
    
      #environment  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute environment. 
- 
  
    
      #leader  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute leader. 
- 
  
    
      #stderr  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute stderr. 
- 
  
    
      #stdin  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute stdin. 
- 
  
    
      #stdout  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute stdout. 
Instance Method Summary collapse
- 
  
    
      #initialize(args)  ⇒ ProcessBuilder 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ProcessBuilder. 
- #start ⇒ Object
Constructor Details
#initialize(args) ⇒ ProcessBuilder
Returns a new instance of ProcessBuilder.
| 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 8 def initialize(args) @args = args @detach = false @duplex = false @environment = nil @cwd = nil @stdout = nil @stderr = nil @stdin = nil @flags = 0 @job_ptr = nil @cmd_ptr = nil @env_ptr = nil @cwd_ptr = nil end | 
Instance Attribute Details
#cwd ⇒ Object
Returns the value of attribute cwd.
| 5 6 7 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 5 def cwd @cwd end | 
#detach ⇒ Object
Returns the value of attribute detach.
| 5 6 7 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 5 def detach @detach end | 
#duplex ⇒ Object
Returns the value of attribute duplex.
| 5 6 7 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 5 def duplex @duplex end | 
#environment ⇒ Object
Returns the value of attribute environment.
| 5 6 7 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 5 def environment @environment end | 
#leader ⇒ Object
Returns the value of attribute leader.
| 5 6 7 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 5 def leader @leader end | 
#stderr ⇒ Object
Returns the value of attribute stderr.
| 5 6 7 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 5 def stderr @stderr end | 
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
| 6 7 8 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 6 def stdin @stdin end | 
#stdout ⇒ Object
Returns the value of attribute stdout.
| 5 6 7 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 5 def stdout @stdout end | 
Instance Method Details
#start ⇒ Object
| 27 28 29 30 31 32 33 34 35 36 37 38 39 | # File 'lib/docker_toolkit/childprocess/windows/process_builder.rb', line 27 def start create_command_pointer create_environment_pointer create_cwd_pointer setup_flags setup_io pid = create_process close_handles pid end |