Class: FluentCommandBuilder::Tf::TEE2010::ModifyWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::ModifyWorkspace
- 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 = nil, workspace_owner = nil) ⇒ ModifyWorkspace
constructor
A new instance of ModifyWorkspace.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #new_name(workspace_name) {|@builder| ... } ⇒ Object
- #new_owner(owner_name) {|@builder| ... } ⇒ Object
- #permission(permission) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, workspace_name = nil, workspace_owner = nil) ⇒ ModifyWorkspace
Returns a new instance of ModifyWorkspace.
1867 1868 1869 1870 1871 1872 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1867 def initialize(builder, workspace_name=nil, workspace_owner=nil) super builder @builder.append ' workspace ' @builder.append "#{@builder.format workspace_name}" unless workspace_name.nil? @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil? end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1883 1884 1885 1886 1887 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1883 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
1878 1879 1880 1881 1882 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1878 def comment(comment) @builder.append " -comment:#{@builder.format comment}" yield @builder if block_given? self end |
#computer(computer_name) {|@builder| ... } ⇒ Object
1873 1874 1875 1876 1877 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1873 def computer(computer_name) @builder.append " -computer:#{@builder.format computer_name}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1893 1894 1895 1896 1897 1898 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1893 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 |
#new_name(workspace_name) {|@builder| ... } ⇒ Object
1899 1900 1901 1902 1903 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1899 def new_name(workspace_name) @builder.append " -newName:#{@builder.format workspace_name}" yield @builder if block_given? self end |
#new_owner(owner_name) {|@builder| ... } ⇒ Object
1904 1905 1906 1907 1908 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1904 def new_owner(owner_name) @builder.append " -newOwner:#{@builder.format owner_name}" yield @builder if block_given? self end |
#permission(permission) {|@builder| ... } ⇒ Object
1888 1889 1890 1891 1892 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1888 def () @builder.append " -permission:#{@builder.format }" yield @builder if block_given? self end |