-
Notifications
You must be signed in to change notification settings - Fork 175
/
Rakefile
118 lines (99 loc) · 2.76 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# -*- ruby -*-
require 'rubygems'
require "rake/testtask"
require 'rubygems/package_task'
require 'rake/clean'
$: << File.dirname(__FILE__)
testglobs = ["test/ts_right_aws.rb"]
begin
require 'bundler'
rescue LoadError => e
STDERR.puts("Bundler is not available, some rake tasks will not be defined: #{e.message}")
else
Bundler::GemHelper.install_tasks :name => 'right_aws'
end
# == Gem == #
gemtask = Gem::PackageTask.new(Gem::Specification.load("right_aws.gemspec")) do |package|
package.package_dir = ENV['PACKAGE_DIR'] || 'pkg'
package.need_zip = true
package.need_tar = true
end
directory gemtask.package_dir
CLEAN.include(gemtask.package_dir)
desc "Test just the SQS interface"
task :testsqs do
require 'test/test_credentials'
require 'test/http_connection'
TestCredentials.get_credentials
require 'test/sqs/test_right_sqs.rb'
end
desc "Test just the second generation SQS interface"
task :testsqs2 do
require 'test/test_credentials'
require 'test/http_connection'
TestCredentials.get_credentials
require 'test/sqs/test_right_sqs_gen2.rb'
end
desc "Test just the S3 interface"
task :tests3 do
require 'test/test_credentials'
require 'test/http_connection'
TestCredentials.get_credentials
require 'test/s3/test_right_s3.rb'
end
desc "Test just the S3 interface using local stubs"
task :tests3local do
require 'test/test_credentials'
require 'test/http_connection'
TestCredentials.get_credentials
require 'test/s3/test_right_s3_stubbed.rb'
end
desc "Test just the EC2 interface"
task :testec2 do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/ec2/test_right_ec2.rb'
end
desc "Test just the SDB interface"
task :testsdb do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/sdb/test_right_sdb.rb'
end
desc "Test active SDB interface"
task :testactivesdb do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/sdb/test_active_sdb.rb'
end
desc "Test CloudFront interface"
task :testacf do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/acf/test_right_acf.rb'
end
desc "Test RDS interface"
task :testrds do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/rds/test_right_rds.rb'
end
desc "Test just the SNS interface"
task :testsns do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/sns/test_right_sns.rb'
end
desc "Test Route 53 interface"
task :testroute53 do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/route_53/test_right_route_53'
end
desc "Test ELB interface"
task :testelb do
require 'test/test_credentials'
TestCredentials.get_credentials
require 'test/elb/test_right_elb'
end
# vim: syntax=Ruby