handy 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +8 -3
- data/lib/handy/tasks.rb +10 -0
- data/lib/handy/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -10,13 +10,18 @@ restores the data and structure from file
|
|
10
10
|
Restores the data from production database to staging database. More options can be specified.
|
11
11
|
|
12
12
|
##rake handy:db:dump2s3##
|
13
|
-
Creates a backup and then stores that backup on s3
|
13
|
+
Creates a backup and then stores that backup on s3.
|
14
|
+
|
15
|
+
s3 login information can be passed as per [http://gist.github.com/619432](http://github.com/neerajdotname/handy) .
|
16
|
+
|
14
17
|
|
15
18
|
##rake handy:db:dump2s3:list##
|
16
|
-
Prints a list of all files stored on s3
|
19
|
+
Prints a list of all files stored on s3.
|
17
20
|
|
18
21
|
##rake handy:db:dump2s3:restore file=xxxx.sql.gz##
|
19
|
-
Restores the database with the data from s3.
|
22
|
+
Restores the database with the data from s3. Sweet!!
|
20
23
|
|
24
|
+
##rake handy:web:ping site=www.page41.com##
|
25
|
+
Pings a site.
|
21
26
|
|
22
27
|
Copyright (c) 2010 Neeraj Singh. See LICENSE for details.
|
data/lib/handy/tasks.rb
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
namespace :handy do
|
2
|
+
namespace :web do
|
3
|
+
desc "Ping a site"
|
4
|
+
task :ping => :environment do
|
5
|
+
puts "Usage: rake handy:web:ping site=www.xxx.com"
|
6
|
+
site = ENV['site']
|
7
|
+
cmd = "curl http://#{site}> /dev/null 2>&1 &"
|
8
|
+
system(cmd)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
2
12
|
namespace :db do
|
3
13
|
|
4
14
|
desc "Load schema and data from a local sql file."
|
data/lib/handy/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Neeraj Singh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-31 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|