Class: FluentCommandBuilder::TeamFoundation::V100::Dir

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec) ⇒ Dir

Returns a new instance of Dir.



752
753
754
755
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 752

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

Instance Method Details

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

Yields:

  • (@b)


782
783
784
785
786
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 782

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

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

Yields:

  • (@b)


771
772
773
774
775
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 771

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


776
777
778
779
780
781
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 776

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


756
757
758
759
760
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 756

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