nistude / guard-knife Goto Github PK
View Code? Open in Web Editor NEWGuard for Chef using knife to upload files
License: MIT License
Guard for Chef using knife to upload files
License: MIT License
I installed guard-knife.
created a Guardfile with guard init knife
and run guard
when i change the cookbook file, it gets upload the first time and i get the error below. after that, even if i change the file, it doesn't get uploaded.
In case you are wondering about the dev env
[arun@phenom chef]$ gem list|grep guard
guard (2.7.0)
guard-knife (0.1.2)
guard-rspec (4.3.1)
[arun@phenom chef]$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.1
- RUBY VERSION: 2.1.3 (2014-09-19 patchlevel 242) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/arun/.chefdk/gem/ruby/2.1.0
- RUBY EXECUTABLE: /opt/chefdk/embedded/bin/ruby
- EXECUTABLE DIRECTORY: /home/arun/.chefdk/gem/ruby/2.1.0/bin
- SPEC CACHE DIRECTORY: /home/arun/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /opt/chefdk/embedded/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/arun/.chefdk/gem/ruby/2.1.0
- /opt/chefdk/embedded/lib/ruby/gems/2.1.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--user"
- "update" => "--user"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /opt/chefdk/bin
- /home/arun/.chefdk/gem/ruby/2.1.0/bin
- /opt/chefdk/embedded/bin
- /usr/local/bin
- /usr/local/sbin
- /usr/bin
- /usr/sbin
- /bin
- /sbin
- /home/arun/.local/bin
- /home/arun/bin
- /home/arun/.local/bin
- /home/arun/bin
17:11:30 - INFO - Guard is now watching at '/home/arun/workspace/atlas/chef'
ERROR: Could not find cookbook kolab in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
17:11:42 - ERROR - Guard::Knife failed to achieve its <run_on_change>, exception was:
> [#] Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 23053
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ruby_gntp-0.3.4/lib/ruby_gntp.rb:155:in `initialize'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ruby_gntp-0.3.4/lib/ruby_gntp.rb:155:in `open'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ruby_gntp-0.3.4/lib/ruby_gntp.rb:155:in `send_and_recieve'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ruby_gntp-0.3.4/lib/ruby_gntp.rb:90:in `register'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/notifiers/gntp.rb:87:in `_register!'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/notifiers/gntp.rb:105:in `_client'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/notifiers/gntp.rb:81:in `notify'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/notifier.rb:177:in `block in notify'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/notifier.rb:173:in `each'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/notifier.rb:173:in `notify'
> [#] /home/arun/.chefdk/gem/ruby/2.1.0/gems/guard-knife-0.1.2/lib/guard/knife.rb:93:in `upload_cookbook'
> [#] /home/arun/.chefdk/gem/ruby/2.1.0/gems/guard-knife-0.1.2/lib/guard/knife.rb:66:in `upload'
> [#] /home/arun/.chefdk/gem/ruby/2.1.0/gems/guard-knife-0.1.2/lib/guard/knife.rb:44:in `block in run_on_change'
> [#] /home/arun/.chefdk/gem/ruby/2.1.0/gems/guard-knife-0.1.2/lib/guard/knife.rb:43:in `each'
> [#] /home/arun/.chefdk/gem/ruby/2.1.0/gems/guard-knife-0.1.2/lib/guard/knife.rb:43:in `run_on_change'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:78:in `block in run_supervised_task'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:75:in `catch'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:75:in `run_supervised_task'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:58:in `block (2 levels) in run_on_changes'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:53:in `each'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:53:in `block in run_on_changes'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:134:in `block (3 levels) in _scoped_plugins'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:132:in `each'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:132:in `block (2 levels) in _scoped_plugins'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:131:in `catch'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:131:in `block in _scoped_plugins'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:129:in `each'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:129:in `_scoped_plugins'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/runner.rb:50:in `run_on_changes'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/setuper.rb:221:in `_process_queue'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/commander.rb:91:in `_interactor_loop'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/commander.rb:29:in `start'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/lib/guard/cli.rb:112:in `start'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
> [#] /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/guard-2.7.0/bin/guard:6:in `<top (required)>'
> [#] /opt/chefdk/embedded/bin/guard:23:in `load'
> [#] /opt/chefdk/embedded/bin/guard:23:in `<main>'
17:11:42 - INFO - Guard::Knife has just been fired
Hey Nikolay! @bryanwb pointed me this way
Any thoughts on whether you feel a feature like this would fit within your project? I'm eager to get playing around with guard myself, so I'm not trying to pawn the work off on you :)
Cheers!
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.