ona 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ona_cli.rb +16 -14
- data/ona.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.17
|
data/lib/ona_cli.rb
CHANGED
@@ -15,21 +15,23 @@ module Ona
|
|
15
15
|
Ona -- Deployment simplified.
|
16
16
|
|
17
17
|
deploy 1 # Deploy a specific server
|
18
|
-
|
19
|
-
|
18
|
+
exit # Same as *quit*
|
19
|
+
help # Show this help
|
20
|
+
http 1 # Open the server in default browser.
|
20
21
|
key 1 # Uploads my public ssh-key to remote server (root)
|
21
|
-
|
22
|
-
|
22
|
+
keys # Uploads my public ssh-key to all servers (root)
|
23
|
+
ls # Short list for available servers
|
24
|
+
quit # Termintes the ona shell.
|
23
25
|
setup 1 # Upload ssh-keys and bootstrap server
|
24
|
-
show 1 #
|
25
|
-
ssh 1 # Open a ssh session as deploy
|
26
|
-
ssh# 1 # Open a ssh session as root to a remote server
|
26
|
+
show 1 # Detailed info for a specific server
|
27
|
+
ssh 1 # Open a ssh session as *deploy* on remote server (new window)
|
28
|
+
ssh# 1 # Open a ssh session as *root* to a remote server (new window)
|
27
29
|
|
28
30
|
--
|
29
31
|
|
30
32
|
Note: 1 is a server id, you can use many ids!
|
31
33
|
|
32
|
-
show 1 2 3 #
|
34
|
+
show 1 2 3 # Will display info for three servers.
|
33
35
|
|
34
36
|
"
|
35
37
|
end
|
@@ -90,6 +92,12 @@ module Ona
|
|
90
92
|
system server.say_finished_setup
|
91
93
|
end
|
92
94
|
|
95
|
+
def keys
|
96
|
+
@stack.to_a.each do |server|
|
97
|
+
system server.setup_ssh
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
93
101
|
protected
|
94
102
|
|
95
103
|
def bootstrap string
|
@@ -98,12 +106,6 @@ module Ona
|
|
98
106
|
end
|
99
107
|
end
|
100
108
|
|
101
|
-
def install_ssh_keys string
|
102
|
-
selected_servers(string).each do |server|
|
103
|
-
system server.setup_ssh
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
109
|
end
|
108
110
|
|
109
111
|
end
|
data/ona.gemspec
CHANGED
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: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 17
|
10
|
+
version: 0.1.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kazuyoshi tlacaelel
|