Class: FluentCommandBuilder::TeamFoundationTEE::V100::Add

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, item_spec) ⇒ Add

Returns a new instance of Add.



203
204
205
206
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 203

def initialize(underlying_builder, item_spec)
  super underlying_builder
  @b.append " add #{@b.format item_spec}"
end

Instance Method Details

#lock(lock_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


207
208
209
210
211
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 207

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

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

Yields:

  • (@b)


227
228
229
230
231
232
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 227

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

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

Yields:

  • (@b)


217
218
219
220
221
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 217

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

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

Yields:

  • (@b)


222
223
224
225
226
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 222

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

#type(file_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


212
213
214
215
216
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 212

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