Class: FluentCommandBuilder::Tf::V2010::CloakFolder
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::CloakFolder
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, server_folder) ⇒ CloakFolder
constructor
A new instance of CloakFolder.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, server_folder) ⇒ CloakFolder
Returns a new instance of CloakFolder.
1936 1937 1938 1939 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1936 def initialize(builder, server_folder) super builder @builder.append " workfold /cloak #{@builder.format server_folder}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1952 1953 1954 1955 1956 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1952 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
1940 1941 1942 1943 1944 1945 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1940 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 |
#workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
1946 1947 1948 1949 1950 1951 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1946 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 |