escualo 0.2.3 → 0.2.4

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: 942bcd191ae6f6c94690fdfbea8aa234f52407cd
4
- data.tar.gz: 9b52f772c5ed945116cd0ddf2a641a5c774ae2f6
3
+ metadata.gz: a2dc05cce841a7743d307337f82e1e96b867e53b
4
+ data.tar.gz: 3aac7a709784c034b3bf276de8e40c203c267374
5
5
  SHA512:
6
- metadata.gz: 0fae5d71108008dba76775a4f77b2d0713f69106dbcaa9e7e53a86a32608327a788caf6f1d9070d1fd473ae463b63005c1d563478942c4bbdb8ea0a8ec1467bd
7
- data.tar.gz: e3d7f3fa51a7c0d2bfcf8aaf2a7b1ba839f8ada89c47c575723274ceab3eb84846bada8889db9cfc32013272d3160eca38307e9831d430408e28ed3209c1ab10
6
+ metadata.gz: 20300c996d95c6a01444086e0dd23facb9be3c69b3de12cadbf33818e444641ea74a2c8f1e8ce1acb4ce1df2e36936dc93dfcfdeb51feab553b7efc08a14a51f
7
+ data.tar.gz: 7ce4ba687c07e72557cd0d309a4a25e89e092e73117d8cb76686d203d155771c2d103d5fc663200204f023cf63123fc00e8483ee4ecd26693bea5439fceead07
@@ -36,6 +36,10 @@ command 'bootstrap' do |c|
36
36
  step 'Installing gems...' do
37
37
  Escualo::Bootstrap.install_gems ssh
38
38
  end
39
+
40
+ step 'Setup artifact directories...' do
41
+ Escualo::Artifact.setup ssh
42
+ end
39
43
  end
40
44
  end
41
45
  end
@@ -1,7 +1,7 @@
1
1
  def run_commands_for!(script, extra='', ssh)
2
2
  script.map { |it| "escualo #{it} #{extra}" }.each do |command|
3
- puts command
4
- puts ssh.exec! command
3
+ puts "Running `#{command}`"
4
+ puts ssh.shell.exec! command
5
5
  end
6
6
  end
7
7
 
@@ -1,5 +1,12 @@
1
1
  module Escualo
2
2
  module Artifact
3
+ def self.setup(ssh)
4
+ ssh.exec! %q{
5
+ mkdir -p/var/repo/ && \
6
+ mkdir -p /var/scripts/
7
+ }
8
+ end
9
+
3
10
  def self.destroy(ssh, name)
4
11
  raise 'name must not be blank' if name.blank?
5
12
  raise 'name must not contains wildcards' if name.include?('*')
@@ -42,7 +42,7 @@ module Escualo
42
42
  end
43
43
 
44
44
  def self.locale_variables
45
- %w{LANG LC_ALL LC_NAME LC_PAPER LC_ADDRESS LC_NUMERIC LC_MONETARY LC_TELEPHONE LC_MEASUREMENT}.map do |it|
45
+ %w{LANG LC_ALL LC_NAME LC_IDENTIFICATION LC_PAPER LC_ADDRESS LC_TIME LC_NUMERIC LC_MONETARY LC_TELEPHONE LC_MEASUREMENT}.map do |it|
46
46
  [it, 'en_US.UTF-8']
47
47
  end.to_h
48
48
  end
@@ -4,8 +4,7 @@ module Escualo::Plugin
4
4
  pg_hba_conf = '/etc/postgresql/9.3/main/pg_hba.conf'
5
5
 
6
6
  ssh.shell.perform! %Q{
7
- apt-get install postgresql libpq-dev -y && \
8
- \
7
+ apt-get install postgresql libpq-dev -y &&
9
8
  echo 'local all postgres peer' > #{pg_hba_conf} && \
10
9
  echo 'local all postgres peer' >> #{pg_hba_conf} && \
11
10
  echo 'local all all password' >> #{pg_hba_conf} && \
@@ -14,7 +13,7 @@ module Escualo::Plugin
14
13
  end
15
14
 
16
15
  def check(ssh)
17
- ssh.shell.exec!('psql --version').include? 'psql (PostgreSQL) 9.3'
16
+ ssh.shell.exec!('psql').include? 'FATAL: role "root" does not exist'
18
17
  end
19
18
  end
20
19
  end
@@ -1,4 +1,4 @@
1
1
  module Escualo
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  BASE_VERSION = '3.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escualo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-07 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander