Class: FluentCommandBuilder::AppCfgPython::V16::Backends

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) ⇒ Backends

Returns a new instance of Backends.



181
182
183
184
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 181

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

Instance Method Details

#configure(backend) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


185
186
187
188
189
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 185

def configure(backend)
  @builder.append " configure #{@builder.format backend}"
  yield @builder if block_given?
  self
end

#delete(backend) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


190
191
192
193
194
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 190

def delete(backend)
  @builder.append " delete #{@builder.format backend}"
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


195
196
197
198
199
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 195

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

#rollback(backend) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


200
201
202
203
204
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 200

def rollback(backend)
  @builder.append " rollback #{@builder.format backend}"
  yield @builder if block_given?
  self
end

#start(backend) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


205
206
207
208
209
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 205

def start(backend)
  @builder.append " start #{@builder.format backend}"
  yield @builder if block_given?
  self
end

#stop(backend) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


210
211
212
213
214
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 210

def stop(backend)
  @builder.append " stop #{@builder.format backend}"
  yield @builder if block_given?
  self
end

#update(backend) ⇒ Object



215
216
217
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 215

def update(backend)
  Update.new @builder, backend
end