ona 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +4 -0
- data/VERSION +1 -1
- data/lib/ona_cli.rb +14 -16
- data/lib/ona_server.rb +4 -2
- data/ona.gemspec +3 -2
- metadata +5 -4
data/Gemfile
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.21
|
data/lib/ona_cli.rb
CHANGED
@@ -75,9 +75,7 @@ module Ona
|
|
75
75
|
|
76
76
|
def deploy string
|
77
77
|
selected_servers(string).each do |server|
|
78
|
-
|
79
|
-
puts 'Type [yes] to continue. or anything else to skip.'
|
80
|
-
print 'What to do? :'
|
78
|
+
prompt_for_continuation
|
81
79
|
system server.say_sure_to_deploy
|
82
80
|
line = gets
|
83
81
|
next unless line.chomp == 'yes'
|
@@ -87,9 +85,15 @@ module Ona
|
|
87
85
|
end
|
88
86
|
|
89
87
|
def setup string
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
key string
|
89
|
+
selected_servers(string).each do |server|
|
90
|
+
prompt_for_continuation
|
91
|
+
system server.say_sure_to_setup
|
92
|
+
line = gets
|
93
|
+
next unless line.chomp == 'yes'
|
94
|
+
system server.bootstrap
|
95
|
+
system server.say_finished_setup
|
96
|
+
end
|
93
97
|
end
|
94
98
|
|
95
99
|
def keys
|
@@ -100,16 +104,10 @@ module Ona
|
|
100
104
|
|
101
105
|
protected
|
102
106
|
|
103
|
-
def
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
end
|
108
|
-
|
109
|
-
def install_ssh_keys string
|
110
|
-
selected_servers(string).each do |server|
|
111
|
-
system server.setup_ssh
|
112
|
-
end
|
107
|
+
def prompt_for_continuation server
|
108
|
+
puts server.to_s
|
109
|
+
puts 'Type [yes] to continue. or anything else to skip.'
|
110
|
+
print 'What to do? >'
|
113
111
|
end
|
114
112
|
|
115
113
|
end
|
data/lib/ona_server.rb
CHANGED
@@ -12,8 +12,6 @@ module Ona
|
|
12
12
|
def setup_ssh
|
13
13
|
puts 'Setting up key for root'
|
14
14
|
"rake upload_ssh_key server=root@#{ip} pass=#{pass} key=#{local_key}"
|
15
|
-
puts 'Setting up key for deploy'
|
16
|
-
"rake upload_ssh_key server=deploy@#{ip} pass=#{pass} key=#{local_key}"
|
17
15
|
end
|
18
16
|
|
19
17
|
def say_deployed
|
@@ -24,6 +22,10 @@ module Ona
|
|
24
22
|
"say #{desc} setup terminated"
|
25
23
|
end
|
26
24
|
|
25
|
+
def say_sure_to_setup
|
26
|
+
"say 'Are you sure to setup #{desc}'"
|
27
|
+
end
|
28
|
+
|
27
29
|
def say_sure_to_deploy
|
28
30
|
"say 'Are you sure to deploy #{desc}'"
|
29
31
|
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.21"
|
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-
|
12
|
+
s.date = %q{2010-08-19}
|
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}
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.files = [
|
22
22
|
".document",
|
23
23
|
".gitignore",
|
24
|
+
"Gemfile",
|
24
25
|
"LICENSE",
|
25
26
|
"README.rdoc",
|
26
27
|
"Rakefile",
|
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: 49
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 21
|
10
|
+
version: 0.1.21
|
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-
|
18
|
+
date: 2010-08-19 00:00:00 -05:00
|
19
19
|
default_executable: ona
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -44,6 +44,7 @@ extra_rdoc_files:
|
|
44
44
|
files:
|
45
45
|
- .document
|
46
46
|
- .gitignore
|
47
|
+
- Gemfile
|
47
48
|
- LICENSE
|
48
49
|
- README.rdoc
|
49
50
|
- Rakefile
|