Class: FluentCommandBuilder::Tf::V2010::ShowWorkspaceMappings

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, 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

Yields:

  • (@builder)


1854
1855
1856
1857
1858
1859
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1854

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