ona 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/Gemfile.lock +52 -0
- data/VERSION +1 -1
- data/lib/ona_cli.rb +16 -0
- data/lib/ona_server.rb +4 -0
- data/ona.gemspec +31 -32
- metadata +44 -17
- data/.gitignore +0 -21
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
faraday (0.8.8)
|
7
|
+
multipart-post (~> 1.2.0)
|
8
|
+
git (1.2.6)
|
9
|
+
github_api (0.10.1)
|
10
|
+
addressable
|
11
|
+
faraday (~> 0.8.1)
|
12
|
+
hashie (>= 1.2)
|
13
|
+
multi_json (~> 1.4)
|
14
|
+
nokogiri (~> 1.5.2)
|
15
|
+
oauth2
|
16
|
+
hashie (2.0.5)
|
17
|
+
highline (1.6.20)
|
18
|
+
httpauth (0.2.0)
|
19
|
+
jeweler (1.8.8)
|
20
|
+
builder
|
21
|
+
bundler (~> 1.0)
|
22
|
+
git (>= 1.2.5)
|
23
|
+
github_api (= 0.10.1)
|
24
|
+
highline (>= 1.6.15)
|
25
|
+
nokogiri (= 1.5.10)
|
26
|
+
rake
|
27
|
+
rdoc
|
28
|
+
json (1.8.1)
|
29
|
+
jwt (0.1.8)
|
30
|
+
multi_json (>= 1.5)
|
31
|
+
multi_json (1.8.2)
|
32
|
+
multi_xml (0.5.5)
|
33
|
+
multipart-post (1.2.0)
|
34
|
+
nokogiri (1.5.10)
|
35
|
+
oauth2 (0.9.2)
|
36
|
+
faraday (~> 0.8)
|
37
|
+
httpauth (~> 0.2)
|
38
|
+
jwt (~> 0.1.4)
|
39
|
+
multi_json (~> 1.0)
|
40
|
+
multi_xml (~> 0.5)
|
41
|
+
rack (~> 1.2)
|
42
|
+
rack (1.5.2)
|
43
|
+
rake (0.8.7)
|
44
|
+
rdoc (4.0.1)
|
45
|
+
json (~> 1.4)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
jeweler
|
52
|
+
rake (= 0.8.7)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/ona_cli.rb
CHANGED
@@ -8,6 +8,8 @@ module Ona
|
|
8
8
|
'deploy' => { :method => :deploy, :id_required => true },
|
9
9
|
'ssh#' => { :method => :ssh_root, :id_required => true },
|
10
10
|
'ssh' => { :method => :ssh_deploy,:id_required => true },
|
11
|
+
'go' => { :method => :go_deploy, :id_required => true },
|
12
|
+
'go#' => { :method => :go_root, :id_required => true },
|
11
13
|
'http' => { :method => :http, :id_required => true },
|
12
14
|
'key' => { :method => :key, :id_required => true },
|
13
15
|
'keys' => { :method => :keys, :id_required => true },
|
@@ -66,6 +68,8 @@ module Ona
|
|
66
68
|
|
67
69
|
deploy 1 # Deploy a specific server
|
68
70
|
exit # Same as *quit*
|
71
|
+
go # Go to server without opening a new window.
|
72
|
+
go# # Same as go but do it as root.
|
69
73
|
help # Show this help
|
70
74
|
http 1 # Open the server in default browser.
|
71
75
|
key 1 # Uploads my public ssh-key to remote server (root)
|
@@ -124,6 +128,18 @@ module Ona
|
|
124
128
|
end
|
125
129
|
end
|
126
130
|
|
131
|
+
def go_deploy server_id
|
132
|
+
@stack.find_all(server_id).each do |server|
|
133
|
+
system server.to_go 'deploy'
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
def go_root server_id
|
138
|
+
@stack.find_all(server_id).each do |server|
|
139
|
+
system server.to_go 'deploy'
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
127
143
|
def deploy server_id
|
128
144
|
@stack.find_all(server_id).each do |server|
|
129
145
|
prompt_for_continuation server
|
data/lib/ona_server.rb
CHANGED
data/ona.gemspec
CHANGED
@@ -1,61 +1,60 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.
|
7
|
+
s.name = "ona"
|
8
|
+
s.version = "0.3.0"
|
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 =
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.email = %q{kazu.dev@gmail.com}
|
12
|
+
s.date = "2013-12-14"
|
13
|
+
s.description = "Simple shell for deployment."
|
14
|
+
s.email = "kazu.dev@gmail.com"
|
16
15
|
s.executables = ["ona"]
|
17
16
|
s.extra_rdoc_files = [
|
18
17
|
"LICENSE",
|
19
|
-
|
18
|
+
"README.rdoc"
|
20
19
|
]
|
21
20
|
s.files = [
|
22
21
|
".document",
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
"test/helper.rb",
|
37
|
-
"test/test_ona.rb"
|
38
|
-
]
|
39
|
-
s.homepage = %q{http://github.com/ktlacaelel/ona}
|
40
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
41
|
-
s.require_paths = ["lib"]
|
42
|
-
s.rubygems_version = %q{1.3.7}
|
43
|
-
s.summary = %q{Ona -- Deployment symplified.}
|
44
|
-
s.test_files = [
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/ona",
|
29
|
+
"lib/ona.rb",
|
30
|
+
"lib/ona_cli.rb",
|
31
|
+
"lib/ona_instructions.rb",
|
32
|
+
"lib/ona_server.rb",
|
33
|
+
"lib/ona_stack.rb",
|
34
|
+
"ona.gemspec",
|
45
35
|
"test/helper.rb",
|
46
|
-
|
36
|
+
"test/test_ona.rb"
|
47
37
|
]
|
38
|
+
s.homepage = "http://github.com/ktlacaelel/ona"
|
39
|
+
s.require_paths = ["lib"]
|
40
|
+
s.rubygems_version = "1.8.25"
|
41
|
+
s.summary = "Ona -- Deployment symplified."
|
48
42
|
|
49
43
|
if s.respond_to? :specification_version then
|
50
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
51
44
|
s.specification_version = 3
|
52
45
|
|
53
46
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_runtime_dependency(%q<rake>, ["= 0.8.7"])
|
48
|
+
s.add_runtime_dependency(%q<jeweler>, [">= 0"])
|
54
49
|
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
55
50
|
else
|
51
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
52
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
56
53
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
57
54
|
end
|
58
55
|
else
|
56
|
+
s.add_dependency(%q<rake>, ["= 0.8.7"])
|
57
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
59
58
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
60
59
|
end
|
61
60
|
end
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kazuyoshi tlacaelel
|
@@ -15,13 +15,29 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable: ona
|
18
|
+
date: 2013-12-14 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name: thoughtbot-shoulda
|
23
21
|
prerelease: false
|
24
|
-
|
22
|
+
name: rake
|
23
|
+
type: :runtime
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - "="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 49
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 8
|
33
|
+
- 7
|
34
|
+
version: 0.8.7
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
prerelease: false
|
38
|
+
name: jeweler
|
39
|
+
type: :runtime
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
25
41
|
none: false
|
26
42
|
requirements:
|
27
43
|
- - ">="
|
@@ -30,8 +46,21 @@ dependencies:
|
|
30
46
|
segments:
|
31
47
|
- 0
|
32
48
|
version: "0"
|
49
|
+
requirement: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
prerelease: false
|
52
|
+
name: thoughtbot-shoulda
|
33
53
|
type: :development
|
34
|
-
version_requirements:
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
requirement: *id003
|
35
64
|
description: Simple shell for deployment.
|
36
65
|
email: kazu.dev@gmail.com
|
37
66
|
executables:
|
@@ -43,8 +72,8 @@ extra_rdoc_files:
|
|
43
72
|
- README.rdoc
|
44
73
|
files:
|
45
74
|
- .document
|
46
|
-
- .gitignore
|
47
75
|
- Gemfile
|
76
|
+
- Gemfile.lock
|
48
77
|
- LICENSE
|
49
78
|
- README.rdoc
|
50
79
|
- Rakefile
|
@@ -58,13 +87,12 @@ files:
|
|
58
87
|
- ona.gemspec
|
59
88
|
- test/helper.rb
|
60
89
|
- test/test_ona.rb
|
61
|
-
has_rdoc: true
|
62
90
|
homepage: http://github.com/ktlacaelel/ona
|
63
91
|
licenses: []
|
64
92
|
|
65
93
|
post_install_message:
|
66
|
-
rdoc_options:
|
67
|
-
|
94
|
+
rdoc_options: []
|
95
|
+
|
68
96
|
require_paths:
|
69
97
|
- lib
|
70
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -88,10 +116,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
116
|
requirements: []
|
89
117
|
|
90
118
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.8.25
|
92
120
|
signing_key:
|
93
121
|
specification_version: 3
|
94
122
|
summary: Ona -- Deployment symplified.
|
95
|
-
test_files:
|
96
|
-
|
97
|
-
- test/test_ona.rb
|
123
|
+
test_files: []
|
124
|
+
|