Class: FluentCommandBuilder::Tf::V2010::FolderDiff
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::FolderDiff
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #filter(filter) {|@builder| ... } ⇒ Object
- #filter_local_paths_only {|@builder| ... } ⇒ Object
-
#initialize(builder, target_path, source_path = nil) ⇒ FolderDiff
constructor
A new instance of FolderDiff.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #view(view) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, target_path, source_path = nil) ⇒ FolderDiff
Returns a new instance of FolderDiff.
773 774 775 776 777 778 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 773 def initialize(builder, target_path, source_path=nil) super builder @builder.append ' folderDiff' @builder.append " #{@builder.format source_path}" unless source_path.nil? @builder.append " #{@builder.format target_path}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
789 790 791 792 793 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 789 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#filter(filter) {|@builder| ... } ⇒ Object
794 795 796 797 798 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 794 def filter(filter) @builder.append " /filter:#{@builder.format filter, ';'}" yield @builder if block_given? self end |
#filter_local_paths_only {|@builder| ... } ⇒ Object
799 800 801 802 803 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 799 def filter_local_paths_only @builder.append ' /filterLocalPathsOnly' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
804 805 806 807 808 809 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 804 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 |
#no_prompt {|@builder| ... } ⇒ Object
784 785 786 787 788 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 784 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
779 780 781 782 783 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 779 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#view(view) {|@builder| ... } ⇒ Object
810 811 812 813 814 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 810 def view(view) @builder.append " /view:#{@builder.format view, ','}" yield @builder if block_given? self end |