Class AutomateIt::ShellManager::BaseDriver
In: lib/automateit/shell_manager.rb
Parent: AutomateIt::Plugin::Driver

ShellManager::BaseDriver

Base class for all ShellManager drivers.

Methods

Public Instance methods

Returns derived filename to use as a peer given the source and target. This is necessary for differentiating between directory and file targets.

For example:

  # Get the peer for an extant target directory:
  peer_for("foo", "/tmp") # => "/tmp/foo"

  # Get the peer for anything else:
  peer_for("foo", "/bar") # => "/bar"

Protected Instance methods

Return array of all the directory‘s top-level contents, including hidden files with "." prefix on UNIX. Directories are returned just as a name, you‘ll need to expand those separately if needed.

Returns hash of verbosity and preview settings for FileUtils commands.

[Validate]