Class: FluentCommandBuilder::Tf::TEE2010::History

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_tee_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, item_spec) ⇒ History

Returns a new instance of History.



823
824
825
826
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 823

def initialize(builder, item_spec)
  super builder
  @builder.append " history #{@builder.format item_spec}"
end

Instance Method Details

#collection(team_project_collection_url) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


878
879
880
881
882
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 878

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

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

Yields:

  • (@builder)


847
848
849
850
851
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 847

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

#item_mode {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


857
858
859
860
861
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 857

def item_mode
  @builder.append ' -itemMode'
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


867
868
869
870
871
872
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 867

def (username, password=nil)
  @builder.append " -login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


862
863
864
865
866
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 862

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

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

Yields:

  • (@builder)


837
838
839
840
841
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 837

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

#slot_mode {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


852
853
854
855
856
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 852

def slot_mode
  @builder.append ' -slotMode'
  yield @builder if block_given?
  self
end

#sort(sort) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


873
874
875
876
877
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 873

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

#stop_after(number) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


832
833
834
835
836
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 832

def stop_after(number)
  @builder.append " -stopAfter:#{@builder.format number}"
  yield @builder if block_given?
  self
end

#user(user_name) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


842
843
844
845
846
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 842

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

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

Yields:

  • (@builder)


827
828
829
830
831
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 827

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