ona 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/ona +4 -3
- data/lib/ona_cli.rb +19 -15
- data/lib/ona_server.rb +4 -0
- data/ona.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.11
|
data/bin/ona
CHANGED
@@ -14,7 +14,7 @@ cli = Ona::Cli.new(stack)
|
|
14
14
|
|
15
15
|
loop do
|
16
16
|
line = Readline.readline('Ona> ', true)
|
17
|
-
if line == 'quit'
|
17
|
+
if (line == 'quit') || (line == 'exit')
|
18
18
|
puts 'bye.'
|
19
19
|
break
|
20
20
|
end
|
@@ -23,7 +23,8 @@ loop do
|
|
23
23
|
cli.show line if line =~ /show/
|
24
24
|
cli.setup line if line =~ /setup/
|
25
25
|
cli.deploy line if line =~ /deploy/
|
26
|
-
cli.ssh_root line if line =~ /ssh
|
27
|
-
cli.ssh_deploy line if line =~ /ssh
|
26
|
+
cli.ssh_root line if line =~ /ssh#/
|
27
|
+
cli.ssh_deploy line if line =~ /ssh/
|
28
28
|
cli.http line if line =~ /http/
|
29
|
+
cli.key line if line =~ /key/
|
29
30
|
end
|
data/lib/ona_cli.rb
CHANGED
@@ -14,24 +14,16 @@ module Ona
|
|
14
14
|
puts "
|
15
15
|
Ona -- Deployment simplified.
|
16
16
|
|
17
|
-
help # show this help
|
18
|
-
|
19
|
-
ls # short list for available servers
|
20
|
-
|
21
|
-
show 1 # detailed info for a specific server
|
22
17
|
deploy 1 # Deploy a specific server
|
23
|
-
|
24
|
-
setup 1 # Upload ssh-keys and bootstrap server
|
25
|
-
|
26
|
-
ssh-root 1 # Open a ssh session as root to a remote server
|
27
|
-
# (new window)
|
28
|
-
|
29
|
-
ssh-app 1 # Open a ssh session as deploy to a remote server
|
30
|
-
# (new window)
|
31
|
-
|
18
|
+
help # show this help
|
32
19
|
http 1 # Open the servers in default browser.
|
33
|
-
|
20
|
+
key 1 # Uploads my public ssh-key to remote server (root)
|
21
|
+
ls # short list for available servers
|
34
22
|
quit # termintes the ona shell.
|
23
|
+
setup 1 # Upload ssh-keys and bootstrap server
|
24
|
+
show 1 # detailed info for a specific server
|
25
|
+
ssh 1 # Open a ssh session as deploy to a remote server
|
26
|
+
ssh# 1 # Open a ssh session as root to a remote server
|
35
27
|
|
36
28
|
--
|
37
29
|
|
@@ -48,6 +40,13 @@ module Ona
|
|
48
40
|
end
|
49
41
|
end
|
50
42
|
|
43
|
+
def key string
|
44
|
+
selected_servers(string).each do |server|
|
45
|
+
system server.setup_ssh
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
|
51
50
|
def show string
|
52
51
|
selected_servers(string).each do |server|
|
53
52
|
puts server.to_s
|
@@ -74,6 +73,11 @@ module Ona
|
|
74
73
|
|
75
74
|
def deploy string
|
76
75
|
selected_servers(string).each do |server|
|
76
|
+
puts server.to_s
|
77
|
+
system server.say_sure_to_deploy
|
78
|
+
puts 'Type [yes] to continue. or anything else to skip.'
|
79
|
+
print 'What to do? :'
|
80
|
+
next unless gets == 'yes'
|
77
81
|
system server.deploy
|
78
82
|
system server.say_deployed
|
79
83
|
end
|
data/lib/ona_server.rb
CHANGED
data/ona.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ona}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["kazuyoshi tlacaelel"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-29}
|
13
13
|
s.default_executable = %q{ona}
|
14
14
|
s.description = %q{Simple shell for deployment.}
|
15
15
|
s.email = %q{kazu.dev@gmail.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ona
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 11
|
10
|
+
version: 0.1.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kazuyoshi tlacaelel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-29 00:00:00 -05:00
|
19
19
|
default_executable: ona
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|