escualo 0.2.4 → 0.2.5

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: a2dc05cce841a7743d307337f82e1e96b867e53b
4
- data.tar.gz: 3aac7a709784c034b3bf276de8e40c203c267374
3
+ metadata.gz: 1920e5a93953d72791592fcdddc60524c037384d
4
+ data.tar.gz: 61741d127b8bcbf8c0af9885c255ba1629fca4da
5
5
  SHA512:
6
- metadata.gz: 20300c996d95c6a01444086e0dd23facb9be3c69b3de12cadbf33818e444641ea74a2c8f1e8ce1acb4ce1df2e36936dc93dfcfdeb51feab553b7efc08a14a51f
7
- data.tar.gz: 7ce4ba687c07e72557cd0d309a4a25e89e092e73117d8cb76686d203d155771c2d103d5fc663200204f023cf63123fc00e8483ee4ecd26693bea5439fceead07
6
+ metadata.gz: ef23cd97b873bb69fcb09d32ed0ae2b6f1775df637eb3171e84c5f2e21b12ec58b71d8375f79b0a4fba40400f2f04c0e095116a107cd15bdf5c050e10465ebbd
7
+ data.tar.gz: 798e17ff92292ff69b5307a15c523a8bf9dbd04f464748ca17bc574453db1880d6e532038e2304c4f4499137b427b57d6ebe24a1484759d2df45a200ccb8b89c
@@ -22,7 +22,7 @@ command 'bootstrap' do |c|
22
22
  end
23
23
 
24
24
  step 'Installing base software...' do
25
- Escualo::Bootstrap.install_base ssh
25
+ Escualo::Bootstrap.install_base ssh, options
26
26
  end
27
27
 
28
28
  step 'Installing and configuring monit...' do
@@ -34,7 +34,7 @@ command 'bootstrap' do |c|
34
34
  end if options.swap
35
35
 
36
36
  step 'Installing gems...' do
37
- Escualo::Bootstrap.install_gems ssh
37
+ Escualo::Bootstrap.install_gems ssh, options
38
38
  end
39
39
 
40
40
  step 'Setup artifact directories...' do
@@ -1,7 +1,7 @@
1
1
  module Escualo
2
2
  module Bootstrap
3
- def self.install_base(ssh)
4
- ssh.exec! %Q{ \
3
+ def self.install_base(ssh, options)
4
+ ssh.shell.perform! %q{ \
5
5
  apt-get install software-properties-common -y && \
6
6
  apt-add-repository ppa:brightbox/ruby-ng && \
7
7
  apt-get update && \
@@ -18,7 +18,8 @@ module Escualo
18
18
  ruby2.0-dev \
19
19
  zlib1g \
20
20
  zlib1g-dev \
21
- libreadline-dev }
21
+ libreadline-dev
22
+ }, options
22
23
  end
23
24
 
24
25
  def self.enable_swap(ssh)
@@ -47,9 +48,8 @@ module Escualo
47
48
  monit reload}
48
49
  end
49
50
 
50
- def self.install_gems(ssh)
51
- ssh.exec! 'gem install bundler'
52
- ssh.exec! 'gem install escualo'
51
+ def self.install_gems(ssh, options)
52
+ ssh.perform! 'gem install bundler && gem install escualo', options
53
53
  end
54
54
  end
55
55
  end
@@ -13,7 +13,7 @@ module Escualo::Plugin
13
13
  end
14
14
 
15
15
  def check(ssh)
16
- ssh.shell.exec!('psql').include? 'FATAL: role "root" does not exist'
16
+ ssh.shell.exec!('psql --version').include? 'psql (PostgreSQL) 9.3'
17
17
  end
18
18
  end
19
19
  end
@@ -1,4 +1,4 @@
1
1
  module Escualo
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  BASE_VERSION = '3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escualo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli