Class: FluentCommandBuilder::TeamFoundationTEE::V100::Print

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

Returns a new instance of Print.



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

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)


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

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