(On a Mac) create the following ruby script in /usr/bin/gitlab_site
#!/usr/bin/ruby
git_remote = `git remote -v`.scan(/git@(.+?).git/)
package test.ch.lihsmi.collections | |
import spock.lang.* | |
import ch.lihsmi.collections.ArrayStack | |
class EmptyStack extends Specification { | |
def stack = new ArrayStack<Object>() |
package ch.lihsmi.collections; | |
import java.util.Arrays; | |
final public class ArrayStack<T> implements Stack<T> { | |
private T[] elements; | |
private int position = 0; |
A Stemcell is a OS image wrapped with IaaS specific packaging. Amongst other tools, it always contains a BOSH Agent (like a Chef client) running on the VM to which the stemcell is deployed to and listens for instructions from the BOSH Director.
rmq_container_id=$(docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq) && sleep 5 && docker exec $rmq_container_id rabbitmq-plugins enable rabbitmq_management
Given this question on Stackoverflow I wanted to check whether there is a difference between this style of Bean definition (variant 1):
@Configuration
public class BeanConfiguration {
@Bean
public FirstClass firstClass() {
return new FirstClass();
}