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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 747639e8ec926a1c4bbf9abc2811a38668716595
4
- data.tar.gz: 481b31181d1341593b77c40202da33d7b7d4bbb5
3
+ metadata.gz: 942bcd191ae6f6c94690fdfbea8aa234f52407cd
4
+ data.tar.gz: 9b52f772c5ed945116cd0ddf2a641a5c774ae2f6
5
5
  SHA512:
6
- metadata.gz: dfffe1a982a76c7efb7ac80ba6d5d48aa17dd4f6f488fd78f52114eeabf01816bd5545d7d5e74c2213f1c3e69b5c127e8cfb754b361b187ffbb7ebcb9c1cd955
7
- data.tar.gz: 0f0cd10a68520e1f7b559941b9d26dd7dfe3585e42b6c77ba3df6e73e1283f5ac4513a379117665b384a2348ee529b7a89c47b3ff8cedb8c08b08adc692022fd
6
+ metadata.gz: 0fae5d71108008dba76775a4f77b2d0713f69106dbcaa9e7e53a86a32608327a788caf6f1d9070d1fd473ae463b63005c1d563478942c4bbdb8ea0a8ec1467bd
7
+ data.tar.gz: e3d7f3fa51a7c0d2bfcf8aaf2a7b1ba839f8ada89c47c575723274ceab3eb84846bada8889db9cfc32013272d3160eca38307e9831d430408e28ed3209c1ab10
data/bin/escualo CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rubygems'
4
- require 'bundler/setup'
5
3
  require 'commander/import'
6
4
 
7
5
  require_relative '../lib/escualo'
@@ -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
@@ -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| "--$password #{it}" },
12
- $ssh_options[:keys].try { |it| "--ssh-key #{it}" },
13
- $ssh_options[:port].try { |it| "--ssh-port #{it}" }
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
 
@@ -41,8 +41,9 @@ module Escualo
41
41
  cd #{name}.git && \
42
42
  git init --bare
43
43
  }
44
- ssh.upload_template! "/var/repo/#{name}.git/hooks/post-receive", 'post-receive.sh', options
45
- ssh.exec! 'chmod +x post-receive'
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)
@@ -1,4 +1,4 @@
1
1
  module Escualo
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
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.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