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.



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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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