gritano 0.7.1 → 0.7.2

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.
@@ -1,4 +1,4 @@
1
- = Gritano v0.7.1
1
+ = Gritano v0.7.2
2
2
 
3
3
  Gritano is the simplest way to configure a git server over ssh. You can create repositories and manage user access using this practical tool.
4
4
 
data/TODO CHANGED
@@ -1,11 +1,5 @@
1
- v0.7.2
2
- - Melhorar mensagens ao compilar SSH
3
- - Criar um arquivo de log pra o SSH
4
- - mais spec e features (testes)
5
-
6
- v0.7.3
7
- - tirar os comando do Console::Gritano
8
- - configuracoes via cmd (exec ssh set:port 2222)
1
+ v0.7.4
2
+ - configuracoes via cmd (exec ssh set:port 2222) - OpenSSHConfig
9
3
 
10
4
  v0.8.0 - WebService
11
5
  v0.9.0 - WebSite
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -0,0 +1 @@
1
+ Plugin ssh was added
@@ -0,0 +1 @@
1
+ error: There isn't a plugin called sshs
@@ -0,0 +1 @@
1
+ Plugin ssh was removed
@@ -0,0 +1 @@
1
+ error: There isn't a plugin called sshs
@@ -79,8 +79,12 @@ Feature: Local access
79
79
  | repo:user:list tmp/ruby.git |
80
80
  | plugin:list |
81
81
  | plugin:info ssh |
82
+ | plugin:add ssh |
83
+ | plugin:rm ssh |
82
84
  | plugin:info sshs |
83
85
  | plugin:exec ssh help |
84
86
  | plugin:exec ssh helps |
85
87
  | plugin:exec sshs help |
88
+ | plugin:add sshs |
89
+ | plugin:rm sshs |
86
90
 
@@ -4,6 +4,8 @@ Given /^I start the gritano console$/ do
4
4
  @home_dir = '.'
5
5
  @repo_dir = 'tmp'
6
6
  @console = Gritano::CLI
7
+ Gritano::Ssh.any_instance.stub(:add)
8
+ Gritano::Ssh.any_instance.stub(:rm)
7
9
  end
8
10
 
9
11
  When /^I execute "(.*?)"$/ do |command|
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gritano"
8
- s.version = "0.7.1"
8
+ s.version = "0.7.2"
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-07"
12
+ s.date = "2013-03-12"
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"]
@@ -41,12 +41,16 @@ Gem::Specification.new do |s|
41
41
  "features/data/config_true.yml",
42
42
  "features/data/local_commands/addon_list.txt",
43
43
  "features/data/local_commands/addon_ssh_install.txt",
44
+ "features/data/local_commands/plugin_add_ssh.txt",
45
+ "features/data/local_commands/plugin_add_sshs.txt",
44
46
  "features/data/local_commands/plugin_exec_ssh_help.txt",
45
47
  "features/data/local_commands/plugin_exec_ssh_helps.txt",
46
48
  "features/data/local_commands/plugin_exec_sshs_help.txt",
47
49
  "features/data/local_commands/plugin_info_ssh.txt",
48
50
  "features/data/local_commands/plugin_info_sshs.txt",
49
51
  "features/data/local_commands/plugin_list.txt",
52
+ "features/data/local_commands/plugin_rm_ssh.txt",
53
+ "features/data/local_commands/plugin_rm_sshs.txt",
50
54
  "features/data/local_commands/repo_add_tmp_jeka_git.txt",
51
55
  "features/data/local_commands/repo_add_tmp_p_lang_git.txt",
52
56
  "features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio.txt",
@@ -35,19 +35,30 @@ module Gritano
35
35
  add_command "install", "gritano_path" do |params|
36
36
  gritano_dir, = params
37
37
  FileUtils.rm_rf(File.join('/tmp', 'gritano-openssh')) if Dir.exist?(File.join('/tmp', 'gritano-openssh'))
38
+
38
39
  puts "[git] Cloning"
39
- `git clone git://github.com/igorbonadio/gritano-openssh.git /tmp/gritano-openssh`
40
- puts "[build] Configuring"
41
- `cd /tmp/gritano-openssh/src && ./configure`
42
- puts "[build] Compiling"
43
- `cd /tmp/gritano-openssh/src && make`
44
- puts "[build] Installing"
45
- `cd /tmp/gritano-openssh/src && make install`
46
- gritano_pub_key = File.join(gritano_dir, 'gritano-pub-key')
47
- File.open(File.join("/usr", "local", "etc", "sshd_config"), "a") do |f|
48
- f.write("\n\nAuthorizedKeysScript #{gritano_pub_key}\n\n")
40
+ ok = system "git clone git://github.com/igorbonadio/gritano-openssh.git /tmp/gritano-openssh"
41
+ if ok
42
+ puts "[build] Configuring"
43
+ ok = system "cd /tmp/gritano-openssh/src && ./configure"
44
+ if ok
45
+ puts "[build] Compiling"
46
+ ok = system "cd /tmp/gritano-openssh/src && make"
47
+ if ok
48
+ puts "[build] Installing"
49
+ ok = system "cd /tmp/gritano-openssh/src && make install"
50
+ if ok
51
+ gritano_pub_key = File.join(gritano_dir, 'gritano-pub-key')
52
+ File.open(File.join("/usr", "local", "etc", "sshd_config"), "a") do |f|
53
+ f.write("\n\nAuthorizedKeysScript #{gritano_pub_key}\n\n")
54
+ end
55
+ return "Installed"
56
+ end
57
+ end
58
+ end
49
59
  end
50
- return "Installed"
60
+
61
+ return "error"
51
62
  end
52
63
 
53
64
  add_command "start" do |params|
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.7.1
4
+ version: 0.7.2
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-07 00:00:00.000000000 Z
12
+ date: 2013-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -222,12 +222,16 @@ files:
222
222
  - features/data/config_true.yml
223
223
  - features/data/local_commands/addon_list.txt
224
224
  - features/data/local_commands/addon_ssh_install.txt
225
+ - features/data/local_commands/plugin_add_ssh.txt
226
+ - features/data/local_commands/plugin_add_sshs.txt
225
227
  - features/data/local_commands/plugin_exec_ssh_help.txt
226
228
  - features/data/local_commands/plugin_exec_ssh_helps.txt
227
229
  - features/data/local_commands/plugin_exec_sshs_help.txt
228
230
  - features/data/local_commands/plugin_info_ssh.txt
229
231
  - features/data/local_commands/plugin_info_sshs.txt
230
232
  - features/data/local_commands/plugin_list.txt
233
+ - features/data/local_commands/plugin_rm_ssh.txt
234
+ - features/data/local_commands/plugin_rm_sshs.txt
231
235
  - features/data/local_commands/repo_add_tmp_jeka_git.txt
232
236
  - features/data/local_commands/repo_add_tmp_p_lang_git.txt
233
237
  - features/data/local_commands/repo_add_tmp_p_lang_git_igorbonadio.txt
@@ -437,7 +441,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
437
441
  version: '0'
438
442
  segments:
439
443
  - 0
440
- hash: -844461799902479330
444
+ hash: 3108419969752387709
441
445
  required_rubygems_version: !ruby/object:Gem::Requirement
442
446
  none: false
443
447
  requirements: