Sha256: b0f11f509d05a64645cd3da3be83e0c83481968beb9cf7883d7055a0a7dde088
Contents?: true
Size: 712 Bytes
Versions: 20
Compression:
Stored size: 712 Bytes
Contents
require "danger/danger_core/dangerfile_generator" # Mainly so we can have a nice structure for commands module Danger class DangerfileCommand < Runner self.summary = "Easily create you Dangerfiles." self.command = "dangerfile" self.abstract_command = true def self.options [] end end end # Just a less verbose way of doing the Dangerfile from `danger init`. module Danger class DangerfileInit < DangerfileCommand self.summary = "Create an example Dangerfile." self.command = "init" def run content = DangerfileGenerator.create_dangerfile(".", cork) File.write("Dangerfile", content) cork.puts "Created" + "./Dangerfile".green end end end
Version data entries
20 entries across 20 versions & 1 rubygems