Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
735b0026
Commit
735b0026
authored
Dec 16, 2017
by
Damian Montero
Committed by
GitHub
Dec 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1513 from uberhacker/add-wp_cli-package
Add wp_cli package
parents
d222ba8d
ffb2291f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
packages/wp_cli.rb
packages/wp_cli.rb
+25
-0
No files found.
packages/wp_cli.rb
0 → 100644
View file @
735b0026
require
'package'
class
Wp_cli
<
Package
description
'The command line interface for WordPress'
homepage
'https://wp-cli.org/'
version
'1.4.1'
source_url
'https://raw.githubusercontent.com/wp-cli/wp-cli/release-1-4-1/VERSION'
source_sha256
'7d072b48526b023950e4c48db01e8c273554a6401119f5691e7589ba9bc65d9d'
binary_url
({
})
binary_sha256
({
})
depends_on
'php7'
unless
File
.
exists?
"
#{
CREW_PREFIX
}
/bin/php"
def
self
.
build
system
'wget https://github.com/wp-cli/wp-cli/releases/download/v1.4.1/wp-cli-1.4.1.phar'
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
'wp-cli-1.4.1.phar'
)
)
==
'325924cf161856f9478f2a154572698ecb5d1054e620843b9c43a7baf4e5ce3b'
end
def
self
.
install
system
"install -Dm755 wp-cli-1.4.1.phar
#{
CREW_DEST_PREFIX
}
/bin/wp"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment