Skip to content

Instantly share code, notes, and snippets.

View agirlnamedsophia's full-sized avatar

Sophia Russell agirlnamedsophia

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

class CoachCli::CI::ConfigGenerators::RubyApp < CoachCli::CI::ConfigGenerator
def generate_jobs
[lint_job, ...]
end
# more jobs...
def lint_job
CoachCli::CI::CircleCiJob.new(
name: "#{project.name}--lint",
class CoachCli::CI::ConfigGenerators::RubyApp < CoachCli::CI::ConfigGenerator
def generate_jobs
[
lint_job,
]
end
private
def lint_job
coach--lint (Gemfile):
resource_class: small
environment:
BUNDLE_GEMFILE: Gemfile
docker:
- image: ruby:2.4.2
environment:
GEM_SOURCE: https://rubygems.org
RAILS_ENV: test
RACK_ENV: test
class CoachCli::CI::Steps::ErbLint < CoachCli::CI::Steps::Base
def initialize(project:)
@project = project
end
def to_circleci_dsl
from_yaml(<<~YAML)
run:
name: run erb_lint
command: |
cache_sequence: 3
project_type: ruby_app
ruby_version: 2.4.2
resource_class: small
databases:
postgresql:
version: 9.6
-> % coach create project --type ruby_app
'coach.yml' configuration file added -- update it based on your project's needs
# Configure your Datadog Agent.
# Create a ruby.d/conf.yaml file in your conf.d/ folder with the following content:
##Log section
logs:
## - type : file (mandatory) type of log input source (tcp / udp / file)
## port / path : (mandatory) Set port if type is tcp or udp. Set path if type is file
## service : (mandatory) name of the service owning the log
## source : (mandatory) attribute that defines which integration is sending the logs
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: datadog-agent
spec:
template:
metadata:
labels:
app: datadog-agent
name: datadog-agent
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: datadog-agent
rules:
- apiGroups:
- ""
resources:
- services
- events