Class: FluentCommandBuilder::Tf::V2010::Get
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Get
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #all {|@builder| ... } ⇒ Object
- #force {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec = nil) ⇒ Get
constructor
A new instance of Get.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #overwrite {|@builder| ... } ⇒ Object
- #preview {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #remap {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec = nil) ⇒ Get
817 818 819 820 821 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 817 def initialize(builder, item_spec=nil) super builder @builder.append ' get' @builder.append " #{@builder.format item_spec}" unless item_spec.nil? end |
Instance Method Details
#all {|@builder| ... } ⇒ Object
827 828 829 830 831 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 827 def all @builder.append ' /all' yield @builder if block_given? self end |
#force {|@builder| ... } ⇒ Object
837 838 839 840 841 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 837 def force @builder.append ' /force' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
862 863 864 865 866 867 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 862 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
857 858 859 860 861 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 857 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#overwrite {|@builder| ... } ⇒ Object
832 833 834 835 836 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 832 def overwrite @builder.append ' /overwrite' yield @builder if block_given? self end |
#preview {|@builder| ... } ⇒ Object
842 843 844 845 846 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 842 def preview @builder.append ' /preview' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
847 848 849 850 851 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 847 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#remap {|@builder| ... } ⇒ Object
852 853 854 855 856 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 852 def remap @builder.append ' /remap' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
822 823 824 825 826 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 822 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |