mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* Rename IgnoredPatterns to AllowedPatterns. * Exclude docopt.rb (not our code) from Rubocop * Disable Style/RedundantReturn * Disable Style/MutableConstant * Disable Style/NumericLiterals * Set Layout/IndentationStyle to spaces * Temporarily disable various cops. * Add Rubocop CI via Octocop * Lint tree with rubocop -A -c .rubocop.yml Co-authored-by: Satadru Pramanik <satadru@gmail.com>
18 lines
624 B
Ruby
18 lines
624 B
Ruby
require 'package'
|
|
|
|
class Mywanip < Package
|
|
description 'Script to grab your WAN IP address using various means.'
|
|
homepage 'https://gist.github.com/DennisLfromGA/ab40940d37be84ae3a88'
|
|
version 'ab4094'
|
|
license 'all-rights-reserved'
|
|
compatibility 'all'
|
|
source_url 'https://gist.github.com/DennisLfromGA/ab40940d37be84ae3a88/archive/b583835e8b2cb7edefc7ccbb911cb8eaf172d341.zip'
|
|
source_sha256 '789d22cfa60a40cf60d59e561500cd27e39ac03ecff2e948111a2a07f830fd67'
|
|
|
|
def self.install
|
|
system 'chmod +x mywanip'
|
|
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
|
|
system "cp mywanip #{CREW_DEST_PREFIX}/bin"
|
|
end
|
|
end
|