Class: MDT::DirectoryChoosers::Base
- Inherits:
-
Object
- Object
- MDT::DirectoryChoosers::Base
- Includes:
- Extensible
- Defined in:
- lib/mdt/directory_choosers/base.rb
Overview
A base class for directory choosers
Instance Method Summary collapse
-
#cd(key, options = {}) ⇒ Object
A method that defines how to change the working directory to a deploy directory with directory choosers.
-
#mkdir(key, options = {}) ⇒ Object
A method that defines how to create a deploy directory with directory choosers.
-
#rm(key, options = {}) ⇒ Object
A method that defines how to remove a deploy directory with directory choosers.
Methods included from Extensible
Instance Method Details
#cd(key, options = {}) ⇒ Object
A method that defines how to change the working directory to a deploy directory with directory choosers. Raises MDT::Errors::OverrideNeeded. Arguments:
-
key- a key identifier of a particular directory chooser -
options- options for directory chooser as a Hash
24 25 26 |
# File 'lib/mdt/directory_choosers/base.rb', line 24 def cd(key, = {}) raise MDT::Errors::OverrideNeeded.new('cd') end |
#mkdir(key, options = {}) ⇒ Object
A method that defines how to create a deploy directory with directory choosers. Raises MDT::Errors::OverrideNeeded. Arguments:
-
key- a key identifier of a particular directory chooser -
options- options for directory chooser as a Hash
16 17 18 |
# File 'lib/mdt/directory_choosers/base.rb', line 16 def mkdir(key, = {}) raise MDT::Errors::OverrideNeeded.new('mkdir') end |
#rm(key, options = {}) ⇒ Object
A method that defines how to remove a deploy directory with directory choosers. Raises MDT::Errors::OverrideNeeded. Arguments:
-
key- a key identifier of a particular directory chooser -
options- options for directory chooser as a Hash
32 33 34 |
# File 'lib/mdt/directory_choosers/base.rb', line 32 def rm(key, = {}) raise MDT::Errors::OverrideNeeded.new('rm') end |