ona 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/ona_cli.rb +16 -14
  3. data/ona.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.16
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
- help # show this help
19
- http 1 # Open the servers in default browser.
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
- ls # short list for available servers
22
- quit # termintes the ona shell.
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 # 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
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 # will display info for three servers.
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ona}
8
- s.version = "0.1.16"
8
+ s.version = "0.1.17"
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: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 16
10
- version: 0.1.16
9
+ - 17
10
+ version: 0.1.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - kazuyoshi tlacaelel