capistrano-refinerycms 0.1.0
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 +7 -0
- data/lib/capistrano/refinerycms/helpers.rb +34 -0
- data/lib/capistrano/refinerycms.rb +17 -0
- data/lib/capistrano/tasks/refinerycms.rake +77 -0
- data/lib/capistrano-refinerycms.rb +16 -0
- metadata +47 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 5ef729f5cfcf06a7fd678c69458f53b72559bcd6
|
|
4
|
+
data.tar.gz: 1778e6a56579ecad5a830a8c3266b0c1bf0381f9
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: dd4824d829e71748d5945c4c9637875bb4c9f90d28b2398618c37fc8559b8854eb0805a382708f11faeb68cb0c048c061955c24090bf3cfd46a85b380bb34473
|
|
7
|
+
data.tar.gz: c0eef77d4269e93cfcf27cd4ee51925e62d0ea03b132e6c698158016b6277a29cfc7f92c94048f4d43a16b4ba741edfb6dadaa62f96bc44cc0ab86a9c78b6e36
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Recipes for installing RefineryCMS using Capistrano 3.x
|
|
2
|
+
# Copyright (C) 2015 Harald Eilertsen <haraldei@anduin.net>
|
|
3
|
+
#
|
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
#
|
|
17
|
+
module Capistrano
|
|
18
|
+
module RefineryCMS
|
|
19
|
+
module Helpers
|
|
20
|
+
|
|
21
|
+
def refinerycms_template(template_name)
|
|
22
|
+
f = File.join(fetch(:refinerycms_template_path), 'template_name')
|
|
23
|
+
unless File.exists?(f)
|
|
24
|
+
default_template_path = File.join(%W{ .. .. .. generators capistrano refinerycms templates #{ template_name } })
|
|
25
|
+
f = File.expand_path(default_template_path, __FILE__)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
template = File.read(f)
|
|
29
|
+
StringIO.new(ERB.new(template).result(binding))
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Recipes for installing RefineryCMS using Capistrano 3.x
|
|
2
|
+
# Copyright (C) 2015 Harald Eilertsen <haraldei@anduin.net>
|
|
3
|
+
#
|
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
#
|
|
17
|
+
load File.expand_path('../tasks/refinerycms.rake', __FILE__)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Recipes for installing RefineryCMS using Capistrano 3.x
|
|
2
|
+
# Copyright (C) 2015 Harald Eilertsen <haraldei@anduin.net>
|
|
3
|
+
#
|
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
|
|
17
|
+
require 'capistrano/refinerycms/helpers'
|
|
18
|
+
require 'securerandom'
|
|
19
|
+
require 'active_support/inflector'
|
|
20
|
+
|
|
21
|
+
include Capistrano::RefineryCMS::Helpers
|
|
22
|
+
|
|
23
|
+
namespace :load do
|
|
24
|
+
|
|
25
|
+
task :defaults do
|
|
26
|
+
|
|
27
|
+
# Settings for config/initializers/refinery/core.rb
|
|
28
|
+
set :refinerycms_site_name, 'RefineryCMS'
|
|
29
|
+
set :refinerycms_force_ssl, false
|
|
30
|
+
set :refinerycms_dragonfly_custom_backend_class, ''
|
|
31
|
+
set :refinerycms_dragonfly_custom_backend_opts, []
|
|
32
|
+
set :refinerycms_base_cache_key, -> { ActiveSupport::Inflector::parameterize(fetch(:refinerycms_site_name), '_') }
|
|
33
|
+
set :refinerycms_google_analytics_page_code, 'UA-xxxxxx-x'
|
|
34
|
+
set :refinerycms_authenticity_token_on_frontend, true
|
|
35
|
+
set :refinerycms_dragonfly_secret, -> { SecureRandom.hex(24) }
|
|
36
|
+
set :refinerycms_wymeditor_whitelist_tags, []
|
|
37
|
+
set :refinerycms_extra_javascript, ''
|
|
38
|
+
set :refinerycms_extra_stylesheet, ''
|
|
39
|
+
set :refinerycms_backend_route, '/refinery'
|
|
40
|
+
|
|
41
|
+
# Settings affecting the gem operation
|
|
42
|
+
set :refinerycms_template_path, -> { File.join('config', 'deploy', 'templates') }
|
|
43
|
+
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
namespace :deploy do
|
|
50
|
+
namespace :refinerycms do
|
|
51
|
+
|
|
52
|
+
desc 'Initialize refinery config for new deployments.'
|
|
53
|
+
task :configure do
|
|
54
|
+
output_file = File.join(shared_path, "config", "initializers", "refinery", "core.rb")
|
|
55
|
+
on roles(:app) do
|
|
56
|
+
unless test "[ -f #{output_file} ]"
|
|
57
|
+
core = refinerycms_template('config_initializers_refinery_core.rb.erb')
|
|
58
|
+
execute :mkdir, '-p', File.dirname(output_file)
|
|
59
|
+
upload!(core, output_file)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
desc 'Seed the database'
|
|
65
|
+
task :seed do
|
|
66
|
+
on roles(:db) do
|
|
67
|
+
within release_path do
|
|
68
|
+
execute :rake, 'db:seed', "RAILS_ENV=#{fetch(:rails_env)}"
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
before 'deploy:check:linked_files', 'deploy:refinerycms:configure'
|
|
76
|
+
after 'deploy:migrate', 'deploy:refinerycms:seed'
|
|
77
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Recipes for installing RefineryCMS using Capistrano 3.x
|
|
2
|
+
# Copyright (C) 2015 Harald Eilertsen <haraldei@anduin.net>
|
|
3
|
+
#
|
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
#
|
metadata
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: capistrano-refinerycms
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Harald Eilertsen
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Recipes for installing RefineryCMS using Capistrano 3.x
|
|
14
|
+
email: haraldei@anduin.net
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/capistrano-refinerycms.rb
|
|
20
|
+
- lib/capistrano/refinerycms.rb
|
|
21
|
+
- lib/capistrano/refinerycms/helpers.rb
|
|
22
|
+
- lib/capistrano/tasks/refinerycms.rake
|
|
23
|
+
homepage: https://github.com/snake66/capistrano-refinerycms.git
|
|
24
|
+
licenses:
|
|
25
|
+
- GPLv3
|
|
26
|
+
metadata: {}
|
|
27
|
+
post_install_message:
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '0'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubyforge_project:
|
|
43
|
+
rubygems_version: 2.4.5
|
|
44
|
+
signing_key:
|
|
45
|
+
specification_version: 4
|
|
46
|
+
summary: Capistrano 3.x recipes for RefineryCMS.
|
|
47
|
+
test_files: []
|