- Install Hubot locally
- Install Slack Adapter
- Configure integration on Slack
- Go to
[your-slack].slack.com/services/new/hubot
- Go to
- Deploy to Heroku
If you want to rename the automatically generated heroku domain name:
def to_roman(num) | |
numerals = {1000 => "M", | |
500 => "D", | |
100 => "C", | |
50 => "L", | |
10 => "X", | |
5 => "V", | |
1 => "I" | |
} | |
Ben | Visser | theodore.r.visser@gmail.com | |
---|---|---|---|
Marlon | Kenny | marlonkenny@gmail.com | |
Brandon | Lee | blee298@gmail.com | |
Shannon | McDonald | shannon.mcdonald46@gmail.com | |
Marly | Guha | marlyguha@gmail.com | |
Eric | Leong | eleong95@gmail.com | |
Chris | Reid | chronic88@gmail.com | |
Eric | Yee | erizye@gmail.com | |
Derek | Hendricks | derek.m.hendricks@gmail.com | |
Kieran | Cormack | kcormack91@gmail.com |
require_relative 'spec_helper' | |
# A Barracks should only be able to train footmen if it has enough resources | |
# Introduce a new method that checks to see if there are enough resources to train one | |
# Of course, it should then also be leveraged by the train_footman method | |
describe Barracks do | |
subject(:barracks) { Barracks.new } |
require_relative 'spec_helper' | |
# Since a Footman is a type of Unit, it makes sense to now make Footman inherit from Unit | |
# Furthermore, | |
# This test doesn't look for it, but there are other things that you could do at this point. Think about what else you could refactor in the Footman class, now that it is inheriting functionality (code) from the Unit class. | |
describe Footman do | |
subject(:footman) { Footman.new } |
Verifying that +tanq is my Bitcoin username. You can send me #bitcoin here: https://onename.io/tanq |
[your-slack].slack.com/services/new/hubot
If you want to rename the automatically generated heroku domain name:
var fs = require('fs') | |
var myNumber = undefined | |
function addOne(callback) { | |
fs.readFile('number.txt', function doneReading(err, fileContents) { | |
myNumber = parseInt(fileContents) | |
myNumber++ | |
callback() | |
}) | |
} |
df |
require 'aws-sdk' | |
@client = Aws::CloudWatch::Client.new(region: 'us-east-1') | |
def cloudwatch_alarms(token=nil) | |
return @client.describe_alarms({ | |
state_value: "INSUFFICIENT_DATA", | |
next_token: token | |
}) | |
end |
I need a way to get a list of plugins so that I can use them with docker jenkins
in the format <plugin>: <version>
The jenkins CLI will allow us to interact with our jenkins server from the command line. We can get it with a simple curl call.
curl 'localhost:8080/jnlpJars/jenkins-cli.jar' > jenkins-cli.jar