Module: ChefSpec::API::EcomDevStubsFileSystem
- Defined in:
- lib/ecomdev/chefspec/api/stubs/file_system.rb
Instance Method Summary collapse
- #stub_dir_glob(path, result = []) ⇒ Object
- #stub_file_exists(file, exists = true) ⇒ Object
- #stub_file_read(file, content, *additional_args) ⇒ Object
Instance Method Details
#stub_dir_glob(path, result = []) ⇒ Object
8 9 10 |
# File 'lib/ecomdev/chefspec/api/stubs/file_system.rb', line 8 def stub_dir_glob(path, result = []) EcomDev::ChefSpec::Stub::FileSystem.instance.dir_glob(path, result) end |
#stub_file_exists(file, exists = true) ⇒ Object
4 5 6 |
# File 'lib/ecomdev/chefspec/api/stubs/file_system.rb', line 4 def stub_file_exists(file, exists = true) EcomDev::ChefSpec::Stub::FileSystem.instance.file_exists(file, exists) end |
#stub_file_read(file, content, *additional_args) ⇒ Object
12 13 14 |
# File 'lib/ecomdev/chefspec/api/stubs/file_system.rb', line 12 def stub_file_read(file, content, *additional_args) EcomDev::ChefSpec::Stub::FileSystem.instance.file_read(file, content, *additional_args) end |