Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Babushka

1,925 views

Published on

My slides from piterrb #3

Published in: Technology
  • Be the first to comment

Babushka

  1. 1. @gazay
  2. 2. system administration for rubists
  3. 3. setup server• manually• puppet• chef• gitpusshuten• babushka• etc…
  4. 4. manually
  5. 5. chef & puppet
  6. 6. simple setup one server for rails app
  7. 7. test-driven sysadmin
  8. 8. nested
  9. 9. test-driven?test code
  10. 10. test task
  11. 11. $ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0$ ruby --versionruby 1.9.2p0 …
  12. 12. $ ruby --versionruby 1.8.7 … test$ rvm use 1.9.2Using ruby 1.9.2 p0 task$ ruby --versionruby 1.9.2p0 … test
  13. 13. dependency$ ruby --versionruby 1.8.7 …$ rvm use 1.9.2Using ruby 1.9.2 p0
  14. 14. shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]shell( ‘rvm use 1.9.2’ )
  15. 15. met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]} shell( ‘rvm use 1.9.2’ )
  16. 16. met? { shell( ‘ruby –version’ )[ ‘ruby 1.9.2 p0’ ]}meet { shell( ‘rvm use 1.9.2’ )}
  17. 17. 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
  18. 18. nested
  19. 19. 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
  20. 20. 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
  21. 21. dep ‘rvm’ do met? { which ‘rvm’ } meet { shell bash -c "`curl http://rvm.beginrescueend.com/releases/rvminstall-head`" }end
  22. 22. dep Cucumber.tmbundle do source git://github.com/bmabey/cucumbertmbundle.gitend
  23. 23. sharingdep setup-user do requires [ benhoskings:passwordless ssh logins, benhoskings:hostname, benhoskings:secured ssh logins, benhoskings:admins can sudo‘ ]end
  24. 24. git://github.com/ benhoskings /babushka-deps
  25. 25. railsrumble stack
  26. 26. thanks!

×