mina-stack 0.0.21 → 0.0.22
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/lib/mina-stack/base.rb +2 -1
- data/lib/mina-stack/version.rb +1 -1
- data/lib/recipes/inspeqtor.rb +1 -1
- data/lib/recipes/node.rb +1 -2
- data/lib/recipes/puma.rb +2 -2
- data/lib/recipes/sidekiq.rb +2 -2
- data/mina-stack.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9add0353e330d4a8b4ddc5fb823e2294d6fec56
|
4
|
+
data.tar.gz: 2724d9459b4cb3bd9d4cbbe854b993ae19891d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50b9d465e93cde7a7152845368a7845b98358ca63f28aefa57712f7cd2d843d0d0a00f7cf7bfc75fb362f6c0a196a83b8e596bcfd9f230b54f9184bbedd3f0db
|
7
|
+
data.tar.gz: e89113de2df92f7f84434ce7b2afaddde907cdf94b9480a14597101cabe304ba9eb072469429b7d3610ce537f7d0f07912185eb63a04d582fbf34cb64247ec4c
|
data/lib/mina-stack/base.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'erb'
|
2
|
+
require 'shellwords'
|
2
3
|
|
3
4
|
def template(from, to=nil)
|
4
5
|
queue %{echo "-----> Put #{from} file to #{to}"}
|
@@ -27,4 +28,4 @@ end
|
|
27
28
|
task :sudo do
|
28
29
|
set :sudo, true
|
29
30
|
set :term_mode, :system # :pretty doesn't seem to work with sudo well
|
30
|
-
end
|
31
|
+
end
|
data/lib/mina-stack/version.rb
CHANGED
data/lib/recipes/inspeqtor.rb
CHANGED
@@ -7,8 +7,8 @@ namespace :inspeqtor do
|
|
7
7
|
[:"start deploy", :"finish deploy", :status].each do |command|
|
8
8
|
desc "Inspeqtor #{command}"
|
9
9
|
task command do
|
10
|
-
queue "inspeqtorctl #{command}"
|
11
10
|
queue %[echo "-----> Inspeqtor #{command}."]
|
11
|
+
queue "inspeqtorctl #{command}"
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/lib/recipes/node.rb
CHANGED
@@ -4,8 +4,7 @@ namespace :node do
|
|
4
4
|
invoke :sudo
|
5
5
|
queue "sudo apt-get -y update"
|
6
6
|
queue "sudo apt-get -y install software-properties-common python-software-properties python g++ make"
|
7
|
-
queue "
|
8
|
-
queue "sudo apt-get -y update"
|
7
|
+
queue "curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -"
|
9
8
|
queue "sudo apt-get -y install nodejs"
|
10
9
|
end
|
11
10
|
task(:setup) { }
|
data/lib/recipes/puma.rb
CHANGED
@@ -17,15 +17,15 @@ namespace :puma do
|
|
17
17
|
%w[start stop restart].each do |command|
|
18
18
|
desc "#{command.capitalize} puma"
|
19
19
|
task command do
|
20
|
-
queue "sudo #{command} #{puma_name}"
|
21
20
|
queue %[echo "-----> #{command.capitalize} puma."]
|
21
|
+
queue "sudo #{command} #{puma_name}"
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
25
|
desc "Phased-restart puma"
|
26
26
|
task :'phased-restart' do
|
27
|
-
queue "sudo reload #{puma_name}"
|
28
27
|
queue %[echo "-----> Phased-restart puma."]
|
28
|
+
queue "sudo reload #{puma_name}"
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
data/lib/recipes/sidekiq.rb
CHANGED
@@ -17,16 +17,16 @@ namespace :sidekiq do
|
|
17
17
|
|
18
18
|
desc "Quiet sidekiq (stop accepting new work)"
|
19
19
|
task :quiet => :environment do
|
20
|
-
queue "sudo reload #{sidekiq_name}"
|
21
20
|
queue %[echo "-----> Quiet sidekiq (stop accepting new work)."]
|
21
|
+
queue "sudo reload #{sidekiq_name}"
|
22
22
|
end
|
23
23
|
|
24
24
|
|
25
25
|
%w[start stop restart].each do |command|
|
26
26
|
desc "#{command.capitalize} sidekiq"
|
27
27
|
task command => :environment do
|
28
|
-
queue "sudo #{command} #{sidekiq_name}"
|
29
28
|
queue %[echo "-----> #{command.capitalize} sidekiq."]
|
29
|
+
queue "sudo #{command} #{sidekiq_name}"
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/mina-stack.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "rake"
|
22
|
-
spec.add_dependency "mina", '<= 0.3.
|
22
|
+
spec.add_dependency "mina", '<= 0.3.1'
|
23
23
|
spec.add_dependency "highline"
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Davydov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "<="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.
|
33
|
+
version: 0.3.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "<="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.3.
|
40
|
+
version: 0.3.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: highline
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
150
|
+
rubygems_version: 2.5.1
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Mina + stack
|