Class: FluentCommandBuilder::Tf::TEE2010::ShowWorkspaceMappings

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_tee_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

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

Yields:

  • (@builder)


1677
1678
1679
1680
1681
1682
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1677

def (username, password=nil)
  @builder.append " -login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end