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.



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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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

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

Yields:

  • (@b)


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

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