ona 0.1.22 → 0.1.23
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 +12 -0
- data/lib/ona_server.rb +4 -1
- data/ona.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.23
|
data/lib/ona_cli.rb
CHANGED
@@ -22,6 +22,7 @@ module Ona
|
|
22
22
|
keys # Uploads my public ssh-key to all servers (root)
|
23
23
|
ls # Short list for available servers
|
24
24
|
quit # Termintes the ona shell.
|
25
|
+
rake # Shows rake tasks.
|
25
26
|
setup 1 # Upload ssh-keys and bootstrap server
|
26
27
|
show 1 # Detailed info for a specific server
|
27
28
|
ssh 1 # Open a ssh session as *deploy* on remote server (new window)
|
@@ -44,6 +45,7 @@ module Ona
|
|
44
45
|
|
45
46
|
def key string
|
46
47
|
selected_servers(string).each do |server|
|
48
|
+
puts 'Setting up key for root'
|
47
49
|
system server.setup_ssh
|
48
50
|
end
|
49
51
|
end
|
@@ -96,8 +98,18 @@ module Ona
|
|
96
98
|
end
|
97
99
|
end
|
98
100
|
|
101
|
+
def rake string
|
102
|
+
selected_servers(string).each do |server|
|
103
|
+
server.to_s
|
104
|
+
server.rake.each do |task|
|
105
|
+
puts task
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
99
110
|
def keys
|
100
111
|
@stack.to_a.each do |server|
|
112
|
+
puts 'Setting up key for root'
|
101
113
|
system server.setup_ssh
|
102
114
|
end
|
103
115
|
end
|
data/lib/ona_server.rb
CHANGED
@@ -10,7 +10,6 @@ module Ona
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def setup_ssh
|
13
|
-
puts 'Setting up key for root'
|
14
13
|
"rake upload_ssh_key server=root@#{ip} pass=#{pass} key=#{local_key}"
|
15
14
|
end
|
16
15
|
|
@@ -68,6 +67,10 @@ EOF"
|
|
68
67
|
"
|
69
68
|
end
|
70
69
|
|
70
|
+
def rake
|
71
|
+
[setup_ssh, bootstrap, deploy]
|
72
|
+
end
|
73
|
+
|
71
74
|
def local_key
|
72
75
|
File.join(ENV['HOME'], '.ssh/id_rsa.pub')
|
73
76
|
end
|
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.23"
|
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-08-
|
12
|
+
s.date = %q{2010-08-21}
|
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: 53
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 23
|
10
|
+
version: 0.1.23
|
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-08-
|
18
|
+
date: 2010-08-21 00:00:00 -05:00
|
19
19
|
default_executable: ona
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|