Class: FluentCommandBuilder::Tf::V2010::History
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::History
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #format(format) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ History
constructor
A new instance of History.
- #item_mode {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #slot_mode {|@builder| ... } ⇒ Object
- #sort(sort) {|@builder| ... } ⇒ Object
- #stop_after(number) {|@builder| ... } ⇒ Object
- #user(user_name) {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ History
Returns a new instance of History.
870 871 872 873 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 870 def initialize(builder, item_spec) super builder @builder.append " history #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
925 926 927 928 929 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 925 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#format(format) {|@builder| ... } ⇒ Object
894 895 896 897 898 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 894 def format(format) @builder.append " /format:#{@builder.format format}" yield @builder if block_given? self end |
#item_mode {|@builder| ... } ⇒ Object
904 905 906 907 908 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 904 def item_mode @builder.append ' /itemMode' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
914 915 916 917 918 919 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 914 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
909 910 911 912 913 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 909 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
884 885 886 887 888 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 884 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#slot_mode {|@builder| ... } ⇒ Object
899 900 901 902 903 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 899 def slot_mode @builder.append ' /slotMode' yield @builder if block_given? self end |
#sort(sort) {|@builder| ... } ⇒ Object
920 921 922 923 924 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 920 def sort(sort) @builder.append " /sort:#{@builder.format sort}" yield @builder if block_given? self end |
#stop_after(number) {|@builder| ... } ⇒ Object
879 880 881 882 883 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 879 def stop_after(number) @builder.append " /stopAfter:#{@builder.format number}" yield @builder if block_given? self end |
#user(user_name) {|@builder| ... } ⇒ Object
889 890 891 892 893 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 889 def user(user_name) @builder.append " /user:#{@builder.format user_name}" yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
874 875 876 877 878 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 874 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |