penthouse 0.7.2 → 0.7.3
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.
- checksums.yaml +4 -4
- data/lib/penthouse/migrator.rb +24 -24
- data/lib/penthouse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3219338982175359caa7cb3271636d404eb5bded
|
4
|
+
data.tar.gz: f205b987018ae4b61b1ebb4d0008c1df13d981fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b57455d1b84f120ec8c943a4d6ed29c4a323023b35d08e9b609bcf62c9c574eccc1b03ffee1c32a460e2098f358f9eeee82d927e54a05a25c8b23596b5cfcca1
|
7
|
+
data.tar.gz: 18163e1245e19c179a4d8f8ab4c8a6c0134790b8dd1876e15224c38e3fc84b51d171be1343d2c8f94c1419fe4308df99f2ae07e535e9db0365022b739927c890
|
data/lib/penthouse/migrator.rb
CHANGED
@@ -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
|
-
|
47
|
-
|
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
|
-
|
65
|
-
|
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
|
-
|
83
|
-
|
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
|
-
|
101
|
-
|
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
|
data/lib/penthouse/version.rb
CHANGED