Class: FluentCommandBuilder::Tf::TEE2010::Dir
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Dir
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #deleted {|@builder| ... } ⇒ Object
- #folders {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Dir
constructor
A new instance of Dir.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Dir
Returns a new instance of Dir.
706 707 708 709 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 706 def initialize(builder, item_spec) super builder @builder.append " dir #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
736 737 738 739 740 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 736 def collection(team_project_collection_url) @builder.append " -collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#deleted {|@builder| ... } ⇒ Object
725 726 727 728 729 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 725 def deleted @builder.append ' -deleted' yield @builder if block_given? self end |
#folders {|@builder| ... } ⇒ Object
720 721 722 723 724 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 720 def folders @builder.append ' -folders' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
730 731 732 733 734 735 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 730 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
715 716 717 718 719 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 715 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
710 711 712 713 714 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 710 def version(version_spec) @builder.append " -version:#{@builder.format version_spec}" yield @builder if block_given? self end |