andresgap / coconut Goto Github PK
View Code? Open in Web Editor NEWLocal customer configuration switcher
Local customer configuration switcher
esoto@Estebans-MacBook-Air /development/gap/coconut 2.2.8 develop ? ./install.sh ✔ 10217 15:37:13
========== Welcome to Coconut ==========
· Coconut is a friendy Gem to dinamically change the configurations of your project.
• Remove previous version
➜ Previous version found!
Cleaning up installed gems...
Clean Up Complete
✔ Old Coconut version was successfully removed
• Installing coconut
- Running bundle install
Note: cmd: bundle install
Using rake 10.5.0
Using bundler 1.17.1
Using coconut 0.1.5 from source at '.'
Using thor 0.20.3
Bundle complete! 4 Gemfile dependencies, 4 gems now installed.
Use 'bundle info [gemname]' to see where a bundled gem is installed.
- Installing gem coconut-0.1.5.gem
Note: cmd: gem install ./coconut-0.1.5.gem
Successfully installed coconut-0.1.5
Parsing documentation for coconut-0.1.5
Done installing documentation for coconut after 0 seconds
1 gem installed
✔ Coconut was successfully installed
• Setting coconut configuration
"Creating config folder at /Users/esoto/.coconut/"
/Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/coconut-0.1.5/lib/coconut/config_folder.rb:41:in 'create_folder': uninitialized constant Coconut::ConfigFolder::FileUtils (NameError)
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/coconut-0.1.5/lib/coconut/config_folder.rb:37:in 'create_customers_folder'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/coconut-0.1.5/lib/coconut/config_folder.rb:18:in 'install'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/coconut-0.1.5/lib/coconut/global.rb:6:in 'install'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/coconut-0.1.5/lib/coconut/cli.rb:8:in 'install'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/thor-0.20.3/lib/thor/command.rb:27:in 'run'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in 'invoke_command'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/thor-0.20.3/lib/thor.rb:387:in 'dispatch'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/thor-0.20.3/lib/thor/base.rb:466:in 'start'
from /Users/esoto/.rbenv/versions/2.2.8/lib/ruby/gems/2.2.0/gems/coconut-0.1.5/bin/coconut:4:in '<top (required)>'
from /Users/esoto/.rbenv/versions/2.2.8/bin/coconut:23:in 'load'
from /Users/esoto/.rbenv/versions/2.2.8/bin/coconut:23:in '<main>'
✔ Coconut was successfully setted up
missing gem maybe
$ coconut swap local
Swapping the configuration for local
Swapping database.yml ...
/Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/command_interface.rb:23:in `block in execute': usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file (RuntimeError)
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
from /Users/esteban/.rvm/rubies/ruby-2.2.8/lib/ruby/2.2.0/open3.rb:199:in `popen_run'
from /Users/esteban/.rvm/rubies/ruby-2.2.8/lib/ruby/2.2.0/open3.rb:93:in `popen3'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/command_interface.rb:22:in `execute'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/command_interface.rb:8:in `copy'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/app.rb:47:in `switch_file'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/app.rb:15:in `block in swap'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/app.rb:15:in `each'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/app.rb:15:in `swap'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/lib/coconut/cli.rb:23:in `swap'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
from /Users/esteban/.rvm/gems/ruby-2.2.8/gems/coconut-0.1.5/bin/coconut:4:in `<top (required)>'
from /Users/esteban/.rvm/gems/ruby-2.2.8/bin/coconut:23:in `load'
from /Users/esteban/.rvm/gems/ruby-2.2.8/bin/coconut:23:in `<main>'
from /Users/esteban/.rvm/gems/ruby-2.2.8/bin/ruby_executable_hooks:24:in `eval'
from /Users/esteban/.rvm/gems/ruby-2.2.8/bin/ruby_executable_hooks:24:in `<main>'
/coconut$ ./install.sh
========== Welcome to Coconut ==========
· Coconut is a friendy Gem to dinamically change the configurations of your project.
• Remove previous version
• Installing coconut
Running bundle install
Note: cmd: bundle install
You have one or more invalid gemspecs that need to be fixed.
The gemspec at /home/user/coconut/coconut.gemspec is not valid. Please fix this gemspec.
The validation error was '"TODO: Put your gem's website or public repo URL here." is not a valid HTTP URI'
WARNING: See http://guides.rubygems.org/specification-reference/ for help
ERROR: While executing gem ... (Gem::InvalidSpecificationException)
"TODO: Put your gem's website or public repo URL here." is not a valid HTTP URI
Installing gem
Note: cmd: gem install ./
ERROR: Could not find a valid gem './' (>= 0) in any repository
• Setting coconut configuration
./install.sh: line 81: coconut: command not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.