rocket_cms 0.25.4 → 0.25.5
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/lib/generators/rocket_cms/templates/production.erb +2 -0
- data/lib/rocket_cms.rb +0 -2
- data/lib/rocket_cms/version.rb +1 -1
- metadata +1 -3
- data/bin/rocket_cms +0 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96655d05804f4c89771955899b6cdf7ac4fcc77111c962629cfa2a8d1863ded5
|
4
|
+
data.tar.gz: a2c43b4b0061591211c894f098414a8d6e0bf7fe407e046c672aa595b3acfdf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f40a313f644e57f19ea6370f6914ecd0a0cbdb49e4310206bc9f61e24e18cdf93af3d9ccd74524de343165a1bc610925ac0c599a004b5f2e7315b68e877f3e8e
|
7
|
+
data.tar.gz: 6a9fd0a50b898c6c9ff7da3d283bbf15f7f85d9718bb14a046d373d1eafdf4997234374012bb665a79d617bd593d793045281500a40b401fba165deaeb018e7a
|
data/Gemfile.lock
CHANGED
data/lib/rocket_cms.rb
CHANGED
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
@@ -188,7 +188,6 @@ description: RocketCMS
|
|
188
188
|
email:
|
189
189
|
- glebtv@gmail.com
|
190
190
|
executables:
|
191
|
-
- rocket_cms
|
192
191
|
- rocket_cms_capify
|
193
192
|
extensions: []
|
194
193
|
extra_rdoc_files: []
|
@@ -254,7 +253,6 @@ files:
|
|
254
253
|
- app/views/shared/_meta.slim
|
255
254
|
- app/views/shared/_obj.slim
|
256
255
|
- app/views/shared/_og.slim
|
257
|
-
- bin/rocket_cms
|
258
256
|
- bin/rocket_cms_capify
|
259
257
|
- config/locales/en.rocket_admin.yml
|
260
258
|
- config/locales/en.rs.yml
|
data/bin/rocket_cms
DELETED
@@ -1,60 +0,0 @@
|
|
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
|
-
p port
|
49
|
-
unless port.nil?
|
50
|
-
template "unicorn.erb", "config/unicorn/production.rb"
|
51
|
-
end
|
52
|
-
template "deploy.erb", "config/deploy.rb"
|
53
|
-
template "production.erb", "config/deploy/production.rb"
|
54
|
-
template "dl.erb", "lib/tasks/dl.thor"
|
55
|
-
puts "all ok"
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
RocketCMS::Capify.start
|