Sha256: dad7d890b75807a9cef11b22ee6e013a424fa783e2b497167ed1da89f146b5b1
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
module Danger # This is your plugin class. Any attributes or methods you expose here will # be available from within your Dangerfile. # # To be published on the Danger plugins site, you will need to have # the public interface documented. Danger uses [YARD](http://yardoc.org/) # for generating documentation from your plugin source, and you can verify # by running `danger plugins lint` or `bundle exec rake spec`. # # You should replace these comments with a public description of your library. # # @example Ensure people are well warned about merging on Mondays # # my_plugin.warn_on_mondays # # @see Kenji Tayama/danger-bloaty # @tags monday, weekends, time, rattata # class DangerBloaty < Plugin # An attribute that you can read/write from your Dangerfile # # @return [Array<String>] attr_accessor :my_attribute # A method that you can call from your Dangerfile # @return [Array<String>] # def warn_on_mondays warn 'Trying to merge code on a Monday' if Date.today.wday == 1 end def warn_just_for_test warn 'Just trying to test this danger plugin' end def notify_bloaty result = `bloaty #{ENV['DANGER_BLOATY_APP_BINARY_PATH']}` markdown '## bloaty result' markdown '```' markdown result markdown '```' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-bloaty-0.0.1 | lib/bloaty/plugin.rb |