Module: Terraspace::Util
- Extended by:
- Util
- Includes:
- Logging, Sh, Sure
- Included in:
- CLI::Base, CLI::New::Source::Core, Compiler::Cleaner::BackendChange, Compiler::Writer, Mod, Seeder, Terraform::Hooks::Builder, Terraform::Runner, Util
- Defined in:
- lib/terraspace/util.rb,
lib/terraspace/util/sh.rb,
lib/terraspace/util/sure.rb,
lib/terraspace/util/logging.rb
Defined Under Namespace
Modules: Logging, Sh, Sure
Instance Method Summary
collapse
Methods included from Sure
#sure?
Methods included from Sh
#sh
Methods included from Logging
#logger
Instance Method Details
#pretty_path(path) ⇒ Object
7
8
9
|
# File 'lib/terraspace/util.rb', line 7
def pretty_path(path)
ENV['TS_TEST'] ? path : path.sub("#{Terraspace.root}/",'')
end
|