Class: FluentCommandBuilder::Tf::V2010::View
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::View
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #console {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ View
constructor
A new instance of View.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #output(local_file) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #shelveset(shelveset_name, shelveset_owner = nil) {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
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
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
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
1830 1831 1832 1833 1834 1835 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1830 def login(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
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
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
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
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
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 |