Method: CIDE::Runner#initialize
- Defined in:
- lib/cide/runner.rb
#initialize(command: [], env: {}, links: [], tag: nil, user: nil) ⇒ Runner
Returns a new instance of Runner.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/cide/runner.rb', line 9 def initialize( command: [], env: {}, links: [], tag: nil, user: nil ) raise ArgumentError, 'tag missing' unless tag @containers = [] @id = SecureRandom.hex @tag = tag @env = env @links = links @command = command @user = user end |