Method: Thor::Actions::EmptyDirectory#initialize

Defined in:
lib/thor/actions/empty_directory.rb

#initialize(base, destination, config = {}) ⇒ EmptyDirectory

Initializes given the source and destination.

Parameters

base<Thor::Base>

A Thor::Base instance

source<String>

Relative path to the source of this file

destination<String>

Relative path to the destination of this file

config<Hash>

give :verbose => false to not log the status.



34
35
36
37
# File 'lib/thor/actions/empty_directory.rb', line 34

def initialize(base, destination, config = {})
  @base, @config   = base, {:verbose => true}.merge(config)
  self.destination = destination
end