Class: FluentCommandBuilder::TeamFoundationTEE::V100::Merges

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, destination, source = nil) ⇒ Merges

Returns a new instance of Merges.



1089
1090
1091
1092
1093
1094
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1089

def initialize(underlying_builder, destination, source=nil)
  super underlying_builder
  @b.append ' merges'
  @b.append " #{@b.format source}" unless source.nil?
  @b.append " #{@b.format destination}"
end

Instance Method Details

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

Yields:

  • (@b)


1121
1122
1123
1124
1125
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1121

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

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

Yields:

  • (@b)


1100
1101
1102
1103
1104
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1100

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

#format(format) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1105
1106
1107
1108
1109
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1105

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

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

Yields:

  • (@b)


1110
1111
1112
1113
1114
1115
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1110

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)


1095
1096
1097
1098
1099
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1095

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

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

Yields:

  • (@b)


1116
1117
1118
1119
1120
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1116

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