-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinstall.rb
33 lines (26 loc) · 910 Bytes
/
install.rb
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
require 'fileutils'
#####################################
# Copy resource files
#####################################
FileUtils.cp(
File.join(File.dirname(__FILE__), 'resources', 'public', 'stylesheets', 'uni-form.css'),
File.join(RAILS_ROOT, 'public', 'stylesheets'),
:verbose => true
)
FileUtils.cp(
File.join(File.dirname(__FILE__), 'resources', 'public', 'stylesheets', 'uni-form-generic.css'),
File.join(RAILS_ROOT, 'public', 'stylesheets'),
:verbose => true
)
FileUtils.cp(
File.join(File.dirname(__FILE__), 'resources', 'public', 'javascripts', 'uni-form.prototype.js'),
File.join(RAILS_ROOT, 'public', 'javascripts'),
:verbose => true
)
p ''
p '========== Installation of Uni Form is completed =========='
p ''
#####################################
# Show the README text file
#####################################
puts IO.read(File.join(File.dirname(__FILE__), 'README'))