vpsb 1.0.8 → 1.0.9
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vpsb/resources/app_gemfile.rb +71 -0
- data/lib/vpsb/resources/deploy_rb.rb +2 -2
- data/lib/vpsb/tasks/deploy_config.rb +5 -4
- data/lib/vpsb/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bad50f6204a1edfb56127dd44e796a67b3428a62
|
4
|
+
data.tar.gz: 41fe1fd9f36def72104fb17473ac3ceeda5ac63b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3ee18e1fb2b530c17ed0500a19d681a7c96f5ecac4fd32d7baad179cf7725b8a40f1fd5942099aeed5a19681931d28dd8108368437f4e881d60b9f15f78365
|
7
|
+
data.tar.gz: b9f08856fd8f0040296a5ad1fc58ab74d772ab14da8671eddfc4e1b9bf59ffe72515b45e727a6c958d6128f20742a96992e3a6b4c13f7a2df51f3d2919469c1d
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,71 @@
|
|
1
|
+
module Vpsb
|
2
|
+
module Resources
|
3
|
+
class AppGemfile < BaseResource
|
4
|
+
res :app_gemfile
|
5
|
+
|
6
|
+
def call(data)
|
7
|
+
template(data)
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def template(data)
|
13
|
+
<<-EOF
|
14
|
+
source 'https://rubygems.org'
|
15
|
+
|
16
|
+
ruby '#{data.get(:ruby_version)}'
|
17
|
+
|
18
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
19
|
+
gem 'rails', '4.1.1'
|
20
|
+
# Use sqlite3 as the database for Active Record
|
21
|
+
gem 'sqlite3'
|
22
|
+
# Use SCSS for stylesheets
|
23
|
+
gem 'sass-rails', '~> 4.0.3'
|
24
|
+
# Use Uglifier as compressor for JavaScript assets
|
25
|
+
gem 'uglifier', '>= 1.3.0'
|
26
|
+
# Use CoffeeScript for .js.coffee assets and views
|
27
|
+
gem 'coffee-rails', '~> 4.0.0'
|
28
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
29
|
+
# gem 'therubyracer', platforms: :ruby
|
30
|
+
|
31
|
+
# Use jquery as the JavaScript library
|
32
|
+
gem 'jquery-rails'
|
33
|
+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
34
|
+
gem 'turbolinks'
|
35
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
36
|
+
gem 'jbuilder', '~> 2.0'
|
37
|
+
# bundle exec rake doc:rails generates the API under doc/api.
|
38
|
+
gem 'sdoc', '~> 0.4.0', group: :doc
|
39
|
+
|
40
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
41
|
+
gem 'spring', group: :development
|
42
|
+
|
43
|
+
# Use ActiveModel has_secure_password
|
44
|
+
# gem 'bcrypt', '~> 3.1.7'
|
45
|
+
|
46
|
+
# Use unicorn as the app server
|
47
|
+
gem 'unicorn'
|
48
|
+
|
49
|
+
# Use Capistrano for deployment
|
50
|
+
# gem 'capistrano-rails', group: :development
|
51
|
+
|
52
|
+
# Use debugger
|
53
|
+
# gem 'debugger', group: [:development, :test]
|
54
|
+
|
55
|
+
group :development do
|
56
|
+
gem 'quiet_assets'
|
57
|
+
|
58
|
+
gem 'capistrano', '~> 3.1.0', require: false
|
59
|
+
gem 'capistrano-rvm', require: false
|
60
|
+
gem 'capistrano-rails', require: false
|
61
|
+
gem 'capistrano-bundler', require: false
|
62
|
+
gem 'capistrano-rsync', '~> 1.0.2', require: false
|
63
|
+
|
64
|
+
gem 'meta_request'
|
65
|
+
gem 'awesome_print'
|
66
|
+
end
|
67
|
+
EOF
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -64,9 +64,9 @@ set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public
|
|
64
64
|
# Default value for keep_releases is 5
|
65
65
|
set :keep_releases, 5
|
66
66
|
|
67
|
-
set :rvm_ruby_version, '
|
67
|
+
set :rvm_ruby_version, '#{data.get(:ruby_version)}'
|
68
68
|
set :rvm_type, :user
|
69
|
-
set :rvm_ruby_string, "
|
69
|
+
set :rvm_ruby_string, "#{data.get(:ruby_version)}@#{application}"
|
70
70
|
|
71
71
|
namespace :unicorn do
|
72
72
|
%w{start stop restart reload upgrade}.each do |command|
|
@@ -3,16 +3,17 @@ module Vpsb
|
|
3
3
|
class DeployConfig < BaseTask
|
4
4
|
include AskSupport
|
5
5
|
|
6
|
-
PATH
|
6
|
+
PATH = 'bootstrap_rails_app_in_do/config/deploy/production.rb'
|
7
7
|
DEPLOY_RB_PATH = 'bootstrap_rails_app_in_do/config/deploy.rb'
|
8
|
+
GEMFILE_PATH = 'bootstrap_rails_app_in_do/Gemfile'
|
8
9
|
|
9
|
-
prepare_squence :deploy_config, :deploy_rb
|
10
|
+
prepare_squence :deploy_config, :deploy_rb, :gemfile
|
10
11
|
|
11
12
|
def call
|
12
13
|
prepare
|
13
|
-
|
14
|
-
Vpsb::Helpers::FileReplace.replace_text(PATH, core.get(:deploy_config))
|
14
|
+
Vpsb::Helpers::FileReplace.replace_text(PATH, core.get(:deploy_config))
|
15
15
|
Vpsb::Helpers::FileReplace.replace_text(DEPLOY_RB_PATH, core.get(:deploy_rb))
|
16
|
+
Vpsb::Helpers::FileReplace.replace_text(GEMFILE_PATH, core.get(:app_gemfile))
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|
data/lib/vpsb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vpsb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pawel Niemczyk
|
@@ -241,6 +241,7 @@ files:
|
|
241
241
|
- lib/vpsb/resources.rb
|
242
242
|
- lib/vpsb/resources/app_bags_json.rb
|
243
243
|
- lib/vpsb/resources/app_env_variables.rb
|
244
|
+
- lib/vpsb/resources/app_gemfile.rb
|
244
245
|
- lib/vpsb/resources/app_host.rb
|
245
246
|
- lib/vpsb/resources/app_name.rb
|
246
247
|
- lib/vpsb/resources/app_nginx_use_ssl.rb
|