Class: FluentCommandBuilder::TeamFoundationTEE::V101::Print

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

Returns a new instance of Print.



1160
1161
1162
1163
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1160

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

Instance Method Details

#version(version_spec) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1164
1165
1166
1167
1168
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1164

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