Class: MDT::DirectoryChoosers::Base

Inherits:
Object
  • Object
show all
Includes:
Extensible
Defined in:
lib/mdt/directory_choosers/base.rb

Overview

A base class for directory choosers

Instance Method Summary collapse

Methods included from Extensible

included

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, options = {})
  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, options = {})
  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, options = {})
  raise MDT::Errors::OverrideNeeded.new('rm')
end