pagoda 0.7.7 → 0.7.8
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -8
- data/lib/pagoda/cli/helpers.rb +11 -10
- data/lib/pagoda/cli/helpers/app.rb +8 -8
- data/lib/pagoda/cli/helpers/key.rb +3 -3
- data/lib/pagoda/cli/helpers/log.rb +1 -1
- data/lib/pagoda/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b82c9c493530aa271e9b6604318a325df7e6973
|
4
|
+
data.tar.gz: 82964c4005d415d3f9b851a8cb70f6ecece97ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c6cc8f94c91041968eb5b252fa5caaa3008eff4267a86805dff102c9fae9a8b43b65c72090f36977d58b357a1ff49914ebd8553e469e4c2d82d72d924df772
|
7
|
+
data.tar.gz: 689c2cea316a59e44ee17e3f22e1ac0eb0f89a3f2df4efa41f6499e8cf08abe8e90920af3bb6bd9a21ea639ae8e6e57a8f3c9b34d9a2f79b7dad5685c514e008
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pagoda (0.7.
|
5
|
-
eventmachine
|
6
|
-
faye-websocket
|
4
|
+
pagoda (0.7.8)
|
7
5
|
gli (~> 2.0.0)
|
8
|
-
|
6
|
+
highline
|
9
7
|
pagoda-client
|
10
8
|
pagoda-tunnel
|
11
9
|
rest-client
|
10
|
+
websocket-client-simple
|
12
11
|
|
13
12
|
GEM
|
14
13
|
remote: http://rubygems.org/
|
15
14
|
specs:
|
16
15
|
coderay (0.9.8)
|
17
16
|
diff-lcs (1.1.3)
|
18
|
-
|
19
|
-
faye-websocket (0.4.6)
|
20
|
-
eventmachine (>= 0.12.0)
|
17
|
+
event_emitter (0.2.5)
|
21
18
|
gli (2.0.0)
|
19
|
+
highline (1.6.19)
|
22
20
|
json_pure (1.8.0)
|
23
21
|
method_source (0.6.7)
|
24
22
|
ruby_parser (>= 2.3.1)
|
25
23
|
mime-types (1.23)
|
26
|
-
msgpack (0.5.4)
|
27
24
|
pagoda-client (0.2.2)
|
28
25
|
json_pure
|
29
26
|
rest-client
|
@@ -48,6 +45,10 @@ GEM
|
|
48
45
|
sexp_processor (~> 3.0)
|
49
46
|
sexp_processor (3.0.7)
|
50
47
|
slop (2.1.0)
|
48
|
+
websocket (1.0.7)
|
49
|
+
websocket-client-simple (0.0.5)
|
50
|
+
event_emitter
|
51
|
+
websocket
|
51
52
|
|
52
53
|
PLATFORMS
|
53
54
|
ruby
|
data/lib/pagoda/cli/helpers.rb
CHANGED
@@ -41,16 +41,17 @@ module Pagoda
|
|
41
41
|
|
42
42
|
def error(msg, exit=true, level=1)
|
43
43
|
STDERR.puts
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
44
|
+
STDERR.puts msg
|
45
|
+
# begin
|
46
|
+
# case msg
|
47
|
+
# when Array
|
48
|
+
# say("<%= color('#{msg.join("\n")}', :red)%>")
|
49
|
+
# when String
|
50
|
+
# say("<%= color(msg, :red)%>")
|
51
|
+
# end
|
52
|
+
# rescue
|
53
|
+
# puts msg
|
54
|
+
# end
|
54
55
|
STDERR.puts
|
55
56
|
exit 1 if exit
|
56
57
|
end
|
@@ -67,7 +67,7 @@ module Pagoda
|
|
67
67
|
git "config --add pagoda.id #{id}"
|
68
68
|
Dir.chdir("..")
|
69
69
|
display
|
70
|
-
display "
|
70
|
+
display "+ Repo has been added. Navigate to folder #{my_app}."
|
71
71
|
rescue
|
72
72
|
error "We were not able to access that app"
|
73
73
|
end
|
@@ -87,7 +87,7 @@ module Pagoda
|
|
87
87
|
display
|
88
88
|
display "----------------------------------------------------"
|
89
89
|
display
|
90
|
-
display "
|
90
|
+
display "+ Use 'git push #{d_remote} --all' to push your code live"
|
91
91
|
else
|
92
92
|
error "App name (#{name}) is already taken"
|
93
93
|
end
|
@@ -102,7 +102,7 @@ module Pagoda
|
|
102
102
|
rescue RestClient::Found => e
|
103
103
|
# do nothing because we found it HURRAY!
|
104
104
|
end
|
105
|
-
display "
|
105
|
+
display "+ deploying current branch and commit...", true
|
106
106
|
loop_transaction
|
107
107
|
else
|
108
108
|
error "Your app is currently in transaction, Please try again later."
|
@@ -112,7 +112,7 @@ module Pagoda
|
|
112
112
|
def rollback
|
113
113
|
display
|
114
114
|
client.app_rollback(app)
|
115
|
-
display "
|
115
|
+
display "+ undo..."
|
116
116
|
loop_transaction
|
117
117
|
display
|
118
118
|
end
|
@@ -122,16 +122,16 @@ module Pagoda
|
|
122
122
|
my_app = app
|
123
123
|
dname = display_name(my_app) # Make the app name look better
|
124
124
|
if options[:force]
|
125
|
-
display "
|
125
|
+
display "+ Destroying #{dname}"
|
126
126
|
client.app_destroy(my_app)
|
127
|
-
display "
|
127
|
+
display "+ #{dname} has been successfully destroyed. RIP #{dname}."
|
128
128
|
remove_app(my_app)
|
129
129
|
else
|
130
130
|
if confirm ["Are you totally completely sure you want to delete #{dname} forever and ever?", "THIS CANNOT BE UNDONE! "]
|
131
131
|
display
|
132
|
-
display "
|
132
|
+
display "+ Destroying #{dname}"
|
133
133
|
client.app_destroy(my_app)
|
134
|
-
display "
|
134
|
+
display "+ #{dname} has been successfully destroyed. RIP #{dname}."
|
135
135
|
remove_app(my_app)
|
136
136
|
end
|
137
137
|
end
|
@@ -6,7 +6,7 @@ module Pagoda
|
|
6
6
|
|
7
7
|
def generate_key_and_push
|
8
8
|
display
|
9
|
-
display "
|
9
|
+
display "+ Generating a ssh key pair"
|
10
10
|
display
|
11
11
|
if running_on_windows?
|
12
12
|
display "It appears you are running on windows"
|
@@ -54,8 +54,8 @@ module Pagoda
|
|
54
54
|
key = File.read(file).strip
|
55
55
|
if key =~ /^ssh-(?:dss|rsa) [A-Za-z0-9+\/]+/
|
56
56
|
client.user_add_key(key)
|
57
|
-
display "
|
58
|
-
display "
|
57
|
+
display "+ Pushing ssh key to Pagoda Box"
|
58
|
+
display "+ done"
|
59
59
|
else
|
60
60
|
error "that key is not the correct format"
|
61
61
|
end
|
@@ -108,7 +108,7 @@ module Pagoda::Command
|
|
108
108
|
def output_error
|
109
109
|
errors = []
|
110
110
|
errors << "Input unrecoginized"
|
111
|
-
errors << "try 'pagoda -a
|
111
|
+
errors << "try 'pagoda -a [appname] log [component]'"
|
112
112
|
errors << "ie. 'pagoda -a app log db1'"
|
113
113
|
error errors
|
114
114
|
end
|
data/lib/pagoda/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagoda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lyon Hill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|