Class: FluentCommandBuilder::TeamFoundationTEE::V101::Merges

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

Returns a new instance of Merges.



1122
1123
1124
1125
1126
1127
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1122

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)


1154
1155
1156
1157
1158
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1154

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)


1133
1134
1135
1136
1137
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1133

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

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

Yields:

  • (@b)


1138
1139
1140
1141
1142
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1138

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

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

Yields:

  • (@b)


1143
1144
1145
1146
1147
1148
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1143

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)


1128
1129
1130
1131
1132
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1128

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

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

Yields:

  • (@b)


1149
1150
1151
1152
1153
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1149

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