Class: FluentCommandBuilder::Tf::TEE2010::Branches

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, item_spec) ⇒ Branches

Returns a new instance of Branches.



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

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

Instance Method Details

#collection(team_project_collection_url) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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