Class: FluentCommandBuilder::TeamFoundation::V100::View

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) ⇒ View

Returns a new instance of View.



1806
1807
1808
1809
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1806

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

Instance Method Details

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

Yields:

  • (@b)


1810
1811
1812
1813
1814
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1810

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

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

Yields:

  • (@b)


1815
1816
1817
1818
1819
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1815

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

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

Yields:

  • (@b)


1846
1847
1848
1849
1850
1851
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1846

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)


1836
1837
1838
1839
1840
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1836

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

#output(local_file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1825
1826
1827
1828
1829
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1825

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

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

Yields:

  • (@b)


1820
1821
1822
1823
1824
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1820

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

#shelveset(shelveset_name, shelveset_owner = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1830
1831
1832
1833
1834
1835
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1830

def shelveset(shelveset_name, shelveset_owner=nil)
  @b.append " /shelveset:#{@b.format shelveset_name}"
  @b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


1841
1842
1843
1844
1845
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1841

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