Class: FluentCommandBuilder::AppCfgPython::V16::CreateBulkloadConfig

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/appcfg_python_16.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, directory) ⇒ CreateBulkloadConfig

Returns a new instance of CreateBulkloadConfig.



241
242
243
244
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 241

def initialize(builder, directory)
  super builder
  @builder.append " create_bulkload_config #{@builder.format directory}"
end

Instance Method Details

#auth_domain(auth_domain) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


275
276
277
278
279
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 275

def auth_domain(auth_domain)
  @builder.append " --auth_domain=#{@builder.format auth_domain}"
  yield @builder if block_given?
  self
end

#bandwidth_limit(bandwidth_limit) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


255
256
257
258
259
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 255

def bandwidth_limit(bandwidth_limit)
  @builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}"
  yield @builder if block_given?
  self
end

#batch_size(batch_size) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


250
251
252
253
254
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 250

def batch_size(batch_size)
  @builder.append " --batch_size=#{@builder.format batch_size}"
  yield @builder if block_given?
  self
end

#db_filename(db_filename) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


270
271
272
273
274
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 270

def db_filename(db_filename)
  @builder.append " --db_filename=#{@builder.format db_filename}"
  yield @builder if block_given?
  self
end

#dry_run {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


285
286
287
288
289
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 285

def dry_run
  @builder.append ' --dry_run'
  yield @builder if block_given?
  self
end

#filename(filename) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


300
301
302
303
304
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 300

def filename(filename)
  @builder.append " --filename=#{@builder.format filename}"
  yield @builder if block_given?
  self
end

#http_limit(http_limit) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


265
266
267
268
269
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 265

def http_limit(http_limit)
  @builder.append " --http_limit=#{@builder.format http_limit}"
  yield @builder if block_given?
  self
end

#log_file(log_file) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


280
281
282
283
284
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 280

def log_file(log_file)
  @builder.append " --log_file=#{@builder.format log_file}"
  yield @builder if block_given?
  self
end

#namespace(namespace) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


290
291
292
293
294
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 290

def namespace(namespace)
  @builder.append " --namespace=#{@builder.format namespace}"
  yield @builder if block_given?
  self
end

#num_threads(num_threads) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


295
296
297
298
299
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 295

def num_threads(num_threads)
  @builder.append " --num_threads=#{@builder.format num_threads}"
  yield @builder if block_given?
  self
end

#rps_limit(rps_limit) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


260
261
262
263
264
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 260

def rps_limit(rps_limit)
  @builder.append " --rps_limit=#{@builder.format rps_limit}"
  yield @builder if block_given?
  self
end

#url(url) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


245
246
247
248
249
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 245

def url(url)
  @builder.append " --url=#{@builder.format url}"
  yield @builder if block_given?
  self
end