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.



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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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