ona 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/lib/ona_cli.rb +14 -9
  3. data/lib/ona_server.rb +4 -0
  4. data/ona.gemspec +1 -1
  5. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
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
- ssh-app 1 2 3 # Open three ssh sessions to 1 2 and 3
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
@@ -38,6 +38,10 @@ module Ona
38
38
  EOF"
39
39
  end
40
40
 
41
+ def to_http
42
+ "open http://#{ip}"
43
+ end
44
+
41
45
  def to_short_s
42
46
  "#{id}".ljust(5) + "#{desc}"
43
47
  end
data/ona.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ona}
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
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"]
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: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - kazuyoshi tlacaelel