Module: Cucumber::Chef::Utility::DirHelper
- Included in:
- Cucumber::Chef::Utility
- Defined in:
- lib/cucumber/chef/utility/dir_helper.rb
Instance Method Summary collapse
Instance Method Details
#artifacts_dir ⇒ Object
44 45 46 47 48 |
# File 'lib/cucumber/chef/utility/dir_helper.rb', line 44 def artifacts_dir result = File.join(provider_dir, "artifacts") ensure_directory(result) result end |
#home_dir ⇒ Object
32 33 34 35 36 |
# File 'lib/cucumber/chef/utility/dir_helper.rb', line 32 def home_dir result = (ENV['CUCUMBER_CHEF_HOME'] || File.join(Cucumber::Chef.locate_parent(".chef"), ".cucumber-chef")) ensure_directory(result) result end |
#provider_dir ⇒ Object
38 39 40 41 42 |
# File 'lib/cucumber/chef/utility/dir_helper.rb', line 38 def provider_dir result = File.join(Cucumber::Chef.home_dir, Cucumber::Chef::Config.provider.to_s) ensure_directory(result) result end |
#root_dir ⇒ Object
28 29 30 |
# File 'lib/cucumber/chef/utility/dir_helper.rb', line 28 def root_dir File.(File.join(File.dirname(__FILE__), "..", "..", "..", ".."), File.dirname(__FILE__)) end |