-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
34 lines (27 loc) · 930 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#-*- mode: ruby -*-
require File.expand_path('../config/application', __FILE__)
require 'rake'
require 'updater' # needed here - expected rails does this for me
Users::Application.load_tasks
desc 'triggers the update of remote resources'
task :update => [:environment] do
sync = Updater.new
sync.do_it
puts "#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}\n\t#{sync}"
end
task :headers do
require 'rubygems'
require 'copyright_header'
args = {
:license => 'AGPL3',
:copyright_software => 'ixtlan_users',
:copyright_software_description => 'webapp to manage users for other webapps/miniapps',
:copyright_holder => ['Christian Meier'],
:copyright_years => [Time.now.year],
:add_path => ['lib', 'app', 'src', 'config', 'db/seeds.rb'].join(File::SEPARATOR),
:output_dir => '.'
}
command_line = CopyrightHeader::CommandLine.new( args )
command_line.execute
end
# vim: syntax=Ruby