Class: FluentCommandBuilder::Tf::TEE2010::Lock

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_tee_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


996
997
998
999
1000
1001
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 996

def (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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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