Class: Danger::DangerfileInit
- Inherits:
-
DangerfileCommand
- Object
- CLAide::Command
- Runner
- DangerfileCommand
- Danger::DangerfileInit
- Defined in:
- lib/danger/commands/dangerfile/init.rb
Instance Attribute Summary
Attributes inherited from Runner
Instance Method Summary collapse
Methods inherited from DangerfileCommand
Methods inherited from Runner
#initialize, options, #validate!
Constructor Details
This class inherits a constructor from Danger::Runner
Instance Method Details
#run ⇒ Object
26 27 28 29 30 |
# File 'lib/danger/commands/dangerfile/init.rb', line 26 def run content = DangerfileGenerator.create_dangerfile(".", cork) File.write("Dangerfile", content) cork.puts "Created#{'./Dangerfile'.green}" end |