Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate dependence on ruby... #5

Closed
dexterous opened this issue Apr 8, 2014 · 7 comments
Closed

Eliminate dependence on ruby... #5

dexterous opened this issue Apr 8, 2014 · 7 comments

Comments

@dexterous
Copy link
Contributor

... for obvious reasons! 😜

@kdabir
Copy link
Owner

kdabir commented Apr 8, 2014

So if we go for pure shell script, then there would be no ruby.

Currently mapping of groups/profiles (like java_dev) to their corresponding tools (java, ant, maven) etc was major PITA in bash so I thought of using ruby to generate the bash scripts per profile.

@dexterous
Copy link
Contributor Author

Keep an eye on https://github.com/dexterous/dq/tree/bash-only

I'm trying to migrate all the config into a BASH friendly data structure (not ready yet).

@dexterous
Copy link
Contributor Author

Check it out!

$ curl -sL https://github.com/dexterous/dq/raw/bash-only/dq | bash -s -- -c
✔ git
✔ vi
✔ curl
✔ python
✔ perl
✘ node
✔ java
✔ ruby
✔ golang
✔ javac
✔ ant
✔ mvn
✔ gradle
✔ groovy
✔ groovyc
✘ lazybones
✘ emacs
✘ clj
✔ lein
✔ bundler
✔ gem
✔ rvm
✔ rake
✔ virtualenv
✘ scala
✘ scalac
✘ sbt
✘ npm
✘ grunt
✘ bower
✘ yoeman
✘ coffee
✘ sass
✔ mysql server
✔ mysql client
✘ postgres server
✘ postgres client
✘ mongo server
✘ mongo client

Your dq is 22 / 39

@kdabir
Copy link
Owner

kdabir commented Apr 9, 2014

looks nice. One small problem, scala has weird exit code which makes this script report always false for it

@dexterous
Copy link
Contributor Author

Damn scala! Will fix that soon.

@dexterous
Copy link
Contributor Author

Success 😎 !

FIxed the scala issue and reduced it to a single script!!! This should just be a gist now. 😉

$ curl -sL https://github.com/dexterous/dq/raw/bash-only/dq | bash -s --
✔ git
✔ vi
✔ curl
✔ python
✔ perl
✘ node
✔ java
✔ ruby
✔ golang

Your dq is 8 / 9
$ curl -sL https://github.com/dexterous/dq/raw/bash-only/dq | bash -s -- all
✔ git
✔ vi
✔ curl                                                                                                                                                                                                                           
✔ python                                                                                                                                                                                                                         
✔ perl                                                                                                                                                                                                                           
✘ node                                                                                                                                                                                                                           
✔ java                                                                                                                                                                                                                           
✔ ruby                                                                                                                                                                                                                           
✔ golang                                                                                                                                                                                                                         
✔ javac                                                                                                                                                                                                                          
✔ ant                                                                                                                                                                                                                            
✔ mvn                                                                                                                                                                                                                            
✔ gradle                                                                                                                                                                                                                         
✔ groovy                                                                                                                                                                                                                         
✔ groovyc                                                                                                                                                                                                                        
✘ lazybones                                                                                                                                                                                                                      
✘ emacs                                                                                                                                                                                                                          
✘ clj                                                                                                                                                                                                                            
✔ lein                                                                                                                                                                                                                           
✔ bundler                                                                                                                                                                                                                        
✔ gem
✔ rvm
✔ rake
✔ virtualenv
✘ scala
✘ scalac
✘ sbt
✘ npm
✘ grunt
✘ bower
✘ yoeman
✘ coffee
✘ sass
✔ mysql
✔ mysql
✘ postgres
✘ postgres
✘ mongo
✘ mongo

Your dq is 22 / 39
$ curl -sL https://github.com/dexterous/dq/raw/bash-only/dq | bash -s -- --only java
✔ javac
✔ ant
✔ mvn
✔ gradle

Your dq is 4 / 4
$

@dexterous dexterous mentioned this issue Apr 17, 2014
@kdabir
Copy link
Owner

kdabir commented Aug 28, 2017

Also as a default, from 59a3369 onwards, no dependencies

@kdabir kdabir closed this as completed Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants