Class: FluentCommandBuilder::Tf::V2010::ModifyWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::ModifyWorkspace
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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.
2044 2045 2046 2047 2048 2049 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2044 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
2060 2061 2062 2063 2064 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2060 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
2055 2056 2057 2058 2059 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2055 def comment(comment) @builder.append " /comment:#{@builder.format comment}" yield @builder if block_given? self end |
#computer(computer_name) {|@builder| ... } ⇒ Object
2050 2051 2052 2053 2054 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2050 def computer(computer_name) @builder.append " /computer:#{@builder.format computer_name}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
2070 2071 2072 2073 2074 2075 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2070 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
2076 2077 2078 2079 2080 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2076 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
2081 2082 2083 2084 2085 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2081 def new_owner(owner_name) @builder.append " /newOwner:#{@builder.format owner_name}" yield @builder if block_given? self end |
#permission(permission) {|@builder| ... } ⇒ Object
2065 2066 2067 2068 2069 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2065 def () @builder.append " /permission:#{@builder.format permission}" yield @builder if block_given? self end |