Class: FluentCommandBuilder::Tf::TEE2010::Resolve
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Resolve
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #auto(resolution) {|@builder| ... } ⇒ Object
- #convert_to_type(convert_type) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec = nil) ⇒ Resolve
constructor
A new instance of Resolve.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #new_name(path) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #override_type(override_type) {|@builder| ... } ⇒ Object
- #preview {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec = nil) ⇒ Resolve
Returns a new instance of Resolve.
1341 1342 1343 1344 1345 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1341 def initialize(builder, item_spec=nil) super builder @builder.append ' resolve' @builder.append " #{@builder.format item_spec}" unless item_spec.nil? end |
Instance Method Details
#auto(resolution) {|@builder| ... } ⇒ Object
1346 1347 1348 1349 1350 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1346 def auto(resolution) @builder.append " -auto:#{@builder.format resolution}" yield @builder if block_given? self end |
#convert_to_type(convert_type) {|@builder| ... } ⇒ Object
1361 1362 1363 1364 1365 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1361 def convert_to_type(convert_type) @builder.append " -convertToType:#{@builder.format convert_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1381 1382 1383 1384 1385 1386 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1381 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 |
#new_name(path) {|@builder| ... } ⇒ Object
1371 1372 1373 1374 1375 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1371 def new_name(path) @builder.append " -newName:#{@builder.format path}" yield @builder if block_given? self end |
#no_prompt {|@builder| ... } ⇒ Object
1376 1377 1378 1379 1380 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1376 def no_prompt @builder.append ' -noPrompt' yield @builder if block_given? self end |
#override_type(override_type) {|@builder| ... } ⇒ Object
1356 1357 1358 1359 1360 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1356 def override_type(override_type) @builder.append " -overrideType:#{@builder.format override_type}" yield @builder if block_given? self end |
#preview {|@builder| ... } ⇒ Object
1351 1352 1353 1354 1355 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1351 def preview @builder.append ' -preview' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1366 1367 1368 1369 1370 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1366 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |