ecm_capistrano_yaml_db 0.0.7 → 0.0.8

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.
@@ -1,17 +1,14 @@
1
- # require 'ecm/capistrano/common'
1
+ require 'capistrano'
2
+ require 'ecm/capistrano/yaml_db/common'
2
3
 
3
- unless Capistrano::Configuration.respond_to?(:instance)
4
- abort "ecm/capistrano/yaml_db requires Capistrano 2"
5
- end
6
-
7
- Capistrano::Configuration.instance.load do
4
+ Capistrano::Configuration.instance(:must_exist).load do
8
5
  namespace :db do
9
6
  namespace :data do
10
7
  desc "Loads data from data.yml"
11
- task :"load!", :roles => :app do
8
+ task(:"load!", { :roles => :app }) do
12
9
  actual_env = respond_to?(:stage) ? stage : rails_env;
13
10
  run <<-CMD
14
- cd #{current_path};
11
+ cd #{current_path};
15
12
  bundle exec rake RAILS_ENV=#{actual_env} db:data:load
16
13
  CMD
17
14
  end
@@ -20,7 +17,7 @@ Capistrano::Configuration.instance.load do
20
17
  task :dump, :roles => :app do
21
18
  actual_env = respond_to?(:stage) ? stage : rails_env;
22
19
  run <<-CMD
23
- cd #{current_path};
20
+ cd #{current_path};
24
21
  bundle exec rake RAILS_ENV=#{actual_env} db:data:dump
25
22
  CMD
26
23
  end
@@ -29,7 +26,7 @@ Capistrano::Configuration.instance.load do
29
26
  task :dump_dir, :roles => :app do
30
27
  actual_env = respond_to?(:stage) ? stage : rails_env;
31
28
  run <<-CMD
32
- cd #{current_path};
29
+ cd #{current_path};
33
30
  bundle exec rake RAILS_ENV=#{actual_env} db:data:dump_dir
34
31
  CMD
35
32
  end
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Capistrano
3
3
  module YamlDb
4
- VERSION = '0.0.7'
5
- end
4
+ VERSION = '0.0.8'
5
+ end
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
- require 'capistrano'
2
- require 'ecm/capistrano/yaml_db/common'
3
- require 'ecm/capistrano/yaml_db/tasks'
1
+ #require 'capistrano'
2
+ #require 'ecm/capistrano/yaml_db/common'
3
+ #require 'ecm/capistrano/yaml_db/tasks'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_capistrano_yaml_db
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roberto Vasquez Angel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-12 00:00:00 Z
18
+ date: 2015-01-06 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: capistrano
@@ -83,4 +83,3 @@ specification_version: 3
83
83
  summary: Capistrano yaml db tasks
84
84
  test_files: []
85
85
 
86
- has_rdoc: