Class: FluentCommandBuilder::Tf::V2010::Branch

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, old_item, new_item) ⇒ Branch



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

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)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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)


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

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)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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