Sha256: bf0c156a6c06aee1aaf0bccf1fab665ee874d969ce11a14669d4690f228bddc3

Contents?: true

Size: 911 Bytes

Versions: 9

Compression:

Stored size: 911 Bytes

Contents

#!/usr/bin/env ruby
require "runbook"

runbook = Runbook.book "Simple Book" do
  description <<-DESC
This is a simple runbook that does stuff
  DESC

  section "Parent Section" do
    section "First Section" do
      step "Step 1" do
        parallelization({strategy: :sequence})
        servers "pblesi@server01.stg", "pblesi@server02.stg"
				user "root"
				path "/home/pblesi"
        env rails_env: "development"
        umask "077"

        note "I like cheese"
        note "I also like carrots"
        command "echo I love cheese"
        command "whoami"
      end
    end

    section "Second Section" do
      step "Step 1" do
        notice "Some cheese is actually yellow plastic"
        ruby_command do |rb_cmd, metadata|
          metadata[:toolbox].output("I like cheese whiz!")
        end
      end
    end
  end
end

if __FILE__ == $0
  Runbook::Runner.new(runbook).run
else
  runbook
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
careacademy-runbook-1.2.0 examples/simple_runbook.rb
runbook-1.1.0 examples/simple_runbook.rb
runbook-1.0.0 examples/simple_runbook.rb
runbook-0.16.1 examples/simple_runbook.rb
runbook-0.16.0 examples/simple_runbook.rb
runbook-0.15.0 samples/simple_runbook.rb
runbook-0.14.0 samples/simple_runbook.rb
runbook-0.13.0 samples/simple_runbook.rb
runbook-0.12.1 samples/simple_runbook.rb