Sha256: f9a292eb0cc29bf54ea89114c46d9835012e6bc769c66d5b9f48bc2b32afd237

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

#!/usr/bin/env ruby
# @encoding: utf-8
# @author: Sascha Manns
# @abstract: hoe-rubocop
#
# Copyright (c) 2015 Sascha Manns <samannsml@directbox.com>
# License: MIT

# Dependencies
require 'fileutils'

# Main module for hoe-rubocop
module Hoe::Rubocop
  VERSION = '1.0.4'

  attr_accessor :rubocop

  # Initialize plugin
  def initialize_rubocop
    require 'rubocop/rake_task'
  end

  # Define the Rubocop Rake task
  def define_rubocop_tasks
    FileUtils.rm_rf('pkg') if File.exist?('pkg')
    RuboCop::RakeTask.new(:rubocop)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hoe-rubocop-1.0.4 lib/hoe/rubocop.rb