zenslap 0.2.0 → 0.2.1
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/bin/zenslap +22 -15
- data/zenslap.gemspec +1 -1
- metadata +3 -3
data/bin/zenslap
CHANGED
@@ -1,15 +1,22 @@
|
|
1
|
-
#!/bin/
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
app
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
def valid_app?(app)
|
4
|
+
system "heroku config --app #{app}"
|
5
|
+
end
|
6
|
+
|
7
|
+
def app
|
8
|
+
app=%x{ git config zenslap.zenslap }
|
9
|
+
while app == ""
|
10
|
+
puts "\nEnter the name of the zenslap app"
|
11
|
+
unvalidated_app = STDIN.gets.chomp
|
12
|
+
if unvalidated_app == ""
|
13
|
+
# retry
|
14
|
+
elsif valid_app? unvalidated_app
|
15
|
+
system "git config zenslap.zenslap #{unvalidated_app}"
|
16
|
+
app = unvalidated_app
|
17
|
+
end
|
18
|
+
end
|
19
|
+
app
|
20
|
+
end
|
21
|
+
|
22
|
+
exec "heroku #{ARGV.join("")} --app #{app}"
|
data/zenslap.gemspec
CHANGED
metadata
CHANGED