Sha256: 54886b1dc77a1ce1c1c718f3be52dbc6a6809008db03e3fea9ad84788de69958

Contents?: true

Size: 956 Bytes

Versions: 1

Compression:

Stored size: 956 Bytes

Contents

#! /usr/bin/env ruby

template "runShellScriptTemplate" do
  content do
    __dsl do
      schemaVersion "2.0"
      description "Run a shell script"
      mainSteps do |*|
        action "aws:runShellScript"
        name "runShellScript"
        inputs do
          runCommand __script(context.commands)
          TimeoutSeconds 10
        end
      end
    end
  end
end

Command "Test-Example-RunShellScript" do
  account_ids []
  include_template "runShellScriptTemplate", commands: "echo 123 >> /tmp/result.txt"
end

Command "My-RunShellScript-2" do
  account_ids []
  content do
    __dsl do
      schemaVersion "2.0"
      description "Run a shell script"
      mainSteps do |*|
        action "aws:runShellScript"
        name "runShellScript"
        inputs do
          runCommand __script(<<-'EOS')
#! /bin/bash
echo 1 >> /tmp/results.txt
echo 2 >> /tmp/results.txt
exit 1
EOS
          TimeoutSeconds 10
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rezept-0.4.1 Docfile