Class: Derrick::CLI::Context

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

Returns a new instance of Context.



46
47
48
49
50
# File 'lib/derrick/cli.rb', line 46

def initialize
  @concurrency = 2
  @batch_size = 10_000
  @max_patterns = 1_000
end

Instance Attribute Details

#batch_sizeObject

Returns the value of attribute batch_size.



44
45
46
# File 'lib/derrick/cli.rb', line 44

def batch_size
  @batch_size
end

#concurrencyObject

Returns the value of attribute concurrency.



44
45
46
# File 'lib/derrick/cli.rb', line 44

def concurrency
  @concurrency
end

#max_patternsObject

Returns the value of attribute max_patterns.



44
45
46
# File 'lib/derrick/cli.rb', line 44

def max_patterns
  @max_patterns
end