Class: FluentCommandBuilder::Tf::V2010::Dir
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Dir
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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.
736 737 738 739 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 736 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
766 767 768 769 770 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 766 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
755 756 757 758 759 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 755 def deleted @builder.append ' /deleted' yield @builder if block_given? self end |
#folders {|@builder| ... } ⇒ Object
750 751 752 753 754 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 750 def folders @builder.append ' /folders' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
760 761 762 763 764 765 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 760 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
745 746 747 748 749 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 745 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
740 741 742 743 744 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 740 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |