Class: FluentCommandBuilder::TeamFoundation::V100::Get

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 = nil) ⇒ Get

Returns a new instance of Get.



832
833
834
835
836
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 832

def initialize(underlying_builder, item_spec=nil)
  super underlying_builder
  @b.append ' get'
  @b.append " #{@b.format item_spec}" unless item_spec.nil?
end

Instance Method Details

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

Yields:

  • (@b)


842
843
844
845
846
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 842

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

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

Yields:

  • (@b)


852
853
854
855
856
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 852

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

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

Yields:

  • (@b)


877
878
879
880
881
882
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 877

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

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

Yields:

  • (@b)


872
873
874
875
876
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 872

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

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

Yields:

  • (@b)


847
848
849
850
851
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 847

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

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

Yields:

  • (@b)


857
858
859
860
861
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 857

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

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

Yields:

  • (@b)


862
863
864
865
866
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 862

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

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

Yields:

  • (@b)


867
868
869
870
871
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 867

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

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

Yields:

  • (@b)


837
838
839
840
841
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 837

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