Class: FluentCommandBuilder::TeamFoundationTEE::V100::Properties

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec) ⇒ Properties

Returns a new instance of Properties.



1208
1209
1210
1211
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1208

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

Instance Method Details

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

Yields:

  • (@b)


1212
1213
1214
1215
1216
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1212

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

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

Yields:

  • (@b)


1222
1223
1224
1225
1226
1227
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1222

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

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

Yields:

  • (@b)


1217
1218
1219
1220
1221
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1217

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

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

Yields:

  • (@b)


1228
1229
1230
1231
1232
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1228

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

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

Yields:

  • (@b)


1233
1234
1235
1236
1237
1238
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1233

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