Class: FluentCommandBuilder::Tf::TEE2010::Properties

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

Returns a new instance of Properties.



1205
1206
1207
1208
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1205

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

Instance Method Details

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

Yields:

  • (@builder)


1209
1210
1211
1212
1213
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1209

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)


1219
1220
1221
1222
1223
1224
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1219

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

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

Yields:

  • (@builder)


1214
1215
1216
1217
1218
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1214

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

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

Yields:

  • (@builder)


1225
1226
1227
1228
1229
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1225

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

#workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1230
1231
1232
1233
1234
1235
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1230

def workspace(workspace_name, workspace_owner=nil)
  @builder.append " -workspace:#{@builder.format workspace_name}"
  @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
  yield @builder if block_given?
  self
end