Class: FluentCommandBuilder::TeamFoundationTEE::V100::Get

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_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.



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

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)


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

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

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

Yields:

  • (@b)


765
766
767
768
769
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 765

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

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

Yields:

  • (@b)


790
791
792
793
794
795
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 790

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)


785
786
787
788
789
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 785

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


770
771
772
773
774
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 770

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

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

Yields:

  • (@b)


775
776
777
778
779
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 775

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

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

Yields:

  • (@b)


780
781
782
783
784
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 780

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

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

Yields:

  • (@b)


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

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