Class: FluentCommandBuilder::Tf::TEE2010::CreateWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::CreateWorkspace
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #comment(comment) {|@builder| ... } ⇒ Object
- #computer(computer_name) {|@builder| ... } ⇒ Object
-
#initialize(builder, workspace_name, workspace_owner = nil) ⇒ CreateWorkspace
constructor
A new instance of CreateWorkspace.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #permission(permission) {|@builder| ... } ⇒ Object
- #template(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, workspace_name, workspace_owner = nil) ⇒ CreateWorkspace
Returns a new instance of CreateWorkspace.
1805 1806 1807 1808 1809 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1805 def initialize(builder, workspace_name, workspace_owner=nil) super builder @builder.append " workspace -new #{@builder.format workspace_name}" @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil? end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1831 1832 1833 1834 1835 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1831 def collection(team_project_collection_url) @builder.append " -collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#comment(comment) {|@builder| ... } ⇒ Object
1826 1827 1828 1829 1830 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1826 def comment(comment) @builder.append " -comment:#{@builder.format comment}" yield @builder if block_given? self end |
#computer(computer_name) {|@builder| ... } ⇒ Object
1821 1822 1823 1824 1825 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1821 def computer(computer_name) @builder.append " -computer:#{@builder.format computer_name}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1841 1842 1843 1844 1845 1846 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1841 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
1810 1811 1812 1813 1814 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1810 def no_prompt @builder.append ' -noPrompt' yield @builder if block_given? self end |
#permission(permission) {|@builder| ... } ⇒ Object
1836 1837 1838 1839 1840 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1836 def () @builder.append " -permission:#{@builder.format }" yield @builder if block_given? self end |
#template(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
1815 1816 1817 1818 1819 1820 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1815 def template(workspace_name, workspace_owner=nil) @builder.append " -template:#{@builder.format workspace_name}" @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil? yield @builder if block_given? self end |