gritano 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/TODO +2 -8
- data/VERSION +1 -1
- data/features/data/local_commands/plugin_add_ssh.txt +1 -0
- data/features/data/local_commands/plugin_add_sshs.txt +1 -0
- data/features/data/local_commands/plugin_rm_ssh.txt +1 -0
- data/features/data/local_commands/plugin_rm_sshs.txt +1 -0
- data/features/local.feature +4 -0
- data/features/step_definitions/local_step.rb +2 -0
- data/gritano.gemspec +6 -2
- data/lib/gritano/plugin/ssh.rb +22 -11
- metadata +7 -3
data/README.rdoc
CHANGED
data/TODO
CHANGED
@@ -1,11 +1,5 @@
|
|
1
|
-
v0.7.
|
2
|
-
-
|
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
|
+
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
|
data/features/local.feature
CHANGED
@@ -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
|
|
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.7.
|
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-
|
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",
|
data/lib/gritano/plugin/ssh.rb
CHANGED
@@ -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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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
|
-
|
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.
|
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-
|
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:
|
444
|
+
hash: 3108419969752387709
|
441
445
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
442
446
|
none: false
|
443
447
|
requirements:
|