o2h 0.1.13 → 0.1.14

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,4 +1,4 @@
1
- load 'deploy'
1
+ load 'deploy' unless respond_to?(:_cset)
2
2
 
3
3
  _cset(:sync_db_via) { :scp }
4
4
  _cset(:sync_db_file) { "#{application}-dump.sql.gz" }
data/lib/o2h/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module O2h
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
@@ -4,6 +4,15 @@ describe "sync" do
4
4
 
5
5
  include_context :capistrano
6
6
 
7
+ context 'loading' do
8
+ it "should load deploy only once" do
9
+ capistrano.load('deploy')
10
+ capistrano.should_not_receive(:load).with('deploy')
11
+ capistrano.load recipe_path
12
+ capistrano.load recipe_path
13
+ end
14
+ end
15
+
7
16
  context 'db task' do
8
17
  let(:application) { "app" }
9
18
  let(:host) { "host" }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: o2h
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 13
10
- version: 0.1.13
9
+ - 14
10
+ version: 0.1.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michal Cichra
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-11 00:00:00 Z
18
+ date: 2012-02-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: newrelic_rpm