Module: TestBench::Session::Controls::Path::ApexDirectory::Create
- Defined in:
- lib/test_bench/session/controls/path/apex_directory.rb
Class Method Summary collapse
Class Method Details
.call(name = nil) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/test_bench/session/controls/path/apex_directory.rb', line 27 def self.call(name=nil) name ||= Name.random apex_directory = ApexDirectory.example(name) ::Dir.mkdir(apex_directory) if ENV.fetch('DEBUG_PATH_CONTROLS', 'off') == 'on' warn "created directory '#{apex_directory}'" end apex_directory end |