Top Level Namespace

Defined Under Namespace

Modules: Kernel, Tesler Classes: As, Object, String

Instance Method Summary collapse

Instance Method Details

#directory(directory_name, &block) ⇒ Object

sets a directory where to copy files. If this directory doesn’t exist, it is created



2
3
4
# File 'lib/tesler/dsl.rb', line 2

def directory(directory_name, &block)
  Tesler::Copier.directory(directory_name.tesler, &block)
end

#reset_configObject

reinitializes the configuration



12
13
14
# File 'lib/tesler/dsl.rb', line 12

def reset_config
  Tesler::Config.reset
end

#run_in_test_modeObject

in test mode, tesler only logs its actions without effectively copying the files



17
18
19
# File 'lib/tesler/dsl.rb', line 17

def run_in_test_mode
  Tesler::Config.operator = Tesler::Operators::Logger
end

#source_directory(directory_name) ⇒ Object

sets the directory where the file that we are copying, are taken from



7
8
9
# File 'lib/tesler/dsl.rb', line 7

def source_directory(directory_name)
  Tesler::Config.source_directory = directory_name
end