Class: FluentCommandBuilder::Tf::TEE2010::Lock
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Lock
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Lock
constructor
A new instance of Lock.
- #lock(lock_type) {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Lock
Returns a new instance of Lock.
976 977 978 979 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 976 def initialize(builder, item_spec) super builder @builder.append " lock #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1002 1003 1004 1005 1006 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1002 def collection(team_project_collection_url) @builder.append " -collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#lock(lock_type) {|@builder| ... } ⇒ Object
980 981 982 983 984 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 980 def lock(lock_type) @builder.append " -lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
996 997 998 999 1000 1001 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 996 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 |
#recursive {|@builder| ... } ⇒ Object
991 992 993 994 995 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 991 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |
#workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
985 986 987 988 989 990 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 985 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 |