Class: FluentCommandBuilder::Tf::TEE2010::ShowWorkspaceMappings
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::ShowWorkspaceMappings
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
-
#initialize(builder, workspace_name) ⇒ ShowWorkspaceMappings
constructor
A new instance of ShowWorkspaceMappings.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, workspace_name) ⇒ ShowWorkspaceMappings
Returns a new instance of ShowWorkspaceMappings.
1673 1674 1675 1676 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1673 def initialize(builder, workspace_name) super builder @builder.append " workfold -workspace:#{@builder.format workspace_name}" end |
Instance Method Details
#login(username, password = nil) {|@builder| ... } ⇒ Object
1677 1678 1679 1680 1681 1682 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1677 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 |