This was a test with Poltergeist I did the other day
#!ruby
def polter
noop
end
| import jenkins | |
| j = jenkins.Jenkins('http://qa-mb:8080') | |
| branch = 'mozilla-central' | |
| testrun = 'endurance' | |
| builds = ['20120719030543', | |
| '20120720030549', | |
| '20120721030555', |
This was a test with Poltergeist I did the other day
#!ruby
def polter
noop
end
| $VERBOSE = nil | |
| require File.expand_path('../rooby', __FILE__) | |
| Person = Rooby::Class.new 'Person' do | |
| define :initialize do |name| | |
| @name = name | |
| end | |
| define :name do |
| module Plugin | |
| def some_method | |
| puts "Plugin" | |
| super | |
| end | |
| end | |
| class A | |
| def some_method | |
| puts "A" |
| # -*- encoding : utf-8 -*- | |
| set :assets_dependencies, %w(app/assets lib/assets vendor/assets Gemfile.lock config/routes.rb) | |
| namespace :deploy do | |
| namespace :assets do | |
| desc <<-DESC | |
| Run the asset precompilation rake task. You can specify the full path \ | |
| to the rake executable by setting the rake variable. You can also \ |
| #!/bin/bash | |
| # Install rbenv | |
| # https://github.com/sstephenson/rbenv | |
| cd ~ | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
| echo 'eval "$(rbenv init -)"' >> .bash_profile |
| worker_processes 1; | |
| error_log /usr/local/var/log/nginx.error.log; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; |
| server { | |
| listen 80; | |
| server_name nagios.example.tld; | |
| access_log /var/log/nginx/nagios.access.log; | |
| error_log /var/log/nginx/nagios.error.log info; | |
| expires 31d; | |
| root /usr/share/nagios3/htdocs; |
| def do_something | |
| yield 'something' | |
| end | |
| do_something do |thing| | |
| puts thing | |
| end | |
| def do_complex(first, second) | |
| thing = 'nothing' |
Введение
Начать стоит отсюда. Не пугайтесь то, что это книга по незнакомой OS, эти термины практически везде одинаковые и здесь они изложены в понятной для начинающих форме.
http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html
Прочесть нужно треть главы до подраздела "Starting a process", если С не пугает, читайте полностью. После прочтения вы будете понимать, что такое process, thread, mutex, priorites, semaphores, scheduler, contex-switch, kernel states.
Ruby