Class: FluentCommandBuilder::Tf::V2010::Workspaces
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Workspaces
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #computer(computer_name) {|@builder| ... } ⇒ Object
- #format(format) {|@builder| ... } ⇒ Object
-
#initialize(builder, workspace_name = nil) ⇒ Workspaces
constructor
A new instance of Workspaces.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #owner(owner_name) {|@builder| ... } ⇒ Object
- #update_computer_name(old_computer_name) {|@builder| ... } ⇒ Object
- #update_user_name(old_user_name) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, workspace_name = nil) ⇒ Workspaces
Returns a new instance of Workspaces.
2088 2089 2090 2091 2092 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2088 def initialize(builder, workspace_name=nil) super builder @builder.append ' workspaces' @builder.append " #{@builder.format workspace_name}" unless workspace_name.nil? end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
2103 2104 2105 2106 2107 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2103 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#computer(computer_name) {|@builder| ... } ⇒ Object
2098 2099 2100 2101 2102 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2098 def computer(computer_name) @builder.append " /computer:#{@builder.format computer_name}" yield @builder if block_given? self end |
#format(format) {|@builder| ... } ⇒ Object
2108 2109 2110 2111 2112 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2108 def format(format) @builder.append " /format:#{@builder.format format}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
2123 2124 2125 2126 2127 2128 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2123 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 |
#owner(owner_name) {|@builder| ... } ⇒ Object
2093 2094 2095 2096 2097 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2093 def owner(owner_name) @builder.append " /owner:#{@builder.format owner_name}" yield @builder if block_given? self end |
#update_computer_name(old_computer_name) {|@builder| ... } ⇒ Object
2118 2119 2120 2121 2122 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2118 def update_computer_name(old_computer_name) @builder.append " /updateComputerName:#{@builder.format old_computer_name}" yield @builder if block_given? self end |
#update_user_name(old_user_name) {|@builder| ... } ⇒ Object
2113 2114 2115 2116 2117 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2113 def update_user_name(old_user_name) @builder.append " /updateUserName:#{@builder.format old_user_name}" yield @builder if block_given? self end |