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
b3610c2a
Commit
b3610c2a
authored
Apr 09, 2018
by
Chris Thurber
Committed by
GitHub
Apr 09, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2222 from uberhacker/add-rack-package
Add rack package
parents
eddc0a44
7baf9a4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
packages/rack.rb
packages/rack.rb
+33
-0
No files found.
packages/rack.rb
0 → 100644
View file @
b3610c2a
require
'package'
class
Rack
<
Package
description
'The Rackspace Command Line Interface (rack CLI) is a unified tool for managing your Rackspace services.'
homepage
'https://github.com/rackspace/rack'
version
'1.2'
source_url
'https://raw.githubusercontent.com/rackspace/rack/1.2/README.md'
source_sha256
'2681ad55f204718cb8bcc8cbe0b2da66897f3310cb78576ae248a252a9b7f544'
binary_url
({
})
binary_sha256
({
})
depends_on
'go'
=>
:build
def
self
.
install
system
"go get github.com/rackspace/rack"
system
"cd ~/go/src/github.com/rackspace/rack && git checkout 1.2"
system
"install -Dm644 ~/go/src/github.com/rackspace/rack/setup/commandcompletion_bash.sh
#{
CREW_DEST_PREFIX
}
/share/rack/commandcompletion_bash.sh"
system
"go build -o
#{
CREW_DEST_PREFIX
}
/bin/rack github.com/rackspace/rack"
end
def
self
.
postinstall
puts
puts
"To add command completion in bash, execute the following:"
.
lightblue
puts
"echo 'if [ -f
#{
CREW_PREFIX
}
/share/rack/commandcompletion_bash.sh ]; then' >> ~/.bashrc"
.
lightblue
puts
"echo ' source
#{
CREW_PREFIX
}
/share/rack/commandcompletion_bash.sh' >> ~/.bashrc"
.
lightblue
puts
"echo 'fi' >> ~/.bashrc"
.
lightblue
puts
"source ~/.bashrc"
.
lightblue
puts
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