Class: FluentCommandBuilder::Tf::V2010::ShowWorkspaceMappings
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::ShowWorkspaceMappings
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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.
1850 1851 1852 1853 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1850 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
1854 1855 1856 1857 1858 1859 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1854 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 |