Skip to content

Commit

Permalink
ruby split
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Goldman committed Sep 12, 2024
1 parent 818c32b commit 9c47943
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem "faker"
gem "lorem"
gem "faker"
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ DEPENDENCIES
faker

BUNDLED WITH
2.4.6
2.5.3
4 changes: 4 additions & 0 deletions cs-templates/ruby-split/build/customizer
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd /build
bundle install
36 changes: 18 additions & 18 deletions cs-templates/ruby-split/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# executor_build:
# name: ExecutorBuild
# dockerfile: Dockerfile.executor
# persistent_artifacts:
# - Gemfile.lock
# build:
# name: Build
# image_name: ruby:3.2-bullseye
# command: ["/bin/bash", "-c", "bundle install && bundle config deployment true && bundle package"]
# persistent_artifacts:
# - Gemfile.lock
run:
name: Run
# type: container
# image_name: ruby:3.2-bullseye
# command: ["/bin/bash", "-c", "bundle config deployment true && bundle exec ruby script.rb"]
command: ["/bin/bash", "-c", "bundle exec ruby script.rb"]
executor:
base: ruby:3.3-bullseye
customizer: build/customizer
src:
- build/**/*
- Gemfile*
persistent_artifacts:
"Gemfile.lock": "/build/Gemfile.lock"
script:
command:
- "/bin/bash"
- "-c"
- "bundle exec ruby script.rb"
src:
- lib/**/*
- script.rb
- Gemfile*
env:
- "RUBYLIB=./lib"
- "BUNDLE_GEMFILE=/exec/Gemfile"
- "BUNDLE_GEMFILE=/build/Gemfile"
8 changes: 0 additions & 8 deletions cs-templates/ruby-split/exec/Dockerfile

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
puts "Metadata updated to #{lab_control.control_data['metadata']}"
puts "Sensitive metadata updated to #{lab_control.control_data['sensitive_metadata']} (displayed for demo purposes only -- sensitive metadata is not normally intended for exposure to end users!)"

puts "Here is a nonsense sentence to demonstrate use of a Ruby gem: #{Faker::Lorem.sentence}"
puts "Here is a nonsense sentence to demonstrate use of a Ruby gem! #{Faker::Lorem.sentence}"

raise 'oh noes'
1 change: 0 additions & 1 deletion cs-templates/ruby-split/src/Gemfile

This file was deleted.

1 change: 1 addition & 0 deletions cs-templates/templates.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
empty
ruby
ruby-split

0 comments on commit 9c47943

Please sign in to comment.