-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathzonify.gemspec
29 lines (28 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
git_version = begin
describe = `git describe --always`.strip
if $?.success? and /^([0-9]+([.][0-9]+)+)(-([0-9]+)-[^-]+)?$/.match(describe)
$4 ? "#{$1}.#{$4}" : $1
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 = 'Jason Dusek'
s.email = '[email protected]'
s.homepage = 'https://github.com/solidsnack/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( 'fog' )
s.files = Dir['lib/**/*.rb', 'README']
s.require_path = 'lib'
s.bindir = 'bin'
s.executables = %w| zonify |
end