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.



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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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