Babushka
Upcoming SlideShare
Loading in...5
×
 

Babushka

on

  • 1,749 views

My slides from piterrb #3

My slides from piterrb #3

Statistics

Views

Total Views
1,749
Views on SlideShare
1,749
Embed Views
0

Actions

Likes
3
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Babushka Babushka Presentation Transcript

  • @gazay
  • system administration for rubists
  • setup server• manually• puppet• chef• gitpusshuten• babushka• etc…
  • manually
  • chef & puppet
  • simple setup one server for rails app
  • test-driven sysadmin
  • nested
  • test-driven?test code
  • test task
  • $ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0$ ruby --versionruby 1.9.2p0 …
  • $ ruby --versionruby 1.8.7 … test$ rvm use 1.9.2Using ruby 1.9.2 p0 task$ ruby --versionruby 1.9.2p0 … test
  • dependency$ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0
  • shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]shell( ‘rvm use 1.9.2’ )
  • met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]} shell( ‘rvm use 1.9.2’ )
  • met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]}meet { shell( ‘rvm use 1.9.2’ )}
  • dep ‘ruby 1.9.2 in use’ do met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ] } meet { shell( ‘rvm use 1.9.2’ ) }end
  • nested
  • dep ‘ruby 1.9.2 in use’ do requires ‘1.9.2 rvm ruby’ met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ] } meet { shell( ‘rvm use 1.9.2’ ) }end
  • dep ‘1.9.2 rvm ruby’ do requires ‘rvm’ met? { shell( ‘rvm list’ )[ ‘ruby-1.9.2-p0’ ] } meet { shell( ‘rvm install 1.9.2’ ) }end
  • dep ‘rvm’ do met? { which ‘rvm’ } meet { shell bash -c "`curl http://rvm.beginrescueend.com/releases/rvminstall-head`" }end
  • dep Cucumber.tmbundle do source git://github.com/bmabey/cucumbertmbundle.gitend
  • sharingdep setup-user do requires [ benhoskings:passwordless ssh logins, benhoskings:hostname, benhoskings:secured ssh logins, benhoskings:admins can sudo‘ ]end
  • git://github.com/ benhoskings /babushka-deps
  • railsrumble stack
  • thanks!