gritano 0.8.0 → 0.8.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.8.1
data/gritano.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gritano"
8
- s.version = "0.8.0"
8
+ s.version = "0.8.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Igor Bonadio"]
12
- s.date = "2013-03-13"
12
+ s.date = "2013-03-16"
13
13
  s.description = "Gritano is the simplest way to configure your git server over ssh. You can create repositories and manage user access."
14
14
  s.email = "igorbonadio@gmail.com"
15
15
  s.executables = ["gritano", "gritano-pub-key", "gritano-remote"]
@@ -39,21 +39,16 @@ module Gritano
39
39
  FileUtils.rm_rf(File.join('/tmp', 'gritano-openssh')) if Dir.exist?(File.join('/tmp', 'gritano-openssh'))
40
40
 
41
41
  puts "[git] Cloning"
42
- ok = system "git clone git://github.com/igorbonadio/gritano-openssh.git /tmp/gritano-openssh"
43
- if ok
42
+ if system "git clone git://github.com/igorbonadio/gritano-openssh.git /tmp/gritano-openssh"
44
43
  puts "[build] Configuring"
45
- ok = system "cd /tmp/gritano-openssh/src && ./configure"
46
- if ok
44
+ if system "cd /tmp/gritano-openssh/src && ./configure"
47
45
  puts "[build] Compiling"
48
- ok = system "cd /tmp/gritano-openssh/src && make"
49
- if ok
46
+ if system "cd /tmp/gritano-openssh/src && make"
50
47
  puts "[build] Installing"
51
- ok = system "cd /tmp/gritano-openssh/src && make install"
52
- if ok
53
- gritano_pub_key = File.join(gritano_dir, 'gritano-pub-key')
54
- File.open(File.join("/usr", "local", "etc", "sshd_config"), "a") do |f|
55
- f.write("\n\nAuthorizedKeysScript #{gritano_pub_key}\n\n")
56
- end
48
+ if system "cd /tmp/gritano-openssh/src && make install"
49
+ sshd_config = SshdConfig::SshdConfig.read(File.join("/usr", "local", "etc", "sshd_config"))
50
+ sshd_config.AuthorizedKeysScript = File.join(gritano_dir, 'gritano-pub-key')
51
+ sshd_config.save
57
52
  return "Installed"
58
53
  end
59
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gritano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-13 00:00:00.000000000 Z
12
+ date: 2013-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -457,7 +457,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
457
457
  version: '0'
458
458
  segments:
459
459
  - 0
460
- hash: 3600097453777822869
460
+ hash: 3254913553267021195
461
461
  required_rubygems_version: !ruby/object:Gem::Requirement
462
462
  none: false
463
463
  requirements: