Class: FluentCommandBuilder::Tf::V2010::Dir

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

Returns a new instance of Dir.



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

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)


766
767
768
769
770
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 766

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)


755
756
757
758
759
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 755

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

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

Yields:

  • (@builder)


750
751
752
753
754
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 750

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

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

Yields:

  • (@builder)


760
761
762
763
764
765
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 760

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)


745
746
747
748
749
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 745

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

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

Yields:

  • (@builder)


740
741
742
743
744
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 740

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