Class: Danger::DangerfileInit

Inherits:
DangerfileCommand show all
Defined in:
lib/danger/commands/dangerfile/init.rb

Instance Attribute Summary

Attributes inherited from Runner

#cork

Instance Method Summary collapse

Methods inherited from DangerfileCommand

options

Methods inherited from Runner

#initialize, options, #validate!

Constructor Details

This class inherits a constructor from Danger::Runner

Instance Method Details

#runObject



24
25
26
27
28
# File 'lib/danger/commands/dangerfile/init.rb', line 24

def run
  content = DangerfileGenerator.create_dangerfile(".", cork)
  File.write("Dangerfile", content)
  cork.puts "Created" + "./Dangerfile".green
end