Class: FluentCommandBuilder::Tf::V2010::FolderDiff

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, 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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


804
805
806
807
808
809
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 804

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

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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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