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 responder allows the system to render a streaming proc | |
# rendering a proc was removed in Rails 3.0 | |
ActionController::Renderers.add :csv do |proc, options| | |
raise ArgumentError "CSV responder requires :filename" unless options.key? :filename | |
filename = options[:filename] | |
headers.merge!( | |
'Cache-Control' => 'must-revalidate, post-check=0, pre-check=0', | |
'Content-Disposition' => "attachment; filename=\"#{filename}\"", |
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
<?xml version="1.0" encoding="utf-8"?> | |
<s:SkinnableDataContainer | |
xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" | |
skinClass="com.woople.shared.ui.skins.ModuleSectionStackSkin"> | |
<fx:Script> | |
<![CDATA[ | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- build.xml --> | |
<project name="Flex Ant Tasks Build Script" basedir="." default="compile_modules"> | |
<taskdef resource="flexTasks.tasks" classpath="${basedir}/vendor/flex/ant/lib/flexTasks.jar" /> | |
<property name="FLEX_HOME" value="${basedir}/vendor/flex"/> | |
<property name="APP_ROOT" value="${basedir}/app/flex"/> | |
<property name="DEPLOY_DIR" value="${basedir}/public/bin-release" /> | |
<property name="DEBUG" value="false" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Module | |
xmlns:mx="http://www.adobe.com/2006/mxml" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:views="com.woople.admin.ui.views.*" | |
xmlns:maps="com.woople.admin.maps.*" | |
xmlns:c="com.woople.shared.ui.controls.*" | |
width="100%" height="100%" | |
minWidth="972" minHeight="484"> | |
<mx:Script> |
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
%: ey recipes upload -e YOUR_ENVIRONMENT |
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
%: rake new_cookbook COOKBOOK=ci_setup |
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
# CIJOE | |
# Example CI Joe rackup config. Drop a cijoe.ru file | |
# in your projects direct | |
require 'cijoe' | |
# set the $project_path global | |
$project_path = `pwd`.gsub(/\n/, '') | |
# setup middleware | |
use Rack::CommonLogger |
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
namespace :woople do | |
desc "Continuous Integration Notification" | |
task :continuous_integration => :environment do | |
# CIJOE | |
# inline class | |
class CIMailer < MadMimiMailer | |
def mimi_blank_template(recipient, subject, message) | |
from "Woople Notifications <notifications@#{MAIN_HOST}>" | |
recipients recipient |
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
#!/bin/sh | |
# CIJOE | |
# | |
# Put this file to $PROJECT/.git/hooks/ for email notifications. | |
# | |
# Do not forget: chmod +x build-failed | |
RAILS_ENV=staging rake woople:continuous_integration RECIPIENT=[your_email_address] STATUS="Failed" SHA=$SHA AUTHOR=$AUTHOR MESSAGE=$MESSAGE OUTPUT=$OUTPUT |
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
#!/bin/sh | |
# CIJOE | |
# | |
# Put this file to $PROJECT/.git/hooks/ for after pull changes. | |
# | |
rm -rf /data/Woople_CI/current/config/database.yml | |
ln -s /data/Woople_CI/shared/config/database.yml /data/Woople_CI/current/config/database.yml | |
rake db:create:all |