Permalink
Browse files

uh.. i think this is all good to go as a gem

  • Loading branch information...
1 parent 5d9dcf9 commit 5c5d53d3819bd39b96a51838e50264823195dba5 @ryan-allen committed Sep 14, 2011
Showing with 36 additions and 6 deletions.
  1. +4 −0 Gemfile
  2. +1 −0 Rakefile
  3. +3 −0 bin/sir-sync-a-lot
  4. +4 −6 sir-sync-a-lot → lib/sir-sync-a-lot.rb
  5. +24 −0 sir-sync-a-lot.gemspec
View
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in sir-sync-a-lot.gemspec
+gemspec
View
@@ -0,0 +1 @@
+require "bundler/gem_tasks"
View
@@ -0,0 +1,3 @@
+#!/usr/bin/env ruby
+require_relative '../lib/sir-sync-a-lot'
+SirSyncalot.run!(*ARGV)
View
@@ -1,9 +1,7 @@
-#!/usr/bin/env ruby
-
-%w(rubygems aws/s3 yaml).each { |lib| require(lib) }
+require 'aws/s3'
+require 'yaml'
class SirSyncalot
-
def self.run!(*args)
new(*args).run!
end
@@ -19,6 +17,8 @@ def run!
perform_action!
end
+ VERSION = '0.0.1'
+
private
def validate_inputs!
@@ -293,5 +293,3 @@ def lock_path
end
end
-
-SirSyncalot.run!(*ARGV)
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "sir-sync-a-lot"
+
+Gem::Specification.new do |s|
+ s.name = "sir-sync-a-lot"
+ s.version = SirSyncalot::VERSION
+ s.authors = ["Ryan Allen"]
+ s.email = ["ryan@yeahnah.org"]
+ s.homepage = "https://github.com/ryan-allen/sir-sync-a-lot"
+ s.summary = %q{Baby got backups!}
+ s.description = %q{Optimised S3 backup tool. Uses linux's find and xargs to find updated files as to not exaust your disk IO.}
+
+ s.rubyforge_project = "sir-sync-a-lot"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ # specify any dependencies here; for example:
+ # s.add_development_dependency "rspec"
+ s.add_runtime_dependency "aws-s3"
+end

0 comments on commit 5c5d53d

Please sign in to comment.