This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Project definition to run specs with sbt | |
| //Just run reload update | |
| import sbt._ | |
| class kataProject(info: ProjectInfo) extends DefaultProject(info){ | |
| val specs = "org.scala-tools.testing" % "specs_2.8.0" % "1.6.5" % "test->default" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This list was moved to: http://bit.ly/cBncPZ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module RackHeader | |
| def set_headers(headers) | |
| driver = Capybara.current_session.driver.browser | |
| def driver.env | |
| @env.merge(super) | |
| end | |
| def driver.env=(env) | |
| @env = env | |
| end | |
| driver.env = headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.saumya.mojo.rspec; | |
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.io.Reader; | |
| import java.util.Collection; | |
| import java.util.List; | |
| import java.util.Properties; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit eb034bc4556df920a8616ec81d172ae000378592 | |
| Merge: ca7b252 f6312a3 | |
| Author: Bruno Oliveira <bruno@abstractj.com> | |
| Date: Tue Jul 12 22:27:47 2011 -0300 | |
| Merge remote branch 'torque-orig/2x-dev' into working | |
| commit f6312a338f90bdcb8bc67577bee84c13141fa36c | |
| Author: Tobias Crawley <tcrawley@gmail.com> | |
| Date: Tue Jul 12 20:31:16 2011 -0400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def run_server | |
| Dir.chdir(jboss_home) do | |
| # don't send the gemfile from the current app, instead let | |
| # bundler suss it out itself for each deployed | |
| # app. Otherwise, they'll end up sharing this Gemfile, which | |
| # is probably not what we want. | |
| ENV.delete('BUNDLE_GEMFILE') | |
| if windows? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| map "run" => "start" | |
| method_options :clustered => :boolean | |
| desc "run", "Run TorqueBox" | |
| def start | |
| setup_environment | |
| options.clustered ? TorqueBox::DeployUtils.run_server_clustered : TorqueBox::DeployUtils.run_server | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TorqueBoxCommand < Thor | |
| TASK_ORDER = %w(deploy undeploy start cli env help) | |
| map "run" => "start" | |
| method_options :clustered => :boolean | |
| desc "run", "Run TorqueBox" | |
| def start | |
| setup_environment | |
| options.clustered ? TorqueBox::DeployUtils.run_server_clustered : TorqueBox::DeployUtils.run_server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module TorqueBox | |
| module DeployUtils | |
| class << self | |
| def run_server_clustered | |
| config_path = "#{File.join(DeployUtils.server_dir, '/configuration/standalone-ha.xml')}" | |
| args = "--server-config=#{config_path}" | |
| exec_command(run_command_line.join(" #{args}")) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ========================================================================= | |
| JBoss Bootstrap Environment | |
| JBOSS_HOME: /Users/Bruno/.rvm/gems/jruby-1.6.3/gems/torquebox-server-2.0.0-java/jboss | |
| JAVA: /Library/Java/Home/bin/java | |
| JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman |
OlderNewer