escualo 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/bootstrap.rb +4 -0
- data/lib/commands/script.rb +2 -2
- data/lib/escualo/artifact.rb +7 -0
- data/lib/escualo/env.rb +1 -1
- data/lib/escualo/plugin/postgre.rb +2 -3
- data/lib/escualo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2dc05cce841a7743d307337f82e1e96b867e53b
|
4
|
+
data.tar.gz: 3aac7a709784c034b3bf276de8e40c203c267374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20300c996d95c6a01444086e0dd23facb9be3c69b3de12cadbf33818e444641ea74a2c8f1e8ce1acb4ce1df2e36936dc93dfcfdeb51feab553b7efc08a14a51f
|
7
|
+
data.tar.gz: 7ce4ba687c07e72557cd0d309a4a25e89e092e73117d8cb76686d203d155771c2d103d5fc663200204f023cf63123fc00e8483ee4ecd26693bea5439fceead07
|
data/lib/commands/bootstrap.rb
CHANGED
data/lib/commands/script.rb
CHANGED
data/lib/escualo/artifact.rb
CHANGED
@@ -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?('*')
|
data/lib/escualo/env.rb
CHANGED
@@ -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
|
16
|
+
ssh.shell.exec!('psql').include? 'FATAL: role "root" does not exist'
|
18
17
|
end
|
19
18
|
end
|
20
19
|
end
|
data/lib/escualo/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|