Class: FluentCommandBuilder::AppCfgPython::V16::Update

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/appcfg_python_16.rb,
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) ⇒ Update

Returns a new instance of Update.



220
221
222
223
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 220

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

Instance Method Details

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

Yields:

  • (@builder)


234
235
236
237
238
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 234

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

#max_size(size) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


224
225
226
227
228
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 224

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

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

Yields:

  • (@builder)


229
230
231
232
233
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 229

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