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
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 |