Class: FluentCommandBuilder::Tf::TEE2010::Merges
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Merges
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #extended {|@builder| ... } ⇒ Object
- #format(format) {|@builder| ... } ⇒ Object
-
#initialize(builder, destination, source = nil) ⇒ Merges
constructor
A new instance of Merges.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #show_all {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, destination, source = nil) ⇒ Merges
1086 1087 1088 1089 1090 1091 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1086 def initialize(builder, destination, source=nil) super builder @builder.append ' merges' @builder.append " #{@builder.format source}" unless source.nil? @builder.append " #{@builder.format destination}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1118 1119 1120 1121 1122 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1118 def collection(team_project_collection_url) @builder.append " -collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#extended {|@builder| ... } ⇒ Object
1097 1098 1099 1100 1101 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1097 def extended @builder.append ' -extended' yield @builder if block_given? self end |
#format(format) {|@builder| ... } ⇒ Object
1102 1103 1104 1105 1106 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1102 def format(format) @builder.append " -format:#{@builder.format format}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1107 1108 1109 1110 1111 1112 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1107 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
1092 1093 1094 1095 1096 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1092 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |
#show_all {|@builder| ... } ⇒ Object
1113 1114 1115 1116 1117 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1113 def show_all @builder.append ' -showAll' yield @builder if block_given? self end |