Class: FluentCommandBuilder::Tf::V2010::View

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, item_spec) ⇒ View

Returns a new instance of View.



1790
1791
1792
1793
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1790

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

Instance Method Details

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

Yields:

  • (@builder)


1794
1795
1796
1797
1798
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1794

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

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

Yields:

  • (@builder)


1799
1800
1801
1802
1803
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1799

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

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

Yields:

  • (@builder)


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

def (username, password=nil)
  @builder.append " /login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

#no_prompt {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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