Class: FluentCommandBuilder::Tf::V2010::History

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_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.



870
871
872
873
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 870

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)


925
926
927
928
929
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 925

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)


894
895
896
897
898
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 894

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

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

Yields:

  • (@builder)


904
905
906
907
908
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 904

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

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

Yields:

  • (@builder)


914
915
916
917
918
919
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 914

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)


909
910
911
912
913
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 909

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

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

Yields:

  • (@builder)


884
885
886
887
888
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 884

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

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

Yields:

  • (@builder)


899
900
901
902
903
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 899

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

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

Yields:

  • (@builder)


920
921
922
923
924
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 920

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

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

Yields:

  • (@builder)


879
880
881
882
883
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 879

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

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

Yields:

  • (@builder)


889
890
891
892
893
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 889

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)


874
875
876
877
878
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 874

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