Class: FluentCommandBuilder::Tf::TEE2010::Label

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, label_name, item_spec, scope = nil) ⇒ Label

Returns a new instance of Label.



885
886
887
888
889
890
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 885

def initialize(builder, label_name, item_spec, scope=nil)
  super builder
  @builder.append " label #{@builder.format label_name}"
  @builder.append "@#{@builder.format scope}" unless scope.nil?
  @builder.append " #{@builder.format item_spec}"
end

Instance Method Details

#child(lock_type) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


906
907
908
909
910
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 906

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

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

Yields:

  • (@builder)


922
923
924
925
926
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 922

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

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

Yields:

  • (@builder)


901
902
903
904
905
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 901

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

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

Yields:

  • (@builder)


916
917
918
919
920
921
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 916

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

#owner(owner_name) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


891
892
893
894
895
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 891

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

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

Yields:

  • (@builder)


911
912
913
914
915
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 911

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

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

Yields:

  • (@builder)


896
897
898
899
900
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 896

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