capistrano-bolt 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4d814bf5da8a37d191d20fc319eeabb88253f99
4
- data.tar.gz: 3a74262c6856e9bcfa2234741472e8552cd8f11f
3
+ metadata.gz: c780cd1bd3be6ffcf994025fdb2d61d9fd230b01
4
+ data.tar.gz: 6285eca86acafc9d221ba50ce7a3aa9531e044d2
5
5
  SHA512:
6
- metadata.gz: 9aef67b9509cdf405610b00b1453fa333c0a5f789e61f14a9bfc5bef2b140ed00f5077f8242dceb7062596dac2776feacd1db48e672c98fb7ca810d13e80b293
7
- data.tar.gz: 1029f1c25dfe1d9fef51a81d1995108578b5825c90fab381cf020b23c3e9a213f8595a24cc7c074dba1467f9a6f8783d159983849e9862ae8bb6d4b29b8b8e92
6
+ metadata.gz: 72508dccf6d750ea3724d665322299faef8ab41a1f37580e6e3f8bb8e3474e1ca3d125764e8b01cb780c7e2154047f28c818cf597183a61146258bf27f1cca1b
7
+ data.tar.gz: 4096263168afbeb49892fc52fba7097df00a293b4a00ad7933c4fdc792f2f600a8e6f03d709b6d27ac20142b5143b36d1a47cbcf8209ba1cd81cf4e7f7dda236
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in capistrano3-bolt.gemspec
3
+ # Specify your gem's dependencies in capistrano-bolt.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -141,3 +141,4 @@ wait for the task to complete and visit the url for your app domain. You should
141
141
  ---
142
142
  **Note:** I have written this quick install document seeing that many people have tried to download this gem without any documentation. So this document is prepared in a hurry to fill this gap. If you are getting errors or if the information in this document is inadequate, contact me @ shankar AT opendrops DOT com and I shall be able to guide you as soon as possible.
143
143
 
144
+ <img src="https://ga-beacon.appspot.com/UA-52330604-1/https://github.com/opendrops/capistrano-bolt"/>
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Bolt
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -1,14 +1,4 @@
1
- # Override Capistrano install task
2
- load File.expand_path('../tasks/setup.rake', __FILE__)
3
-
4
- # Load nginx task
5
1
  load File.expand_path('../tasks/nginx/nginx.rake', __FILE__)
6
-
7
- # Load puma task
8
- load File.expand_path('../tasks/puma/puma.rake', __FILE__)
9
-
10
- # Load postgresql task
11
2
  load File.expand_path('../tasks/postgresql/postgresql.rake', __FILE__)
12
-
13
- # Load server setup task
14
- load File.expand_path('../tasks/setup.rake', __FILE__)
3
+ load File.expand_path('../tasks/puma/puma.rake', __FILE__)
4
+ load File.expand_path('../tasks/setup/setup.rake', __FILE__)
File without changes
@@ -6,9 +6,12 @@ namespace :setup do
6
6
  task :postgresql do
7
7
  invoke "postgresql:create_role"
8
8
  invoke "postgresql:create_db"
9
- from = File.expand_path("../../templates/postgresql/database.yml.erb", __FILE__)
10
- to = File.join(shared_path, 'config/database.yml')
11
- upload_template(from, to)
9
+ on roles(:app) do
10
+ from = File.expand_path("../../../templates/postgresql/database.yml.erb", __FILE__)
11
+ to = File.join(shared_path, 'config/database.yml')
12
+ execute :mkdir, '-pv', "#{shared_path}/config"
13
+ upload_template(from, to)
14
+ end
12
15
  end
13
16
 
14
17
  desc 'add site, enable and reload nginx'
@@ -32,7 +35,7 @@ namespace :setup do
32
35
  desc 'create a dotenv file for secure environment data'
33
36
  task :dotenv do
34
37
  on roles(:app) do
35
- from = File.expand_path("../../templates/dotenv.erb", __FILE__)
38
+ from = File.expand_path("../../../templates/dotenv.erb", __FILE__)
36
39
  to = File.join(shared_path, '.env')
37
40
  upload_template(from, to)
38
41
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shankar Dhanasekaran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-26 00:00:00.000000000 Z
11
+ date: 2014-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -66,13 +66,13 @@ files:
66
66
  - README.md
67
67
  - Rakefile
68
68
  - capistrano-bolt.gemspec
69
+ - lib/capistrano-bolt.rb
69
70
  - lib/capistrano/bolt.rb
70
71
  - lib/capistrano/bolt/version.rb
71
- - lib/capistrano/tasks/install.rake
72
72
  - lib/capistrano/tasks/nginx/nginx.rake
73
73
  - lib/capistrano/tasks/postgresql/postgresql.rake
74
74
  - lib/capistrano/tasks/puma/puma.rake
75
- - lib/capistrano/tasks/setup.rake
75
+ - lib/capistrano/tasks/setup/setup.rake
76
76
  - lib/capistrano/templates/capistrano/Capfile
77
77
  - lib/capistrano/templates/capistrano/deploy.rb.erb
78
78
  - lib/capistrano/templates/capistrano/stage.rb.erb
@@ -1,39 +0,0 @@
1
- #TODO incomplete task
2
- desc 'Install Capistrano, cap install STAGES=staging,production'
3
- task :install do
4
- clear_actions
5
- envs = ENV['STAGES'] || 'staging,production'
6
-
7
- tasks_dir = Pathname.new('lib/capistrano/tasks')
8
- config_dir = Pathname.new('config')
9
- deploy_dir = config_dir.join('deploy')
10
-
11
- deploy_rb = File.expand_path("../../templates/capistrano/deploy.rb.erb", __FILE__)
12
- stage_rb = File.expand_path("../../templates/capistrano/stage.rb.erb", __FILE__)
13
- capfile = File.expand_path("../../templates/capistrano/Capfile", __FILE__)
14
-
15
- mkdir_p deploy_dir
16
-
17
- template = File.read(deploy_rb)
18
- file = config_dir.join('deploy.rb')
19
- File.open(file, 'w+') do |f|
20
- f.write(ERB.new(template).result(binding))
21
- puts I18n.t(:written_file, scope: :capistrano, file: file)
22
- end
23
-
24
- template = File.read(stage_rb)
25
- envs.split(',').each do |stage|
26
- file = deploy_dir.join("#{stage}.rb")
27
- File.open(file, 'w+') do |f|
28
- f.write(ERB.new(template).result(binding))
29
- puts I18n.t(:written_file, scope: :capistrano, file: file)
30
- end
31
- end
32
-
33
- mkdir_p tasks_dir
34
-
35
- FileUtils.cp(capfile, 'Capfile')
36
-
37
-
38
- puts I18n.t :capified, scope: :capistrano
39
- end