-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
21 lines (17 loc) · 765 Bytes
/
Rakefile
File metadata and controls
21 lines (17 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require "bundler/gem_tasks"
desc "Fetch new version from https://github.com/authy/authy-form-helpers"
task :fetch do
source = "https://raw.github.com/authy/authy-form-helpers/master/src/form.authy.coffee"
target = "vendor/assets/javascripts/form.authy.coffee"
sh "curl #{source} > #{target}"
['flags.authy.css', 'form.authy.css'].each do |file|
source = "https://raw.github.com/authy/authy-form-helpers/master/src/#{file}"
target = "vendor/assets/stylesheets/#{file}"
sh "curl #{source} > #{target}"
end
['close.gif', 'flags.png', 'icon.png'].each do |file|
source = "https://raw.github.com/authy/authy-form-helpers/master/src/images/#{file}"
target = "vendor/assets/images/#{file}"
sh "curl #{source} > #{target}"
end
end