Sha256: 0222dbf47a659eb4c455e8ac1130cd95256112ff5d4932afe25ece77b1a604f4
Contents?: true
Size: 1.14 KB
Versions: 23
Compression:
Stored size: 1.14 KB
Contents
module FWToolkit module Tasks class Services < Thor include Rake::DSL if defined?(Rake::DSL) include Thor::Actions no_tasks do def install_tasks namespace :services do task :environment do require 'fwtoolkit' Dir[File.join( Dir.pwd, 'Frank/features/support/models/*.rb')].each {|file| require file } Dir[File.join( Dir.pwd, 'Frank/features/support/views/*.rb')].each {|file| require file } end desc 'Seed objects into the service' task :seed => [:environment] do end require 'daemons' desc 'Run a service' task :run, [:service_name] => [:environment, :seed] do |t, args| args.with_defaults(:service_name => 'mimic', :seeds_name => nil) require File.join( Dir.pwd, "Frank/features/support/#{args.service_name}.rb") say "Service #{args.service_name} running" loop do sleep(5) end end end end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems