Sha256: 351ba95c9f16c6a07b65755a677a51656954a3d5b4fa0c5b82c8034bebc643eb
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
module PoolParty class Tasks include Callbacks # Setup and define all the tasks def initialize yield self if block_given? end # Define the tasks in the rakefile # From the rakefile def define_tasks # Run the command on the local system def run(cmd) system(cmd.runnable) end # Basic setup action def setup_application PoolParty.options({:config_file => (ENV["CONFIG_FILE"] || ENV["config"]) }) end # Require the poolparty specific tasks Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].each { |t| eval open(t).read } Dir["#{PoolParty.plugin_dir}/*/Rakefile"].each {|t| load "#{t}" } true end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
auser-poolparty-0.0.8 | lib/poolparty/tasks.rb |
dreadpiratepj-poolparty-0.0.8 | lib/poolparty/tasks.rb |