escualo 0.2.2 → 0.2.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 +4 -4
- data/bin/escualo +0 -2
- data/lib/commands/globals.rb +3 -0
- data/lib/commands/script.rb +3 -3
- data/lib/escualo/artifact.rb +3 -2
- data/lib/escualo/version.rb +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: 942bcd191ae6f6c94690fdfbea8aa234f52407cd
|
4
|
+
data.tar.gz: 9b52f772c5ed945116cd0ddf2a641a5c774ae2f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fae5d71108008dba76775a4f77b2d0713f69106dbcaa9e7e53a86a32608327a788caf6f1d9070d1fd473ae463b63005c1d563478942c4bbdb8ea0a8ec1467bd
|
7
|
+
data.tar.gz: e3d7f3fa51a7c0d2bfcf8aaf2a7b1ba839f8ada89c47c575723274ceab3eb84846bada8889db9cfc32013272d3160eca38307e9831d430408e28ed3209c1ab10
|
data/bin/escualo
CHANGED
data/lib/commands/globals.rb
CHANGED
@@ -14,16 +14,19 @@ global_option '-u', '--username USERNAME', String, 'The username to connect. Def
|
|
14
14
|
end
|
15
15
|
|
16
16
|
global_option '--password PASSWORD', String, 'An optional remote password' do |password|
|
17
|
+
$password = password
|
17
18
|
$ssh_options[:password] = password
|
18
19
|
$ssh_remote = true
|
19
20
|
end
|
20
21
|
|
21
22
|
global_option '-i', '--ssh-key PRIVATE_KEY', String, 'An optional private key' do |private_key|
|
23
|
+
$ssh_key = private_key
|
22
24
|
$ssh_options[:keys] = [private_key]
|
23
25
|
$ssh_remote = true
|
24
26
|
end
|
25
27
|
|
26
28
|
global_option '--ssh-port PORT', String, 'The ssh port to connect. Defaults to 22' do |port|
|
29
|
+
$ssh_port = port
|
27
30
|
$ssh_options[:port] = port
|
28
31
|
$ssh_remote = true
|
29
32
|
end
|
data/lib/commands/script.rb
CHANGED
@@ -8,9 +8,9 @@ end
|
|
8
8
|
def ssh_options
|
9
9
|
[$hostname.try { |it| "--hostname #{it}" },
|
10
10
|
$username.try { |it| "--username #{it}" },
|
11
|
-
$password.try { |it| "
|
12
|
-
$
|
13
|
-
$
|
11
|
+
$password.try { |it| "--password #{it}" },
|
12
|
+
$ssh_key.try { |it| "--ssh-key #{it}" },
|
13
|
+
$ssh_port.try { |it| "--ssh-port #{it}" }
|
14
14
|
].compact.join(' ')
|
15
15
|
end
|
16
16
|
|
data/lib/escualo/artifact.rb
CHANGED
@@ -41,8 +41,9 @@ module Escualo
|
|
41
41
|
cd #{name}.git && \
|
42
42
|
git init --bare
|
43
43
|
}
|
44
|
-
|
45
|
-
ssh.
|
44
|
+
hook_file = "/var/repo/#{name}.git/hooks/post-receive"
|
45
|
+
ssh.upload_template! hook_file, 'post-receive.sh', options
|
46
|
+
ssh.exec! "chmod +x #{hook_file}"
|
46
47
|
end
|
47
48
|
|
48
49
|
def self.configure_monit(ssh, name)
|
data/lib/escualo/version.rb
CHANGED
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
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: mumukit-core
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '0.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '0.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|