Class: FluentCommandBuilder::TeamFoundation::V100::Properties

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_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.



1271
1272
1273
1274
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1271

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)


1275
1276
1277
1278
1279
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1275

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)


1285
1286
1287
1288
1289
1290
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1285

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)


1280
1281
1282
1283
1284
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1280

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

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

Yields:

  • (@b)


1291
1292
1293
1294
1295
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1291

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)


1296
1297
1298
1299
1300
1301
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1296

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