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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c3c972dce8c12cffb6124593a02cfe2205d84a949fd954b4ba19f5dac2b6608
4
- data.tar.gz: 767caf3f26c4805a805f385b8accb9e64d9ce3fe2b3abdf8388f11c4d181dcea
3
+ metadata.gz: aaa98b0cc165e86120186ecb27dbb49b73e32256adbac3392ce40f0e47b4fb51
4
+ data.tar.gz: 81573c5f17f1f57482a74ad1d7be91e362b96f5631dd68376d04a28a350ef6d1
5
5
  SHA512:
6
- metadata.gz: 45fecf2fe340e7b4404b9afb90ffc7ed2ec8e308c536c749c09834d069f7a85ceab6bdf8d72ced7a7dc75004cf5773146654ca773aa75eacde4996843712b4b9
7
- data.tar.gz: 37e7515c77173323da11a56eedb78d3e4e91cebea2cca72dd87556b1379fe1af703314b35a7c40c4577c236f6a2b18de5ab4d578462d74312b790d1dd2e6584d
6
+ metadata.gz: 90318690e09b3f62c4c4ce0d4069495a40b1fd4f520948210bcc13792a754657570e5702f43d31be874d29054e47ec79c3e4e44046a161533e5541ce3387430c
7
+ data.tar.gz: e800d8fcd3ad2f487e9d80c114eac3033af9267bfd58f5293de36da825f124aaf5785d8b53db2e432e9c47d730300713137003557171f0a5cfd4b2b19420b5f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.25.3)
4
+ rocket_cms (0.25.4)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
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 rocket_cms capify PmiGames pg.pmi.ru
160
+ bundle exec rocket_cms_capify PmiGames pg.pmi.ru
161
161
 
162
162
  ### Documentation
163
163
 
data/bin/rocket_cms CHANGED
@@ -45,6 +45,7 @@ module RocketCMS
45
45
  end
46
46
  end
47
47
  copy_file "Capfile", "Capfile"
48
+ p port
48
49
  unless port.nil?
49
50
  template "unicorn.erb", "config/unicorn/production.rb"
50
51
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.25.3"
2
+ VERSION = "0.25.4"
3
3
  end
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.3
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