vpsb 1.1.0 → 1.1.1
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/commands/base.rb +0 -4
- data/lib/vpsb/commands/build.rb +1 -0
- data/lib/vpsb/tasks/deploy_config.rb +1 -3
- data/lib/vpsb/version.rb +1 -1
- metadata +1 -2
- data/lib/vpsb/resources/app_gemfile.rb +0 -71
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c515cc85539788c3ee5c333aa085912029f2841
|
4
|
+
data.tar.gz: 14cdb67a63b910dffa454ccf72253c4925e664dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14b60553daca3202cb63bcaea102672d4754b888937e4ecc6e667a5d3f72d88f1f20bd51aaf1b6fefeeae5ebdabf818486f20c64dd09c72073a533bf00706153
|
7
|
+
data.tar.gz: d72ac2501221eddc0d04ca4f842f29aff927a35db39b6688b96589a96d1e894ad5719fed8741d04a3ee5beaa3b7e4111eb8c2027af0f732e5042d9508d6cdc91
|
data/Gemfile.lock
CHANGED
data/lib/vpsb/commands/base.rb
CHANGED
@@ -56,10 +56,6 @@ module Vpsb
|
|
56
56
|
case name.to_s.strip
|
57
57
|
when 'go', 'g' then go(params)
|
58
58
|
when 'init', 'i' then init(params)
|
59
|
-
when 'setup', 's' then setup(params)
|
60
|
-
when 'build', 'b' then build(params)
|
61
|
-
when 'cook', 'c' then cook(params)
|
62
|
-
when 'deploy', 'd' then deploy(params)
|
63
59
|
else puts Vpsb::Commands::HelpMessages.unknown_command
|
64
60
|
end
|
65
61
|
end
|
data/lib/vpsb/commands/build.rb
CHANGED
@@ -16,6 +16,7 @@ module Vpsb
|
|
16
16
|
monit_role.call if ask_to_confirm("Do you want configure monit(newrelic)")
|
17
17
|
packages_bags.call if ask_to_confirm("Do you want to install additional apt-get apps")
|
18
18
|
node.call
|
19
|
+
ask { puts "Now everything will be installed. It should take 10-15 minutes. Click ENTER to start" }
|
19
20
|
end
|
20
21
|
|
21
22
|
private
|
@@ -5,15 +5,13 @@ module Vpsb
|
|
5
5
|
|
6
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'
|
9
8
|
|
10
|
-
prepare_squence :deploy_config, :deploy_rb
|
9
|
+
prepare_squence :deploy_config, :deploy_rb
|
11
10
|
|
12
11
|
def call
|
13
12
|
prepare
|
14
13
|
Vpsb::Helpers::FileReplace.replace_text(PATH, core.get(:deploy_config))
|
15
14
|
Vpsb::Helpers::FileReplace.replace_text(DEPLOY_RB_PATH, core.get(:deploy_rb))
|
16
|
-
Vpsb::Helpers::FileReplace.replace_text(GEMFILE_PATH, core.get(:app_gemfile))
|
17
15
|
end
|
18
16
|
end
|
19
17
|
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pawel Niemczyk
|
@@ -241,7 +241,6 @@ 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
|
245
244
|
- lib/vpsb/resources/app_host.rb
|
246
245
|
- lib/vpsb/resources/app_name.rb
|
247
246
|
- lib/vpsb/resources/app_nginx_use_ssl.rb
|
@@ -1,71 +0,0 @@
|
|
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
|