h2ocube_rails_tasks 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b62d2bf5c9b93c9e86dced7a3f87406528c3fc69
4
- data.tar.gz: a58d600841a7e4ab85c6e1b0a6f9288616faf461
3
+ metadata.gz: e8fe6f4abc884584f39529539d8ee833d02097d8
4
+ data.tar.gz: d28f5183228c3e25f34625ebbf69996e775e684d
5
5
  SHA512:
6
- metadata.gz: 796a688c77d57098ef2c6fe4b42bb18b88d0675dc91b58c8ac087d27a7095b779d8ff9e181d7979f035f4a4139d039dfd3c1c832f3afc673cce08a74406f700e
7
- data.tar.gz: e541ae96ca4e061521383d47ba85c652866c8cef65bb3bdcd3462a624fcc2038dc3b2704c157a521e86bcfcd3ff71c943a6705f4327a6b3c1380ffa4f0ab6b52
6
+ metadata.gz: 0116ddd306c9a4ddf39852b96e0af8d79a94419dcfed64274be55e22da39e9513969f5f5af29626e24e8d95b856fbfeca3ac9adf1956ebfc7b12ff3d4df1c027
7
+ data.tar.gz: 25d6203f82a9c803b2c8043908815617fb9a460bd316cad32841d175e6d0d099b866ec26b7dc9cf4aa86e06623c3f01dbc45fbfda5a032131511f33b4ece4874
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'h2ocube_rails_tasks'
6
- s.version = '0.0.6'
6
+ s.version = '0.0.7'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Ben']
9
9
  s.email = ['ben@h2ocube.com']
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
- s.require_paths = ["lib"]
18
+ s.require_paths = ['lib']
19
19
 
20
20
  s.add_dependency 'rainbow'
21
21
  end
@@ -4,19 +4,19 @@ if File.exist? Rails.root.join('config/mongoid.yml')
4
4
  db = config['database']
5
5
  host = config['hosts'][0].split(':')[0]
6
6
  port = config['hosts'][0].split(':')[1]
7
-
7
+
8
8
  backup = "mongodump --host #{host} --port #{port} --db #{db}"
9
9
  desc backup
10
10
  task :dump do
11
11
  zfben_rails_rake_system backup
12
12
  end
13
13
 
14
- restore = "mongorestore --host #{host} --port #{port}"
14
+ restore = "mongorestore --host #{host} --port #{port} --drop"
15
15
  desc restore
16
16
  task :restore do
17
17
  zfben_rails_rake_system restore
18
18
  end
19
-
19
+
20
20
  repair = "mongod --nohttpinterface --nojournal --port #{port} --bind_ip #{host} --dbpath #{Rails.root}/mongo --repair"
21
21
  desc repair
22
22
  task :repair do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-21 00:00:00.000000000 Z
11
+ date: 2013-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -68,8 +68,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.0.7
71
+ rubygems_version: 2.0.5
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: This is a plugin to add some useful tasks to rails.
75
75
  test_files: []
76
+ has_rdoc: