Class: FluentCommandBuilder::Tf::V2010::ShowLocalFolderMapping

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_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.



1838
1839
1840
1841
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1838

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)


1842
1843
1844
1845
1846
1847
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1842

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