Class: FluentCommandBuilder::Tf::V2010::LocalVersions
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::LocalVersions
- 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) ⇒ LocalVersions
constructor
A new instance of LocalVersions.
- #recursive {|@builder| ... } ⇒ Object
- #workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ LocalVersions
Returns a new instance of LocalVersions.
1023 1024 1025 1026 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1023 def initialize(builder, item_spec) super builder @builder.append " localVersions #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1043 1044 1045 1046 1047 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1043 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
1032 1033 1034 1035 1036 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1032 def format(format) @builder.append " /format:#{@builder.format format}" yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1027 1028 1029 1030 1031 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1027 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
1037 1038 1039 1040 1041 1042 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1037 def workspace(workspace_name, workspace_owner=nil) @builder.append " /workspace:#{@builder.format workspace_name}" @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil? yield @builder if block_given? self end |