Sha256: f83f9a6b1ca994792a3d0eda5b2b800a47b78cd97720cd1988ba2366e5e3c8bb
Contents?: true
Size: 732 Bytes
Versions: 2
Compression:
Stored size: 732 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| load t } Dir["#{PoolParty.plugin_dir}/*/Rakefile"].each {|t| load "#{t}" } true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.0.9 | lib/poolparty/tasks.rb |
auser-poolparty-0.1.0 | lib/poolparty/tasks.rb |