Class: FluentCommandBuilder::TeamFoundationTEE::V101::ShowWorkspaceMappings

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, workspace_name) ⇒ ShowWorkspaceMappings

Returns a new instance of ShowWorkspaceMappings.



1708
1709
1710
1711
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1708

def initialize(underlying_builder, workspace_name)
  super underlying_builder
  @b.append " workfold -workspace:#{@b.format workspace_name}"
end

Instance Method Details

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

Yields:

  • (@b)


1712
1713
1714
1715
1716
1717
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1712

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