Class: FluentCommandBuilder::Tf::V2010::Resolve
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Resolve
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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.
1394 1395 1396 1397 1398 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1394 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
1399 1400 1401 1402 1403 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1399 def auto(resolution) @builder.append " /auto:#{@builder.format resolution}" yield @builder if block_given? self end |
#convert_to_type(convert_type) {|@builder| ... } ⇒ Object
1414 1415 1416 1417 1418 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1414 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
1434 1435 1436 1437 1438 1439 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1434 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
1424 1425 1426 1427 1428 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1424 def new_name(path) @builder.append " /newName:#{@builder.format path}" yield @builder if block_given? self end |
#no_prompt {|@builder| ... } ⇒ Object
1429 1430 1431 1432 1433 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1429 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#override_type(override_type) {|@builder| ... } ⇒ Object
1409 1410 1411 1412 1413 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1409 def override_type(override_type) @builder.append " /overrideType:#{@builder.format override_type}" yield @builder if block_given? self end |
#preview {|@builder| ... } ⇒ Object
1404 1405 1406 1407 1408 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1404 def preview @builder.append ' /preview' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1419 1420 1421 1422 1423 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1419 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |