forked from airbnb/zonify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzonify.gemspec
30 lines (29 loc) · 1.22 KB
/
zonify.gemspec
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
git_version = begin
describe = `git describe --always`
if $?.success?
stripped = describe.strip
/^([^-]+)-([0-9]+)-[^-]+$/.match(stripped) ? "#{$1}.#{$2}" : stripped
else
git_raw = `git log --pretty=format:%h | head -n1`
$?.success? ? '0.0.0.%d' % git_raw.strip.to_i(16) : '0.0.0'
end
end
@spec = Gem::Specification.new do |s|
s.name = 'zonify'
s.author = 'AirBNB'
s.email = 'contact@airbnb.com'
s.homepage = 'https://github.com/airbnb/zonify'
s.version = git_version
s.summary = 'Generate DNS information from EC2 metadata.'
s.description = <<DESC
Zonify provides a command line tool for generating DNS records from EC2
instances, instance tags, load balancers and security groups. A mechanism for
syncing these records with a zone stored in Route 53 is also provided.
DESC
s.license = 'BSD'
s.add_dependency( 'right_aws' )
s.files = Dir['lib/**/*.rb', 'README']
s.require_path = 'lib'
s.bindir = 'bin'
s.executables = %w| zonify |
end