Class: FluentCommandBuilder::Tf::TEE2010::ShowLocalFolderMapping

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, local_folder) ⇒ ShowLocalFolderMapping

Returns a new instance of ShowLocalFolderMapping.



1661
1662
1663
1664
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1661

def initialize(builder, local_folder)
  super builder
  @builder.append " workfold #{@builder.format local_folder}"
end

Instance Method Details

#login(username, password = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1665
1666
1667
1668
1669
1670
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1665

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