Class: FluentCommandBuilder::Tf::TEE2010::Label
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Label
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #child(lock_type) {|@builder| ... } ⇒ Object
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #comment(comment) {|@builder| ... } ⇒ Object
-
#initialize(builder, label_name, item_spec, scope = nil) ⇒ Label
constructor
A new instance of Label.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #owner(owner_name) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, label_name, item_spec, scope = nil) ⇒ Label
Returns a new instance of Label.
885 886 887 888 889 890 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 885 def initialize(builder, label_name, item_spec, scope=nil) super builder @builder.append " label #{@builder.format label_name}" @builder.append "@#{@builder.format scope}" unless scope.nil? @builder.append " #{@builder.format item_spec}" end |
Instance Method Details
#child(lock_type) {|@builder| ... } ⇒ Object
906 907 908 909 910 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 906 def child(lock_type) @builder.append " -child:#{@builder.format lock_type}" yield @builder if block_given? self end |
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
922 923 924 925 926 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 922 def collection(team_project_collection_url) @builder.append " -collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#comment(comment) {|@builder| ... } ⇒ Object
901 902 903 904 905 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 901 def comment(comment) @builder.append " -comment:#{@builder.format comment}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
916 917 918 919 920 921 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 916 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 |
#owner(owner_name) {|@builder| ... } ⇒ Object
891 892 893 894 895 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 891 def owner(owner_name) @builder.append " -owner:#{@builder.format owner_name}" yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
911 912 913 914 915 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 911 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
896 897 898 899 900 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 896 def version(version_spec) @builder.append " -version:#{@builder.format version_spec}" yield @builder if block_given? self end |