Class: FluentCommandBuilder::Tf::V2010::DeleteWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::DeleteWorkspace
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, workspace_name, workspace_owner = nil) ⇒ DeleteWorkspace
constructor
A new instance of DeleteWorkspace.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, workspace_name, workspace_owner = nil) ⇒ DeleteWorkspace
Returns a new instance of DeleteWorkspace.
2026 2027 2028 2029 2030 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2026 def initialize(builder, workspace_name, workspace_owner=nil) super builder @builder.append " workspace /delete #{@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
2031 2032 2033 2034 2035 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2031 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
2036 2037 2038 2039 2040 2041 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2036 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 |