Class: FluentCommandBuilder::Tf::TEE2010::Dir

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

Returns a new instance of Dir.



706
707
708
709
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 706

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

Instance Method Details

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

Yields:

  • (@builder)


736
737
738
739
740
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 736

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

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

Yields:

  • (@builder)


725
726
727
728
729
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 725

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

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

Yields:

  • (@builder)


720
721
722
723
724
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 720

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

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

Yields:

  • (@builder)


730
731
732
733
734
735
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 730

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

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

Yields:

  • (@builder)


715
716
717
718
719
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 715

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

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

Yields:

  • (@builder)


710
711
712
713
714
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 710

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