Class: FluentCommandBuilder::Tf::V2010::DeleteLabel
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::DeleteLabel
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, label_name, item_spec, scope = nil) ⇒ DeleteLabel
constructor
A new instance of DeleteLabel.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, label_name, item_spec, scope = nil) ⇒ DeleteLabel
Returns a new instance of DeleteLabel.
976 977 978 979 980 981 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 976 def initialize(builder, label_name, item_spec, scope=nil) super builder @builder.append " label /delete #{@builder.format label_name}" @builder.append "@#{@builder.format scope}" unless scope.nil? @builder.append " #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
988 989 990 991 992 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 988 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
982 983 984 985 986 987 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 982 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 |