Commit 43a3006 1 parent f62e7bd commit 43a3006 Copy full SHA for 43a3006
File tree 2 files changed +28
-10
lines changed
2 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 11
11
default [ :civicrm ] [ :extensions ] [ :emailapi ] [ :revision ] = "2.9"
12
12
13
13
# fancy email templates
14
- # Do not update from git! See https://civicrm.stackexchange.com/questions/25763/mosaico-packages-are-missing-beta-4
15
- # default[:civicrm][:extensions][:mosaico][:name] = "uk.co.vedaconsulting.mosaico"
16
- # default[:civicrm][:extensions][:mosaico][:repository] = "https://github.com/veda-consulting-company/uk.co.vedaconsulting.mosaico.git"
17
- # default[:civicrm][:extensions][:mosaico][:revision] = "3.2"
14
+ default [ :civicrm ] [ :extensions ] [ :mosaico ] [ :name ] = "uk.co.vedaconsulting.mosaico"
15
+ default [ :civicrm ] [ :extensions ] [ :mosaico ] [ :zip ] = "https://download.civicrm.org/extension/uk.co.vedaconsulting.mosaico/3.2.1691060437/uk.co.vedaconsulting.mosaico-3.2.1691060437.zip"
18
16
19
17
# validate that osm username exists, simple check
20
18
default [ :civicrm ] [ :extensions ] [ :username ] [ :name ] = "org.openstreetmap.username"
Original file line number Diff line number Diff line change 161
161
end
162
162
163
163
node [ :civicrm ] [ :extensions ] . each_value do |details |
164
- git "#{ extensions_directory } /#{ details [ :name ] } " do
165
- action :sync
166
- repository details [ :repository ]
167
- revision details [ :revision ]
168
- user "wordpress"
169
- group "wordpress"
164
+ if details [ :repository ]
165
+ git "#{ extensions_directory } /#{ details [ :name ] } " do
166
+ action :sync
167
+ repository details [ :repository ]
168
+ revision details [ :revision ]
169
+ user "wordpress"
170
+ group "wordpress"
171
+ end
172
+ elsif details [ :zip ]
173
+ remote_file "#{ cache_dir } /#{ details [ :name ] } .zip" do
174
+ source details [ :zip ]
175
+ owner "root"
176
+ group "root"
177
+ mode "644"
178
+ backup false
179
+ end
180
+
181
+ archive_file "#{ cache_dir } /#{ details [ :name ] } .zip" do
182
+ action :nothing
183
+ destination "#{ extensions_directory } /#{ details [ :name ] } "
184
+ strip_components 1
185
+ owner "wordpress"
186
+ group "wordpress"
187
+ overwrite true
188
+ subscribes :extract , "remote_file[#{ cache_dir } /#{ details [ :name ] } .zip]" , :immediately
189
+ end
170
190
end
171
191
end
172
192
You can’t perform that action at this time.
0 commit comments