-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathRakefile
More file actions
21 lines (15 loc) · 535 Bytes
/
Rakefile
File metadata and controls
21 lines (15 loc) · 535 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'rake'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
namespace :lambda do
task :build do
abort("Please add a config.yml before continuing") unless File.exist?(File.expand_path('config.yml', __dir__))
STDOUT.puts "Fetching dependencies"
`bundle install --deployment`
STDOUT.puts "Creating archive"
`cd #{File.expand_path(__dir__)} && zip -r ical-filter-proxy.zip *`
STDOUT.puts "Cleaning up"
`rm -rf #{File.expand_path('vendor', __dir__)}`
end
end