Skip to content

Instantly share code, notes, and snippets.

release:
type: ssh
ssh:
remote_release_path: /opt/oddthesis/repo/releases_upload
remote_rpm_path: /opt/oddthesis/repo/packages_upload
username: xzcxc
host: host.org
cloudfront:
bucket_name: boxgrinder-releases
aws:
plugins:
platform:
- ec2
- vmware
delivery:
- s3
- sftp
operating_systems:
fedora:
- 11
require 'singleton'
require 'yaml'
module BoxGrinder
class PluginManager < Array
include Singleton
end
class OperatingSystemPluginManager < PluginManager
end
require 'rubygems'
require 'torquebox-messaging-container'
require 'consumers/image_consumer'
require 'logger'
module BoxGrinderREST
class Node
def initialize
@log = Logger.new(STDOUT)
end
1. Example 6.10. Client within TorqueBox
----------------------------------------
IS:
TorqueBox::Message::Client.connect do |client|
SHOULD BE:
TorqueBox::Messaging::Client.connect do |client|
14:02:48,576 INFO [org.torquebox.messaging.deployers.QueuesYamlParsingDeployer] Read configuration for queue [/queues/some_queue]
14:02:48,576 INFO [org.torquebox.messaging.deployers.TasksScanningDeployer] deploying image_task.rb
14:02:48,581 INFO [org.torquebox.ruby.core.runtime.deployers.RubyRuntimeFactoryDeployer] Create RubyRuntimeFactory: boxgrinder-rest
14:03:07,233 INFO [STDOUT] Defining VFS::GlobFilter /home/oddthesis/torquebox-current/jruby/lib/ruby/gems/1.8/gems/vfs-1.0.0/lib/vfs/glob_filter.rb:3
14:03:07,236 INFO [STDOUT] VFF=Java::OrgJbossVirtual::VirtualFileFilter /home/oddthesis/torquebox-current/jruby/lib/ruby/gems/1.8/gems/vfs-1.0.0/lib/vfs/glob_filter.rb:4
14:03:07,236 INFO [STDOUT] Defined VFS::GlobFilter /home/oddthesis/torquebox-current/jruby/lib/ruby/gems/1.8/gems/vfs-1.0.0/lib/vfs/glob_filter.rb:52
14:03:15,109 ERROR [STDERR] JRuby limited openssl loaded. gem install jruby-openssl for full support.
14:03:15,109 ERROR [STDERR] http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
14:03
class ImageTask
def destroy( payload )
puts "aAAAAAAAAAAAA"
puts payload
end
end
13:59:14,226 INFO [org.torquebox.messaging.deployers.TasksScanningDeployer] deploying image_task.rb
13:59:14,232 INFO [org.torquebox.ruby.core.runtime.deployers.RubyRuntimeFactoryDeployer] Create RubyRuntimeFactory: boxgrinder-rest
13:59:30,342 INFO [STDOUT] Defining VFS::GlobFilter /home/oddthesis/torquebox-current/jruby/lib/ruby/gems/1.8/gems/vfs-1.0.0/lib/vfs/glob_filter.rb:3
13:59:30,345 INFO [STDOUT] VFF=Java::OrgJbossVirtual::VirtualFileFilter /home/oddthesis/torquebox-current/jruby/lib/ruby/gems/1.8/gems/vfs-1.0.0/lib/vfs/glob_filter.rb:4
13:59:30,345 INFO [STDOUT] Defined VFS::GlobFilter /home/oddthesis/torquebox-current/jruby/lib/ruby/gems/1.8/gems/vfs-1.0.0/lib/vfs/glob_filter.rb:52
13:59:38,582 ERROR [STDERR] JRuby limited openssl loaded. gem install jruby-openssl for full support.
13:59:38,582 ERROR [STDERR] http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
13:59:55,739 INFO [org.torquebox.ruby.core.runtime.deployers.RubyRuntimeFactoryDeployer] Ruby runtime initialization took 41s
13:59:58,
13:53:21,293 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/home/oddthesis/git/boxgrinder-rest/ state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/home/oddthesis/git/boxgrinder-rest/
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
at org.jboss.deployers.plugins.deployers.D
[oddthesis@lolek-f12 bin]$ ./run.sh -b 10.1.0.13
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/oddthesis/torquebox-current/jboss
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true