penthouse 0.7.2 → 0.7.3

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: 73382ba7de907b566cceef09a3440ba67b8542fe
4
- data.tar.gz: 57555da89376ec04de9a198e9d376a4aabb20d69
3
+ metadata.gz: 3219338982175359caa7cb3271636d404eb5bded
4
+ data.tar.gz: f205b987018ae4b61b1ebb4d0008c1df13d981fa
5
5
  SHA512:
6
- metadata.gz: 410f25e3f2ceb19c54afee31b51bdfed78a05e8169b762bf9a7a628eceeee9df5d54e23542b99e42dab8f39e4d0c1b36ded05c8c710ef32b8ffe07f5ec13bd12
7
- data.tar.gz: fd06ac14e44fdad24ed1d031dd24df0e8f8304cbb596d86d9329a162e86cda707435d59c7d482eb5c69b14f3aec55bff550ee1958314b9e4fe6502a3a5212c62
6
+ metadata.gz: b57455d1b84f120ec8c943a4d6ed29c4a323023b35d08e9b609bcf62c9c574eccc1b03ffee1c32a460e2098f358f9eeee82d927e54a05a25c8b23596b5cfcca1
7
+ data.tar.gz: 18163e1245e19c179a4d8f8ab4c8a6c0134790b8dd1876e15224c38e3fc84b51d171be1343d2c8f94c1419fe4308df99f2ae07e535e9db0365022b739927c890
@@ -43,17 +43,17 @@ module Penthouse
43
43
  module ClassMethods
44
44
  def migrate_with_penthouse(migrations_paths, target_version = nil, &block)
45
45
  unless Penthouse.configuration.migrate_tenants?
46
- if defined?(:migrate_without_octopus)
47
- return migrate_without_octopus(migrations_paths, target_version, &block)
48
- else
49
- return migrate_without_penthouse(migrations_paths, target_version, &block)
50
- end
46
+ puts "Skipping penthouse integration"
47
+ return migrate_without_penthouse(migrations_paths, target_version, &block)
51
48
  end
52
49
 
53
- Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do
50
+ Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
51
+ puts "Migrating #{tenant.identifier}"
54
52
  if defined?(:migrate_without_octopus)
53
+ puts "calling #migrate_without_octopus"
55
54
  migrate_without_octopus(migrations_paths, target_version, &block)
56
55
  else
56
+ puts "calling #migrate_without_penthouse"
57
57
  migrate_without_penthouse(migrations_paths, target_version, &block)
58
58
  end
59
59
  end
@@ -61,17 +61,17 @@ module Penthouse
61
61
 
62
62
  def up_with_penthouse(migrations_paths, target_version = nil, &block)
63
63
  unless Penthouse.configuration.migrate_tenants?
64
- if defined?(:up_without_octopus)
65
- return up_without_octopus(migrations_paths, target_version, &block)
66
- else
67
- return up_without_penthouse(migrations_paths, target_version, &block)
68
- end
64
+ puts "Skipping penthouse integration"
65
+ return up_without_penthouse(migrations_paths, target_version, &block)
69
66
  end
70
67
 
71
- Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do
68
+ Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
69
+ puts "Migrating #{tenant.identifier}"
72
70
  if defined?(:up_without_octopus)
71
+ puts "calling #up_without_octopus"
73
72
  up_without_octopus(migrations_paths, target_version, &block)
74
73
  else
74
+ puts "calling #up_without_penthouse"
75
75
  up_without_penthouse(migrations_paths, target_version, &block)
76
76
  end
77
77
  end
@@ -79,17 +79,17 @@ module Penthouse
79
79
 
80
80
  def down_with_penthouse(migrations_paths, target_version = nil, &block)
81
81
  unless Penthouse.configuration.migrate_tenants?
82
- if defined?(:down_without_octopus)
83
- return down_without_octopus(migrations_paths, target_version, &block)
84
- else
85
- return down_without_penthouse(migrations_paths, target_version, &block)
86
- end
82
+ puts "Skipping penthouse integration"
83
+ return down_without_penthouse(migrations_paths, target_version, &block)
87
84
  end
88
85
 
89
- Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do
86
+ Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
87
+ puts "Migrating #{tenant.identifier}"
90
88
  if defined?(:down_without_octopus)
89
+ puts "calling #down_without_octopus"
91
90
  down_without_octopus(migrations_paths, target_version, &block)
92
91
  else
92
+ puts "calling #down_without_penthouse"
93
93
  down_without_penthouse(migrations_paths, target_version, &block)
94
94
  end
95
95
  end
@@ -97,17 +97,17 @@ module Penthouse
97
97
 
98
98
  def run_with_penthouse(direction, migrations_paths, target_version)
99
99
  unless Penthouse.configuration.migrate_tenants?
100
- if defined?(:run_without_octopus)
101
- return run_without_octopus(direction, migrations_paths, target_version)
102
- else
103
- return run_without_penthouse(direction, migrations_paths, target_version)
104
- end
100
+ puts "Skipping penthouse integration"
101
+ return run_without_penthouse(direction, migrations_paths, target_version)
105
102
  end
106
103
 
107
- Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do
104
+ Penthouse.each_tenant(tenant_identifiers: tenants_to_migrate) do |tenant|
105
+ puts "Migrating #{tenant.identifier}"
108
106
  if defined?(:run_without_octopus)
107
+ puts "calling #run_without_octopus"
109
108
  run_without_octopus(direction, migrations_paths, target_version)
110
109
  else
110
+ puts "calling #run_without_penthouse"
111
111
  run_without_penthouse(direction, migrations_paths, target_version)
112
112
  end
113
113
  end
@@ -1,3 +1,3 @@
1
1
  module Penthouse
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: penthouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Townsend