merqlove/do_snapshot

View on GitHub
bin/do_snapshot

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
# -*- encoding : utf-8 -*-
# frozen_string_literal: true

Signal.trap('INT') { exit 1 }

# resolve bin path, ignoring symlinks
require 'pathname'
bin_file = Pathname.new(__FILE__).realpath

# add self to libpath
$LOAD_PATH.unshift File.expand_path('../../lib', bin_file)

require 'do_snapshot/runner'

DoSnapshot::Runner.new(ARGV.dup).execute!