rocket_cms 0.25.3 → 0.25.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/bin/rocket_cms +1 -0
- data/bin/rocket_cms_capify +58 -0
- data/lib/rocket_cms/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaa98b0cc165e86120186ecb27dbb49b73e32256adbac3392ce40f0e47b4fb51
|
4
|
+
data.tar.gz: 81573c5f17f1f57482a74ad1d7be91e362b96f5631dd68376d04a28a350ef6d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90318690e09b3f62c4c4ce0d4069495a40b1fd4f520948210bcc13792a754657570e5702f43d31be874d29054e47ec79c3e4e44046a161533e5541ce3387430c
|
7
|
+
data.tar.gz: e800d8fcd3ad2f487e9d80c114eac3033af9267bfd58f5293de36da825f124aaf5785d8b53db2e432e9c47d730300713137003557171f0a5cfd4b2b19420b5f6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -157,7 +157,7 @@ designed to be used together with our ansible app setup script.
|
|
157
157
|
|
158
158
|
### Alternative capistrano task (can be used with non-configured app)
|
159
159
|
|
160
|
-
bundle exec
|
160
|
+
bundle exec rocket_cms_capify PmiGames pg.pmi.ru
|
161
161
|
|
162
162
|
### Documentation
|
163
163
|
|
data/bin/rocket_cms
CHANGED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: utf-8
|
3
|
+
|
4
|
+
require 'thor'
|
5
|
+
|
6
|
+
module RocketCMS
|
7
|
+
class Capify < Thor::Group
|
8
|
+
include Thor::Actions
|
9
|
+
|
10
|
+
no_commands do
|
11
|
+
def load_env
|
12
|
+
return if defined?(Rails)
|
13
|
+
require File.expand_path("../../../config/environment", __FILE__)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class_option :mongoid, default: false
|
18
|
+
|
19
|
+
argument :app_name, type: :string
|
20
|
+
argument :domain, type: :string
|
21
|
+
argument :port, type: :string, optional: true
|
22
|
+
|
23
|
+
source_root File.expand_path('../../lib/generators/rocket_cms/templates', __FILE__)
|
24
|
+
|
25
|
+
#def app_name
|
26
|
+
#Rails.application.class.name.split("::")[0]
|
27
|
+
#end
|
28
|
+
|
29
|
+
def deploy_to
|
30
|
+
"/data/#{app_name.downcase}/app"
|
31
|
+
end
|
32
|
+
def tmp_path
|
33
|
+
"/data/#{app_name.downcase}/tmp_dump"
|
34
|
+
end
|
35
|
+
|
36
|
+
desc "Generate Capistrano config"
|
37
|
+
def capify
|
38
|
+
if options[:mongoid]
|
39
|
+
def RocketCMS.mongoid?
|
40
|
+
true
|
41
|
+
end
|
42
|
+
else
|
43
|
+
def RocketCMS.mongoid?
|
44
|
+
true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
copy_file "Capfile", "Capfile"
|
48
|
+
unless port.nil?
|
49
|
+
template "unicorn.erb", "config/unicorn/production.rb"
|
50
|
+
end
|
51
|
+
template "deploy.erb", "config/deploy.rb"
|
52
|
+
template "production.erb", "config/deploy/production.rb"
|
53
|
+
template "dl.erb", "lib/tasks/dl.thor"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
RocketCMS::Capify.start
|
data/lib/rocket_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.25.
|
4
|
+
version: 0.25.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
@@ -189,6 +189,7 @@ email:
|
|
189
189
|
- glebtv@gmail.com
|
190
190
|
executables:
|
191
191
|
- rocket_cms
|
192
|
+
- rocket_cms_capify
|
192
193
|
extensions: []
|
193
194
|
extra_rdoc_files: []
|
194
195
|
files:
|
@@ -254,6 +255,7 @@ files:
|
|
254
255
|
- app/views/shared/_obj.slim
|
255
256
|
- app/views/shared/_og.slim
|
256
257
|
- bin/rocket_cms
|
258
|
+
- bin/rocket_cms_capify
|
257
259
|
- config/locales/en.rocket_admin.yml
|
258
260
|
- config/locales/en.rs.yml
|
259
261
|
- config/locales/ru.cancan.yml
|