Giter Site home page Giter Site logo

blender's People

Contributors

dougbarth avatar esigler avatar jsegura avatar margueritepd avatar orthographic-pedant avatar ranjib avatar smathieu avatar who828 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blender's Issues

Running Blender from Ruby instead of DSL?

What's the preferred way to run Blender tasks from plain Ruby or Rake instead of using the Thor DSL?
I'd like to integrate Blender in a different project. This is what I have so far but I'm running into errors.

require 'blender'
include Blender::SchedulerDSL

list = %w(host1 host2 host3)

ssh_task 'update' do
  execute 'sudo apt-get update'
  members list
end

ssh_task 'upgrade' do
  execute 'sudo apt-get upgrade -y'
  members list
end

concurrency 2
~/.rvm/gems/ruby-1.9.3-p194/gems/pd-blender-0.0.1/lib/blender/scheduler/dsl.rb:84:in `build_task': undefined local variable or method `metadata' for main:Object (NameError)
    from ~/.rvm/gems/ruby-1.9.3-p194/gems/pd-blender-0.0.1/lib/blender/scheduler/dsl.rb:114:in `ssh_task'
    from test.rb:6:in `<main>'

Thanks in advance!

improve documentation

  • add examples of config passing
  • concrete examples, links to repos using it.
  • improve rdoc coverage
  • examples of task specific driver config , members
  • more details about how drivers work
  • how blender is different from cap, net-ssh raw.
  • using standalone blender scripts vs using as a library from any other code.

Seperate Logfile for each member

We would like to see a feature where you can define a logfile for each member. With lots of members it is now quite difficult to see what is going on and what is happening on each member.

Our workaround right now is to add the HOSTNAME prefix to the output of the command like this:

ssh_task '/usr/bin/chef-client | while read i ; do [[ -n "$i" ]] && printf "%b" "[$HOSTNAME]\t$i\n"; done ; exit ${PIPESTATUS[0]}'

However, a more convenient solution would be that blender supports a seperate logfile for each member.

SSH-Driver: get stdout/stderr - Output

Hi,
is there a way to get the stdout/stderr Output of the ssh-Job?
Right now i just found the debug Option for the Tool itself. (json-File with "log_level": "debug")
But i didnt found a way to redirect the stdout/stderr of the SSH-Job.

Thanks for your help.

MfG Johann

deactivate colorful output

Hi,

we use blender in an ant task and the output in the build.log has these ANSI color codes in it, like this:

 [exec] �[32mRun finished (10.458212424 s)�[0m

Is there a way to deactivate this colorful output?

Thanks!

using flock in tmp dir may yields unexpected results

Hi,

while trying it out, I just create a simple /tmp/exampe.rb and executed:
USER=root blend -f /tmp/example.rb

and got the following trace:

3 job(s) computed using 'Default' strategy
Run failed (0.000161113 s)

blender/lib/blender/lock/flock.rb:48:in `release': undefined method `flock' for nil:NilClass (NoMethodError)
from blender/lib/blender/lock/flock.rb:60:in `ensure in with_lock'
from blender/lib/blender/lock/flock.rb:60:in `with_lock'
from blender/lib/blender/scheduler/dsl.rb:150:in `lock'
from blender/lib/blender/scheduler.rb:58:in `run'
from blender/lib/blender.rb:44:in `blend'
from blender/lib/blender/cli.rb:54:in `from_file'

moving the file elsewhere solved the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.