Class: Danger::DangerfileGenerator
- Inherits:
-
Object
- Object
- Danger::DangerfileGenerator
- Defined in:
- lib/danger/danger_core/dangerfile_generator.rb
Class Method Summary collapse
-
.create_dangerfile(_path, _ui) ⇒ Object
returns the string for a Dangerfile based on a folder’s contents’.
Class Method Details
.create_dangerfile(_path, _ui) ⇒ Object
returns the string for a Dangerfile based on a folder’s contents’
4 5 6 7 8 9 |
# File 'lib/danger/danger_core/dangerfile_generator.rb', line 4 def self.create_dangerfile(_path, _ui) # Use this template for now, but this is a really ripe place to # improve now! dir = Danger.gem_path File.read(File.join(dir, "lib", "assets", "DangerfileTemplate")) end |