Class: FluentCommandBuilder::Tf::V2010::Undo
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Undo
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Undo
constructor
A new instance of Undo.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Undo
Returns a new instance of Undo.
1705 1706 1707 1708 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1705 def initialize(builder, item_spec) super builder @builder.append " undo #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1731 1732 1733 1734 1735 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1731 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
1725 1726 1727 1728 1729 1730 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1725 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 |
#no_prompt {|@builder| ... } ⇒ Object
1720 1721 1722 1723 1724 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1720 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1715 1716 1717 1718 1719 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1715 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
1709 1710 1711 1712 1713 1714 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1709 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 |