ona 0.1.7 → 0.1.8
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 +14 -9
- data/lib/ona_server.rb +4 -0
- data/ona.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/lib/ona_cli.rb
CHANGED
@@ -17,32 +17,37 @@ module Ona
|
|
17
17
|
help # show this help
|
18
18
|
|
19
19
|
ls # short list for available servers
|
20
|
-
show 1 # detailed info for a specific server
|
21
|
-
show 1 2 3 # detailed info for servers 1 3 and 3
|
22
20
|
|
21
|
+
show 1 # detailed info for a specific server
|
23
22
|
deploy 1 # Deploy a specific server
|
24
|
-
deploy 1 2 3 # Deploy servers with ids: 1 2 and 3
|
25
23
|
|
26
24
|
setup 1 # Upload ssh-keys and bootstrap server
|
27
|
-
setup 1 2 3 # Setup servers with ids: 1 2 and 3
|
28
25
|
|
29
26
|
ssh-root 1 # Open a ssh session as root to a remote server
|
30
27
|
# (new window)
|
31
28
|
|
32
|
-
ssh-root 1 2 3 # Open three ssh sessions to 1 2 and 3
|
33
|
-
# (new window)
|
34
|
-
|
35
29
|
ssh-app 1 # Open a ssh session as deploy to a remote server
|
36
30
|
# (new window)
|
37
31
|
|
38
|
-
|
39
|
-
# (new window)
|
32
|
+
http 1 # Open the servers in default browser.
|
40
33
|
|
41
34
|
quit # termintes the ona shell.
|
42
35
|
|
36
|
+
--
|
37
|
+
|
38
|
+
Note: 1 is a server id, you can use many ids!
|
39
|
+
|
40
|
+
show 1 2 3 # will display info for three servers.
|
41
|
+
|
43
42
|
"
|
44
43
|
end
|
45
44
|
|
45
|
+
def http string
|
46
|
+
selected_servers(string).each do |server|
|
47
|
+
puts server.to_http
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
46
51
|
def show string
|
47
52
|
selected_servers(string).each do |server|
|
48
53
|
puts server.to_s
|
data/lib/ona_server.rb
CHANGED
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: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kazuyoshi tlacaelel
|