Class: FluentCommandBuilder::Tf::TEE2010::Unlabel
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Unlabel
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, label_name, item_spec) ⇒ Unlabel
constructor
A new instance of Unlabel.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, label_name, item_spec) ⇒ Unlabel
Returns a new instance of Unlabel.
1609 1610 1611 1612 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1609 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
1613 1614 1615 1616 1617 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1613 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
1623 1624 1625 1626 1627 1628 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1623 def login(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
1618 1619 1620 1621 1622 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1618 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |