Class: FluentCommandBuilder::Tf::TEE2010::Branch

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, old_item, new_item) ⇒ Branch

Returns a new instance of Branch.



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

def initialize(builder, old_item, new_item)
  super builder
  @builder.append " branch #{@builder.format old_item} #{@builder.format new_item}"
end

Instance Method Details

#author(author_name) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


268
269
270
271
272
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 268

def author(author_name)
  @builder.append " -author:#{@builder.format author_name}"
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


258
259
260
261
262
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 258

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

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

Yields:

  • (@builder)


263
264
265
266
267
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 263

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

#lock(lock_type) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


243
244
245
246
247
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 243

def lock(lock_type)
  @builder.append " -lock:#{@builder.format lock_type}"
  yield @builder if block_given?
  self
end

#login(username, password = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


273
274
275
276
277
278
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 273

def (username, password=nil)
  @builder.append " -login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


238
239
240
241
242
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 238

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

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

Yields:

  • (@builder)


248
249
250
251
252
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 248

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

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

Yields:

  • (@builder)


253
254
255
256
257
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 253

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

#version(version_spec) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


233
234
235
236
237
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 233

def version(version_spec)
  @builder.append " -version:#{@builder.format version_spec}"
  yield @builder if block_given?
  self
end