Class: FluentCommandBuilder::Tf::V2010::Unlabel

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, label_name, item_spec) ⇒ Unlabel

Returns a new instance of Unlabel.



1738
1739
1740
1741
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1738

def initialize(builder, label_name, item_spec)
  super builder
  @builder.append " unlabel #{@builder.format label_name} #{@builder.format item_spec}"
end

Instance Method Details

#collection(team_project_collection_url) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1742
1743
1744
1745
1746
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1742

def collection(team_project_collection_url)
  @builder.append " /collection:#{@builder.format team_project_collection_url}"
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


1752
1753
1754
1755
1756
1757
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1752

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

#recursive {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1747
1748
1749
1750
1751
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1747

def recursive
  @builder.append ' /recursive'
  yield @builder if block_given?
  self
end